[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110010948.3tb2jPg2-lkp@intel.com>
Date: Fri, 1 Oct 2021 09:23:55 +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 41/60]
drivers/pinctrl/mstar/pinctrl-msc313-pm.c:53:5: error:
"CONFIG_MACH_INFINITY" is not defined, evaluates to 0
tree: git://github.com/linux-chenxing/linux.git msc313_mainlining
head: d674a057b8fc51e48c1b6268336f450b44f314c9
commit: 2cf8d3b694e8195f11c9721dfb5df584e4bf089c [41/60] pinctrl: mstar: msc313 pinctrl driver
config: nios2-allyesconfig (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/2cf8d3b694e8195f11c9721dfb5df584e4bf089c
git remote add chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags chenxing msc313_mainlining
git checkout 2cf8d3b694e8195f11c9721dfb5df584e4bf089c
# 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 errors (new ones prefixed by >>):
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:53:5: error: "CONFIG_MACH_INFINITY" is not defined, evaluates to 0 [-Werror=undef]
53 | #if CONFIG_MACH_INFINITY
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:43:27: error: 'pm_irin_groups' defined but not used [-Werror=unused-const-variable=]
43 | static const char * const pm_irin_groups[] = {
| ^~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:39:27: error: 'pm_spi_groups' defined but not used [-Werror=unused-const-variable=]
39 | static const char * const pm_spi_groups[] = {
| ^~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:35:27: error: 'pm_uart_groups' defined but not used [-Werror=unused-const-variable=]
35 | static const char * const pm_uart_groups[] = {
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/pinctrl/mstar/pinctrl-msc313.c:233:27: error: 'sr_drivestrengths' defined but not used [-Werror=unused-const-variable=]
233 | static const unsigned int sr_drivestrengths[] = {4, 8};
| ^~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:225:27: error: 'i2c_drivestrengths' defined but not used [-Werror=unused-const-variable=]
225 | static const unsigned int i2c_drivestrengths[] = {4, 8};
| ^~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:215:27: error: 'spi0_drivestrengths' defined but not used [-Werror=unused-const-variable=]
215 | static const unsigned int spi0_drivestrengths[] = {4, 8, 12, 16};
| ^~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:201:27: error: 'sd_drivestrengths' defined but not used [-Werror=unused-const-variable=]
201 | static const unsigned int sd_drivestrengths[] = {4, 8};
| ^~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:164:18: error: 'sdio_values' defined but not used [-Werror=unused-const-variable=]
164 | static const u16 sdio_values[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:161:27: error: 'sdio_groups' defined but not used [-Werror=unused-const-variable=]
161 | static const char * const sdio_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:158:18: error: 'spi1_values' defined but not used [-Werror=unused-const-variable=]
158 | static const u16 spi1_values[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:155:27: error: 'spi1_groups' defined but not used [-Werror=unused-const-variable=]
155 | static const char * const spi1_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:151:18: error: 'spi0_values' defined but not used [-Werror=unused-const-variable=]
151 | static const u16 spi0_values[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:147:27: error: 'spi0_groups' defined but not used [-Werror=unused-const-variable=]
147 | static const char * const spi0_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:143:27: error: 'jtag_groups' defined but not used [-Werror=unused-const-variable=]
143 | static const char * const jtag_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:139:18: error: 'eth_values' defined but not used [-Werror=unused-const-variable=]
139 | static const u16 eth_values[] = {
| ^~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:136:27: error: 'eth_groups' defined but not used [-Werror=unused-const-variable=]
136 | static const char * const eth_groups[] = {
| ^~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:132:18: error: 'pwm7_values' defined but not used [-Werror=unused-const-variable=]
132 | static const u16 pwm7_values[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:129:27: error: 'pwm7_groups' defined but not used [-Werror=unused-const-variable=]
129 | static const char * const pwm7_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:125:18: error: 'pwm6_values' defined but not used [-Werror=unused-const-variable=]
125 | static const u16 pwm6_values[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:122:27: error: 'pwm6_groups' defined but not used [-Werror=unused-const-variable=]
122 | static const char * const pwm6_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:118:18: error: 'pwm5_values' defined but not used [-Werror=unused-const-variable=]
118 | static const u16 pwm5_values[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:115:27: error: 'pwm5_groups' defined but not used [-Werror=unused-const-variable=]
115 | static const char * const pwm5_groups[] = {
| ^~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:111:18: error: 'pwm4_values' defined but not used [-Werror=unused-const-variable=]
111 | static const u16 pwm4_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:108:27: error: 'pwm4_groups' defined but not used [-Werror=unused-const-variable=]
108 | static const char * const pwm4_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:104:18: error: 'pwm3_values' defined but not used [-Werror=unused-const-variable=]
104 | static const u16 pwm3_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:101:27: error: 'pwm3_groups' defined but not used [-Werror=unused-const-variable=]
101 | static const char * const pwm3_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:97:18: error: 'pwm2_values' defined but not used [-Werror=unused-const-variable=]
97 | static const u16 pwm2_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:94:27: error: 'pwm2_groups' defined but not used [-Werror=unused-const-variable=]
94 | static const char * const pwm2_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:90:18: error: 'pwm1_values' defined but not used [-Werror=unused-const-variable=]
90 | static const u16 pwm1_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:87:27: error: 'pwm1_groups' defined but not used [-Werror=unused-const-variable=]
87 | static const char * const pwm1_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:83:18: error: 'pwm0_values' defined but not used [-Werror=unused-const-variable=]
83 | static const u16 pwm0_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:80:27: error: 'pwm0_groups' defined but not used [-Werror=unused-const-variable=]
80 | static const char * const pwm0_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:76:27: error: 'usb1_groups' defined but not used [-Werror=unused-const-variable=]
76 | static const char * const usb1_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:73:27: error: 'usb_groups' defined but not used [-Werror=unused-const-variable=]
73 | static const char * const usb_groups[] = {
| ^~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:68:18: error: 'uart1_values' defined but not used [-Werror=unused-const-variable=]
68 | static const u16 uart1_values[] = {
| ^~~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:64:27: error: 'uart1_groups' defined but not used [-Werror=unused-const-variable=]
64 | static const char * const uart1_groups[] = {
| ^~~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:60:27: error: 'uart0_groups' defined but not used [-Werror=unused-const-variable=]
60 | static const char * const uart0_groups[] = {
| ^~~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:55:18: error: 'fuart_values' defined but not used [-Werror=unused-const-variable=]
55 | static const u16 fuart_values[] = {
| ^~~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:51:27: error: 'fuart_groups' defined but not used [-Werror=unused-const-variable=]
51 | static const char * const fuart_groups[] = {
| ^~~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:47:18: error: 'i2c1_values' defined but not used [-Werror=unused-const-variable=]
47 | static const u16 i2c1_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:44:27: error: 'i2c1_groups' defined but not used [-Werror=unused-const-variable=]
44 | static const char * const i2c1_groups[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:40:18: error: 'i2c0_values' defined but not used [-Werror=unused-const-variable=]
40 | static const u16 i2c0_values[] = {
| ^~~~~~~~~~~
drivers/pinctrl/mstar/pinctrl-msc313.c:37:27: error: 'i2c0_groups' defined but not used [-Werror=unused-const-variable=]
37 | static const char * const i2c0_groups[] = {
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/CONFIG_MACH_INFINITY +53 drivers/pinctrl/mstar/pinctrl-msc313-pm.c
f7e2689912fb31 Daniel Palmer 2021-01-10 34
f7e2689912fb31 Daniel Palmer 2021-01-10 @35 static const char * const pm_uart_groups[] = {
f7e2689912fb31 Daniel Palmer 2021-01-10 36 GROUPNAME_PM_UART,
f7e2689912fb31 Daniel Palmer 2021-01-10 37 };
f7e2689912fb31 Daniel Palmer 2021-01-10 38
f7e2689912fb31 Daniel Palmer 2021-01-10 @39 static const char * const pm_spi_groups[] = {
f7e2689912fb31 Daniel Palmer 2021-01-10 40 GROUPNAME_PM_SPI,
f7e2689912fb31 Daniel Palmer 2021-01-10 41 };
f7e2689912fb31 Daniel Palmer 2021-01-10 42
f7e2689912fb31 Daniel Palmer 2021-01-10 @43 static const char * const pm_irin_groups[] = {
f7e2689912fb31 Daniel Palmer 2021-01-10 44 GROUPNAME_PM_IRIN,
f7e2689912fb31 Daniel Palmer 2021-01-10 45 };
f7e2689912fb31 Daniel Palmer 2021-01-10 46
f7e2689912fb31 Daniel Palmer 2021-01-10 47 /* Functions that all chips have */
f7e2689912fb31 Daniel Palmer 2021-01-10 48 #define COMMON_FUNCTIONS \
f7e2689912fb31 Daniel Palmer 2021-01-10 49 COMMON_FIXED_FUNCTION(PM_UART, pm_uart), \
f7e2689912fb31 Daniel Palmer 2021-01-10 50 COMMON_FIXED_FUNCTION(PM_SPI, pm_spi), \
f7e2689912fb31 Daniel Palmer 2021-01-10 51 COMMON_FIXED_FUNCTION(PM_IRIN, pm_irin)
f7e2689912fb31 Daniel Palmer 2021-01-10 52
f7e2689912fb31 Daniel Palmer 2021-01-10 @53 #if CONFIG_MACH_INFINITY
f7e2689912fb31 Daniel Palmer 2021-01-10 54 #define MSC313_COMMON_PIN(_pinname) COMMON_PIN(MSC313, _pinname)
f7e2689912fb31 Daniel Palmer 2021-01-10 55 /* msc313/msc313e */
f7e2689912fb31 Daniel Palmer 2021-01-10 56 /* pinctrl pins */
f7e2689912fb31 Daniel Palmer 2021-01-10 57 static struct pinctrl_pin_desc msc313_pins[] = {
f7e2689912fb31 Daniel Palmer 2021-01-10 58 MSC313_COMMON_PIN(PM_UART_RX),
f7e2689912fb31 Daniel Palmer 2021-01-10 59 MSC313_COMMON_PIN(PM_UART_TX),
f7e2689912fb31 Daniel Palmer 2021-01-10 60 MSC313_COMMON_PIN(PM_SPI_CZ),
f7e2689912fb31 Daniel Palmer 2021-01-10 61 MSC313_COMMON_PIN(PM_SPI_DI),
f7e2689912fb31 Daniel Palmer 2021-01-10 62 MSC313_COMMON_PIN(PM_SPI_WPZ),
f7e2689912fb31 Daniel Palmer 2021-01-10 63 MSC313_COMMON_PIN(PM_SPI_DO),
f7e2689912fb31 Daniel Palmer 2021-01-10 64 MSC313_COMMON_PIN(PM_SPI_CK),
f7e2689912fb31 Daniel Palmer 2021-01-10 65 MSC313_COMMON_PIN(PM_IRIN),
f7e2689912fb31 Daniel Palmer 2021-01-10 66 MSC313_COMMON_PIN(PM_SD_CDZ),
f7e2689912fb31 Daniel Palmer 2021-01-10 67 MSC313_COMMON_PIN(PM_GPIO4),
f7e2689912fb31 Daniel Palmer 2021-01-10 68 };
f7e2689912fb31 Daniel Palmer 2021-01-10 69
:::::: The code at line 53 was first introduced by commit
:::::: f7e2689912fb3113003e2169d51932720000d928 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" (60796 bytes)
Powered by blists - more mailing lists