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]
Date:   Mon, 20 Sep 2021 13:31:14 +0800
From:   kernel test robot <lkp@...el.com>
To:     Daniel Palmer <daniel@...f.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [chenxing:msc313_mainlining 37/57]
 drivers/pinctrl/mstar/pinctrl-msc313.c:256:5: warning:
 "CONFIG_MACH_INFINITY" is not defined, evaluates to 0

tree:   git://github.com/linux-chenxing/linux.git msc313_mainlining
head:   71c92cf0080ae69122be726bc4682b28a622e5ad
commit: c69c1259ec1bf7eb55a2eafb3facca3cc2c33be3 [37/57] pinctrl: mstar: msc313 pinctrl driver
config: alpha-randconfig-r023-20210920 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.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://github.com/linux-chenxing/linux/commit/c69c1259ec1bf7eb55a2eafb3facca3cc2c33be3
        git remote add chenxing git://github.com/linux-chenxing/linux.git
        git fetch --no-tags chenxing msc313_mainlining
        git checkout c69c1259ec1bf7eb55a2eafb3facca3cc2c33be3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha 

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

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/mstar/pinctrl-msc313.c:256:5: warning: "CONFIG_MACH_INFINITY" is not defined, evaluates to 0 [-Wundef]
     256 | #if CONFIG_MACH_INFINITY
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:1543:5: warning: "CONFIG_MACH_INFINITY" is not defined, evaluates to 0 [-Wundef]
    1543 | #if CONFIG_MACH_INFINITY
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:233:27: warning: 'sr_drivestrengths' defined but not used [-Wunused-const-variable=]
     233 | static const unsigned int sr_drivestrengths[] = {4, 8};
         |                           ^~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:225:27: warning: 'i2c_drivestrengths' defined but not used [-Wunused-const-variable=]
     225 | static const unsigned int i2c_drivestrengths[] = {4, 8};
         |                           ^~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:215:27: warning: 'spi0_drivestrengths' defined but not used [-Wunused-const-variable=]
     215 | static const unsigned int spi0_drivestrengths[] = {4, 8, 12, 16};
         |                           ^~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:201:27: warning: 'sd_drivestrengths' defined but not used [-Wunused-const-variable=]
     201 | static const unsigned int sd_drivestrengths[] = {4, 8};
         |                           ^~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:164:18: warning: 'sdio_values' defined but not used [-Wunused-const-variable=]
     164 | static const u16 sdio_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:161:27: warning: 'sdio_groups' defined but not used [-Wunused-const-variable=]
     161 | static const char * const sdio_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:158:18: warning: 'spi1_values' defined but not used [-Wunused-const-variable=]
     158 | static const u16 spi1_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:155:27: warning: 'spi1_groups' defined but not used [-Wunused-const-variable=]
     155 | static const char * const spi1_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:151:18: warning: 'spi0_values' defined but not used [-Wunused-const-variable=]
     151 | static const u16 spi0_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:147:27: warning: 'spi0_groups' defined but not used [-Wunused-const-variable=]
     147 | static const char * const spi0_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:143:27: warning: 'jtag_groups' defined but not used [-Wunused-const-variable=]
     143 | static const char * const jtag_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:139:18: warning: 'eth_values' defined but not used [-Wunused-const-variable=]
     139 | static const u16 eth_values[] = {
         |                  ^~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:136:27: warning: 'eth_groups' defined but not used [-Wunused-const-variable=]
     136 | static const char * const eth_groups[] = {
         |                           ^~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:132:18: warning: 'pwm7_values' defined but not used [-Wunused-const-variable=]
     132 | static const u16 pwm7_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:129:27: warning: 'pwm7_groups' defined but not used [-Wunused-const-variable=]
     129 | static const char * const pwm7_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:125:18: warning: 'pwm6_values' defined but not used [-Wunused-const-variable=]
     125 | static const u16 pwm6_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:122:27: warning: 'pwm6_groups' defined but not used [-Wunused-const-variable=]
     122 | static const char * const pwm6_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:118:18: warning: 'pwm5_values' defined but not used [-Wunused-const-variable=]
     118 | static const u16 pwm5_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:115:27: warning: 'pwm5_groups' defined but not used [-Wunused-const-variable=]
     115 | static const char * const pwm5_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:111:18: warning: 'pwm4_values' defined but not used [-Wunused-const-variable=]
     111 | static const u16 pwm4_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:108:27: warning: 'pwm4_groups' defined but not used [-Wunused-const-variable=]
     108 | static const char * const pwm4_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:104:18: warning: 'pwm3_values' defined but not used [-Wunused-const-variable=]
     104 | static const u16 pwm3_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:101:27: warning: 'pwm3_groups' defined but not used [-Wunused-const-variable=]
     101 | static const char * const pwm3_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:97:18: warning: 'pwm2_values' defined but not used [-Wunused-const-variable=]
      97 | static const u16 pwm2_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:94:27: warning: 'pwm2_groups' defined but not used [-Wunused-const-variable=]
      94 | static const char * const pwm2_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:90:18: warning: 'pwm1_values' defined but not used [-Wunused-const-variable=]
      90 | static const u16 pwm1_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:87:27: warning: 'pwm1_groups' defined but not used [-Wunused-const-variable=]
      87 | static const char * const pwm1_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:83:18: warning: 'pwm0_values' defined but not used [-Wunused-const-variable=]
      83 | static const u16 pwm0_values[] = {
         |                  ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:80:27: warning: 'pwm0_groups' defined but not used [-Wunused-const-variable=]
      80 | static const char * const pwm0_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:76:27: warning: 'usb1_groups' defined but not used [-Wunused-const-variable=]
      76 | static const char * const usb1_groups[] = {
         |                           ^~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:73:27: warning: 'usb_groups' defined but not used [-Wunused-const-variable=]
      73 | static const char * const usb_groups[] = {
         |                           ^~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313.c:68:18: warning: 'uart1_values' defined but not used [-Wunused-const-variable=]
      68 | static const u16 uart1_values[] = {


vim +/CONFIG_MACH_INFINITY +256 drivers/pinctrl/mstar/pinctrl-msc313.c

   226	
   227	#define I2C1_PIN(_pin, _offset) MSTAR_PINCTRL_PIN(_pin, REG_I2C1_PULL_EN, _offset, \
   228			REG_I2C1_PULL_DIR, _offset, REG_I2C1_DRIVE, _offset, 1, i2c_drivestrengths)
   229	
   230	#define I2C1_PINS(_chipname) I2C1_PIN(PIN_##_chipname##_I2C1_SCL, 0), \
   231				     I2C1_PIN(PIN_##_chipname##_I2C1_SDA, 1)
   232	
   233	static const unsigned int sr_drivestrengths[] = {4, 8};
   234	#define SR_PIN_0(_pin, _offset) MSTAR_PINCTRL_PIN(_pin, REG_SR_PULL_EN0, _offset, \
   235			REG_SR_PULL_DIR0, _offset, REG_SR_DRIVE0, _offset, 1, sr_drivestrengths)
   236	#define SR_PIN_1(_pin, _offset) MSTAR_PINCTRL_PIN(_pin, REG_SR_PULL_EN1, _offset, \
   237			REG_SR_PULL_DIR1, _offset, REG_SR_DRIVE1, _offset, 1, sr_drivestrengths)
   238	
   239	#define SR_PINS(_chipname) SR_PIN_0(PIN_##_chipname##_SR_IO2, 2), \
   240				   SR_PIN_0(PIN_##_chipname##_SR_IO3, 3), \
   241				   SR_PIN_0(PIN_##_chipname##_SR_IO4, 4), \
   242				   SR_PIN_0(PIN_##_chipname##_SR_IO5, 5), \
   243				   SR_PIN_0(PIN_##_chipname##_SR_IO6, 6), \
   244				   SR_PIN_0(PIN_##_chipname##_SR_IO7, 7), \
   245				   SR_PIN_0(PIN_##_chipname##_SR_IO8, 8), \
   246				   SR_PIN_0(PIN_##_chipname##_SR_IO9, 9), \
   247				   SR_PIN_0(PIN_##_chipname##_SR_IO10, 10), \
   248				   SR_PIN_0(PIN_##_chipname##_SR_IO11, 11), \
   249				   SR_PIN_0(PIN_##_chipname##_SR_IO12, 12), \
   250				   SR_PIN_0(PIN_##_chipname##_SR_IO13, 13), \
   251				   SR_PIN_0(PIN_##_chipname##_SR_IO14, 14), \
   252				   SR_PIN_0(PIN_##_chipname##_SR_IO15, 15), \
   253				   SR_PIN_1(PIN_##_chipname##_SR_IO16, 0), \
   254				   SR_PIN_1(PIN_##_chipname##_SR_IO17, 1)
   255	
 > 256	#if CONFIG_MACH_INFINITY
   257	/* msc313/msc313e */
   258	/* pinctrl pins */
   259	static struct pinctrl_pin_desc msc313_pins[] = {
   260		MSC313_COMMON_PIN(ETH_RN),
   261		MSC313_COMMON_PIN(ETH_RP),
   262		MSC313_COMMON_PIN(ETH_TN),
   263		MSC313_COMMON_PIN(ETH_TP),
   264		MSC313_COMMON_PIN(FUART_RX),
   265		MSC313_COMMON_PIN(FUART_TX),
   266		MSC313_COMMON_PIN(FUART_CTS),
   267		MSC313_COMMON_PIN(FUART_RTS),
   268		MSC313_COMMON_PIN(I2C1_SCL),
   269		MSC313_COMMON_PIN(I2C1_SDA),
   270		PINCTRL_PIN(PIN_MSC313_SR_IO2,	"sr_io2"),
   271		PINCTRL_PIN(PIN_MSC313_SR_IO3,	"sr_io3"),
   272		PINCTRL_PIN(PIN_MSC313_SR_IO4,	"sr_io4"),
   273		PINCTRL_PIN(PIN_MSC313_SR_IO5,	"sr_io5"),
   274		PINCTRL_PIN(PIN_MSC313_SR_IO6,	"sr_io6"),
   275		PINCTRL_PIN(PIN_MSC313_SR_IO7,	"sr_io7"),
   276		PINCTRL_PIN(PIN_MSC313_SR_IO8,	"sr_io8"),
   277		PINCTRL_PIN(PIN_MSC313_SR_IO9,	"sr_io9"),
   278		PINCTRL_PIN(PIN_MSC313_SR_IO10,	"sr_io10"),
   279		PINCTRL_PIN(PIN_MSC313_SR_IO11,	"sr_io11"),
   280		PINCTRL_PIN(PIN_MSC313_SR_IO12,	"sr_io12"),
   281		PINCTRL_PIN(PIN_MSC313_SR_IO13,	"sr_io13"),
   282		PINCTRL_PIN(PIN_MSC313_SR_IO14,	"sr_io14"),
   283		PINCTRL_PIN(PIN_MSC313_SR_IO15,	"sr_io15"),
   284		PINCTRL_PIN(PIN_MSC313_SR_IO16,	"sr_io16"),
   285		PINCTRL_PIN(PIN_MSC313_SR_IO17,	"sr_io17"),
   286		MSC313_COMMON_PIN(SPI0_CZ),
   287		MSC313_COMMON_PIN(SPI0_CK),
   288		MSC313_COMMON_PIN(SPI0_DI),
   289		MSC313_COMMON_PIN(SPI0_DO),
   290		MSC313_COMMON_PIN(SD_CLK),
   291		MSC313_COMMON_PIN(SD_CMD),
   292		MSC313_COMMON_PIN(SD_D0),
   293		MSC313_COMMON_PIN(SD_D1),
   294		MSC313_COMMON_PIN(SD_D2),
   295		MSC313_COMMON_PIN(SD_D3),
   296		MSC313_COMMON_PIN(USB_DM),
   297		MSC313_COMMON_PIN(USB_DP),
   298	};
   299	

---
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" (42714 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ