[PATCH 1/2] pinctrl: meson: separate soc drivers
kbuild test robot
lkp at intel.com
Thu Oct 12 04:12:00 PDT 2017
Hi Jerome,
[auto build test ERROR on pinctrl/devel]
[also build test ERROR on v4.14-rc4 next-20171009]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Jerome-Brunet/pinctrl-meson-prepare-for-new-SoC/20171012-094645
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
In file included from drivers/pinctrl/meson/pinctrl-meson.c:63:0:
>> drivers/pinctrl/meson/pinctrl-meson.h:74:2: error: expected identifier before string constant
REG_OUT,
^~~
In file included from drivers/pinctrl/meson/pinctrl-meson.c:63:0:
drivers/pinctrl/meson/pinctrl-meson.h:99:29: error: 'NUM_REG' undeclared here (not in a function)
struct meson_reg_desc regs[NUM_REG];
^~~~~~~
drivers/pinctrl/meson/pinctrl-meson.c: In function 'meson_gpio_direction_output':
>> drivers/pinctrl/meson/pinctrl-meson.c:446:37: error: incompatible type for argument 3 of 'meson_calc_reg_and_bit'
meson_calc_reg_and_bit(bank, gpio, REG_OUT, ®, &bit);
^~~
drivers/pinctrl/meson/pinctrl-meson.c:99:13: note: expected 'enum meson_reg_type' but argument is of type 'char *'
static void meson_calc_reg_and_bit(struct meson_bank *bank, unsigned int pin,
^~~~~~~~~~~~~~~~~~~~~~
drivers/pinctrl/meson/pinctrl-meson.c: In function 'meson_gpio_set':
drivers/pinctrl/meson/pinctrl-meson.c:462:37: error: incompatible type for argument 3 of 'meson_calc_reg_and_bit'
meson_calc_reg_and_bit(bank, gpio, REG_OUT, ®, &bit);
^~~
drivers/pinctrl/meson/pinctrl-meson.c:99:13: note: expected 'enum meson_reg_type' but argument is of type 'char *'
static void meson_calc_reg_and_bit(struct meson_bank *bank, unsigned int pin,
^~~~~~~~~~~~~~~~~~~~~~
drivers/pinctrl/meson/pinctrl-meson.c: In function 'meson_gpio_get':
drivers/pinctrl/meson/pinctrl-meson.c:478:37: error: incompatible type for argument 3 of 'meson_calc_reg_and_bit'
meson_calc_reg_and_bit(bank, gpio, REG_IN, ®, &bit);
^~~
drivers/pinctrl/meson/pinctrl-meson.c:99:13: note: expected 'enum meson_reg_type' but argument is of type 'char *'
static void meson_calc_reg_and_bit(struct meson_bank *bank, unsigned int pin,
^~~~~~~~~~~~~~~~~~~~~~
vim +74 drivers/pinctrl/meson/pinctrl-meson.h
6ac73095 Beniamino Galvani 2015-01-17 66
6ac73095 Beniamino Galvani 2015-01-17 67 /**
6ac73095 Beniamino Galvani 2015-01-17 68 * enum meson_reg_type - type of registers encoded in @meson_reg_desc
6ac73095 Beniamino Galvani 2015-01-17 69 */
6ac73095 Beniamino Galvani 2015-01-17 70 enum meson_reg_type {
6ac73095 Beniamino Galvani 2015-01-17 71 REG_PULLEN,
6ac73095 Beniamino Galvani 2015-01-17 72 REG_PULL,
6ac73095 Beniamino Galvani 2015-01-17 73 REG_DIR,
6ac73095 Beniamino Galvani 2015-01-17 @74 REG_OUT,
6ac73095 Beniamino Galvani 2015-01-17 75 REG_IN,
6ac73095 Beniamino Galvani 2015-01-17 76 NUM_REG,
6ac73095 Beniamino Galvani 2015-01-17 77 };
6ac73095 Beniamino Galvani 2015-01-17 78
:::::: The code at line 74 was first introduced by commit
:::::: 6ac730951104a437bf828683bcf9ba66336c4fa7 pinctrl: add driver for Amlogic Meson SoCs
:::::: TO: Beniamino Galvani <b.galvani at gmail.com>
:::::: CC: Linus Walleij <linus.walleij at linaro.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 61108 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-amlogic/attachments/20171012/58baf2fc/attachment.gz>
More information about the linux-amlogic
mailing list