lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202102181242.h2tISi9x-lkp@intel.com>
Date:   Thu, 18 Feb 2021 12:25:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mauro Carvalho Chehab <mchehab@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        linux-media@...r.kernel.org
Subject: arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected
 identifier before '(' token

Hi Mauro,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f40ddce88593482919761f74910f42f4b84c004b
commit: 5c57ae64e8bccc693a96b4bbd9b20cc5890aeb69 media: i2c/Kconfig: use sub-menus for I2C support
date:   10 months ago
config: mips-randconfig-r014-20210218 (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 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

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/s5k4ecgx.c:18:
>> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token
      15 | #define RST  (1 << 15)
         |              ^
   drivers/media/i2c/s5k4ecgx.c:176:2: note: in expansion of macro 'RST'
     176 |  RST,
         |  ^~~
>> drivers/media/i2c/s5k4ecgx.c:193:28: error: 'GPIO_NUM' undeclared here (not in a function)
     193 |  struct s5k4ecgx_gpio gpio[GPIO_NUM];
         |                            ^~~~~~~~
   drivers/media/i2c/s5k4ecgx.c: In function 's5k4ecgx_gpio_set_value':
   drivers/media/i2c/s5k4ecgx.c:457:63: warning: parameter 'id' set but not used [-Wunused-but-set-parameter]
     457 | static int s5k4ecgx_gpio_set_value(struct s5k4ecgx *priv, int id, u32 val)
         |                                                           ~~~~^~
   In file included from include/linux/bits.h:23,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/clk.h:13,
                    from drivers/media/i2c/s5k4ecgx.c:13:
   drivers/media/i2c/s5k4ecgx.c: In function 's5k4ecgx_free_gpios':
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:357:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     357 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                            ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/media/i2c/s5k4ecgx.c:860:18: note: in expansion of macro 'ARRAY_SIZE'
     860 |  for (i = 0; i < ARRAY_SIZE(priv->gpio); i++) {
         |                  ^~~~~~~~~~


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 <florian@...nwrt.org>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (27579 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ