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: <202109200427.VDPN7Vnk-lkp@intel.com>
Date:   Mon, 20 Sep 2021 04:06:32 +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-pm.c:53:5: warning:
 "CONFIG_MACH_INFINITY" is not defined, evaluates to 0

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

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-pm.c:53:5: warning: "CONFIG_MACH_INFINITY" is not defined, evaluates to 0 [-Wundef]
      53 | #if CONFIG_MACH_INFINITY
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313-pm.c:402:5: warning: "CONFIG_MACH_INFINITY" is not defined, evaluates to 0 [-Wundef]
     402 | #if CONFIG_MACH_INFINITY
         |     ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:416:5: warning: "CONFIG_MACH_PIONEER3" is not defined, evaluates to 0 [-Wundef]
     416 | #if CONFIG_MACH_PIONEER3
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313-pm.c:43:27: warning: 'pm_irin_groups' defined but not used [-Wunused-const-variable=]
      43 | static const char * const pm_irin_groups[] = {
         |                           ^~~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313-pm.c:39:27: warning: 'pm_spi_groups' defined but not used [-Wunused-const-variable=]
      39 | static const char * const pm_spi_groups[] = {
         |                           ^~~~~~~~~~~~~
   drivers/pinctrl/mstar/pinctrl-msc313-pm.c:35:27: warning: 'pm_uart_groups' defined but not used [-Wunused-const-variable=]
      35 | static const char * const pm_uart_groups[] = {
         |                           ^~~~~~~~~~~~~~


vim +/CONFIG_MACH_INFINITY +53 drivers/pinctrl/mstar/pinctrl-msc313-pm.c

e3e8770c8ca5ea Daniel Palmer 2021-01-10  46  
e3e8770c8ca5ea Daniel Palmer 2021-01-10  47  /* Functions that all chips have */
e3e8770c8ca5ea Daniel Palmer 2021-01-10  48  #define COMMON_FUNCTIONS \
e3e8770c8ca5ea Daniel Palmer 2021-01-10  49  	COMMON_FIXED_FUNCTION(PM_UART, pm_uart), \
e3e8770c8ca5ea Daniel Palmer 2021-01-10  50  	COMMON_FIXED_FUNCTION(PM_SPI, pm_spi), \
e3e8770c8ca5ea Daniel Palmer 2021-01-10  51  	COMMON_FIXED_FUNCTION(PM_IRIN, pm_irin)
e3e8770c8ca5ea Daniel Palmer 2021-01-10  52  
e3e8770c8ca5ea Daniel Palmer 2021-01-10 @53  #if CONFIG_MACH_INFINITY
e3e8770c8ca5ea Daniel Palmer 2021-01-10  54  #define MSC313_COMMON_PIN(_pinname) COMMON_PIN(MSC313, _pinname)
e3e8770c8ca5ea Daniel Palmer 2021-01-10  55  /* msc313/msc313e */
e3e8770c8ca5ea Daniel Palmer 2021-01-10  56  /* pinctrl pins */
e3e8770c8ca5ea Daniel Palmer 2021-01-10  57  static struct pinctrl_pin_desc msc313_pins[] = {
e3e8770c8ca5ea Daniel Palmer 2021-01-10  58  	MSC313_COMMON_PIN(PM_UART_RX),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  59  	MSC313_COMMON_PIN(PM_UART_TX),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  60  	MSC313_COMMON_PIN(PM_SPI_CZ),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  61  	MSC313_COMMON_PIN(PM_SPI_DI),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  62  	MSC313_COMMON_PIN(PM_SPI_WPZ),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  63  	MSC313_COMMON_PIN(PM_SPI_DO),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  64  	MSC313_COMMON_PIN(PM_SPI_CK),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  65  	MSC313_COMMON_PIN(PM_IRIN),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  66  	MSC313_COMMON_PIN(PM_SD_CDZ),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  67  	MSC313_COMMON_PIN(PM_GPIO4),
e3e8770c8ca5ea Daniel Palmer 2021-01-10  68  };
e3e8770c8ca5ea Daniel Palmer 2021-01-10  69  

:::::: The code at line 53 was first introduced by commit
:::::: e3e8770c8ca5ea53161f64e26f47c8e523f8a4ec pinctrl: mstar: msc313 pm pinctrl driver

:::::: TO: Daniel Palmer <daniel@...f.com>
:::::: CC: Daniel Palmer <daniel@...f.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ