tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8ca5297e7e38f2dc8c753d33a5092e7be181fff0 commit: 5c57ae64e8bccc693a96b4bbd9b20cc5890aeb69 media: i2c/Kconfig: use sub-menus for I2C support date: 1 year ago config: mips-randconfig-r025-20210430 (attached as .config) compiler: mipsel-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5c57ae64e8bccc693a96b4bbd9b20cc5890aeb69 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 5c57ae64e8bccc693a96b4bbd9b20cc5890aeb69 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from arch/mips/include/asm/mach-rc32434/irq.h:8, from arch/mips/include/asm/irq.h:18, from include/linux/irq.h:23, from include/linux/gpio/driver.h:7, from include/asm-generic/gpio.h:11, from include/linux/gpio.h:62, from drivers/media/i2c/s5k6aa.c:15: >> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token 15 | #define RST (1 << 15) | ^ drivers/media/i2c/s5k6aa.c:180:2: note: in expansion of macro 'RST' 180 | RST, | ^~~ >> drivers/media/i2c/s5k6aa.c:235:26: error: 'GPIO_NUM' undeclared here (not in a function) 235 | struct s5k6aa_gpio gpio[GPIO_NUM]; | ^~~~~~~~ drivers/media/i2c/s5k6aa.c: In function 's5k6aa_gpio_set_value': drivers/media/i2c/s5k6aa.c:812:59: warning: parameter 'id' set but not used [-Wunused-but-set-parameter] 812 | static int s5k6aa_gpio_set_value(struct s5k6aa *priv, int id, u32 val) | ~~~~^~ drivers/media/i2c/s5k6aa.c: In function 's5k6aa_gpio_deassert': drivers/media/i2c/s5k6aa.c:828:1: warning: control reaches end of non-void function [-Wreturn-type] 828 | } | ^ drivers/media/i2c/s5k6aa.c: In function 's5k6aa_gpio_assert': drivers/media/i2c/s5k6aa.c:823:1: warning: control reaches end of non-void function [-Wreturn-type] 823 | } | ^ -- In file included from arch/mips/include/asm/mach-rc32434/irq.h:8, from arch/mips/include/asm/irq.h:18, from include/linux/irq.h:23, from include/linux/gpio/driver.h:7, from include/asm-generic/gpio.h:11, from include/linux/gpio.h:62, from drivers/media/i2c/s5k5baf.c:16: >> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token 15 | #define RST (1 << 15) | ^ drivers/media/i2c/s5k5baf.c:238:2: note: in expansion of macro 'RST' 238 | RST, | ^~~ >> drivers/media/i2c/s5k5baf.c:288:28: error: 'NUM_GPIOS' undeclared here (not in a function) 288 | struct s5k5baf_gpio gpios[NUM_GPIOS]; | ^~~~~~~~~ drivers/media/i2c/s5k5baf.c: In function 's5k5baf_gpio_assert': drivers/media/i2c/s5k5baf.c:938:60: warning: parameter 'id' set but not used [-Wunused-but-set-parameter] 938 | static void s5k5baf_gpio_assert(struct s5k5baf *state, int id) | ~~~~^~ drivers/media/i2c/s5k5baf.c: In function 's5k5baf_gpio_deassert': drivers/media/i2c/s5k5baf.c:945:62: warning: parameter 'id' set but not used [-Wunused-but-set-parameter] 945 | static void s5k5baf_gpio_deassert(struct s5k5baf *state, int id) | ~~~~^~ -- In file included from arch/mips/include/asm/mach-rc32434/irq.h:8, from arch/mips/include/asm/irq.h:18, from include/linux/irq.h:23, from include/linux/gpio/driver.h:7, from include/asm-generic/gpio.h:11, from include/linux/gpio.h:62, from drivers/media/i2c/s5c73m3/s5c73m3-core.c:13: >> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token 15 | #define RST (1 << 15) | ^ drivers/media/i2c/s5c73m3/s5c73m3.h:356:2: note: in expansion of macro 'RST' 356 | RST, | ^~~ In file included from drivers/media/i2c/s5c73m3/s5c73m3-core.c:33: >> drivers/media/i2c/s5c73m3/s5c73m3.h:386:27: error: 'GPIO_NUM' undeclared here (not in a function) 386 | struct s5c73m3_gpio gpio[GPIO_NUM]; | ^~~~~~~~ drivers/media/i2c/s5c73m3/s5c73m3-core.c: In function 's5c73m3_gpio_set_value': >> drivers/media/i2c/s5c73m3/s5c73m3-core.c:1347:61: warning: parameter 'id' set but not used [-Wunused-but-set-parameter] 1347 | static int s5c73m3_gpio_set_value(struct s5c73m3 *priv, int id, u32 val) | ~~~~^~ drivers/media/i2c/s5c73m3/s5c73m3-core.c: In function 's5c73m3_gpio_deassert': drivers/media/i2c/s5c73m3/s5c73m3-core.c:1363:1: warning: control reaches end of non-void function [-Wreturn-type] 1363 | } | ^ drivers/media/i2c/s5c73m3/s5c73m3-core.c: In function 's5c73m3_gpio_assert': drivers/media/i2c/s5c73m3/s5c73m3-core.c:1358:1: warning: control reaches end of non-void function [-Wreturn-type] 1358 | } | ^ -- In file included from arch/mips/include/asm/mach-rc32434/irq.h:8, from arch/mips/include/asm/irq.h:18, from include/linux/irq.h:23, from include/linux/gpio/driver.h:7, from include/asm-generic/gpio.h:11, from include/linux/gpio.h:62, from drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c:13: >> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token 15 | #define RST (1 << 15) | ^ drivers/media/i2c/s5c73m3/s5c73m3.h:356:2: note: in expansion of macro 'RST' 356 | RST, | ^~~ In file included from drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c:29: >> drivers/media/i2c/s5c73m3/s5c73m3.h:386:27: error: 'GPIO_NUM' undeclared here (not in a function) 386 | struct s5c73m3_gpio gpio[GPIO_NUM]; | ^~~~~~~~ vim +15 arch/mips/include/asm/mach-rc32434/rb.h 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 11 3c8cf8caa5b217 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-22 12 #define REGBASE 0x18000000 3c8cf8caa5b217 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-22 13 #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE)) 606a083b1e1a35 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-23 14 #define UART0BASE 0x58000 606a083b1e1a35 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-23 @15 #define RST (1 << 15) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 16 #define DEV0BASE 0x010000 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 17 #define DEV0MASK 0x010004 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 18 #define DEV0C 0x010008 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 19 #define DEV0T 0x01000C 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 20 #define DEV1BASE 0x010010 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 21 #define DEV1MASK 0x010014 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 22 #define DEV1C 0x010018 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 23 #define DEV1TC 0x01001C 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 24 #define DEV2BASE 0x010020 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 25 #define DEV2MASK 0x010024 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 26 #define DEV2C 0x010028 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 27 #define DEV2TC 0x01002C 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 28 #define DEV3BASE 0x010030 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 29 #define DEV3MASK 0x010034 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 30 #define DEV3C 0x010038 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 31 #define DEV3TC 0x01003C 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 32 #define BTCS 0x010040 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 33 #define BTCOMPARE 0x010044 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 34 #define GPIOBASE 0x050000 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 35 /* Offsets relative to GPIOBASE */ 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 36 #define GPIOFUNC 0x00 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 37 #define GPIOCFG 0x04 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 38 #define GPIOD 0x08 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 39 #define GPIOILEVEL 0x0C 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 40 #define GPIOISTAT 0x10 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 41 #define GPIONMIEN 0x14 1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 42 #define IMASK6 0x38 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 43 #define LO_WPX (1 << 0) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 44 #define LO_ALE (1 << 1) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 45 #define LO_CLE (1 << 2) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 46 #define LO_CEX (1 << 3) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 47 #define LO_FOFF (1 << 5) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 48 #define LO_SPICS (1 << 6) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 49 #define LO_ULED (1 << 7) 73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 50 :::::: The code at line 15 was first introduced by commit :::::: 606a083b1e1a357cb66454e4581b80f1a67d8368 MIPS: RB532: Cleanup the headers again :::::: TO: Florian Fainelli :::::: CC: Ralf Baechle --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org