lkml.org 
[lkml]   [2021]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[chenxing:msc313_mainlining 37/57] drivers/pinctrl/mstar/pinctrl-msc313.c:37:27: error: unused variable 'i2c0_groups'
tree:   git://github.com/linux-chenxing/linux.git msc313_mainlining
head: 39ab3ca3c357fcdcfdfaaddb6b2a3fa9a2a02468
commit: dd2e85caa29ee1531bdb1c6918d1593e06050c6b [37/57] pinctrl: mstar: msc313 pinctrl driver
config: x86_64-buildonly-randconfig-r002-20210920 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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/dd2e85caa29ee1531bdb1c6918d1593e06050c6b
git remote add chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags chenxing msc313_mainlining
git checkout dd2e85caa29ee1531bdb1c6918d1593e06050c6b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64

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

All errors (new ones prefixed by >>):

>> drivers/pinctrl/mstar/pinctrl-msc313.c:37:27: error: unused variable 'i2c0_groups' [-Werror,-Wunused-const-variable]
static const char * const i2c0_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:40:18: error: unused variable 'i2c0_values' [-Werror,-Wunused-const-variable]
static const u16 i2c0_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:44:27: error: unused variable 'i2c1_groups' [-Werror,-Wunused-const-variable]
static const char * const i2c1_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:47:18: error: unused variable 'i2c1_values' [-Werror,-Wunused-const-variable]
static const u16 i2c1_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:51:27: error: unused variable 'fuart_groups' [-Werror,-Wunused-const-variable]
static const char * const fuart_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:55:18: error: unused variable 'fuart_values' [-Werror,-Wunused-const-variable]
static const u16 fuart_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:60:27: error: unused variable 'uart0_groups' [-Werror,-Wunused-const-variable]
static const char * const uart0_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:64:27: error: unused variable 'uart1_groups' [-Werror,-Wunused-const-variable]
static const char * const uart1_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:68:18: error: unused variable 'uart1_values' [-Werror,-Wunused-const-variable]
static const u16 uart1_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:73:27: error: unused variable 'usb_groups' [-Werror,-Wunused-const-variable]
static const char * const usb_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:76:27: error: unused variable 'usb1_groups' [-Werror,-Wunused-const-variable]
static const char * const usb1_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:80:27: error: unused variable 'pwm0_groups' [-Werror,-Wunused-const-variable]
static const char * const pwm0_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:83:18: error: unused variable 'pwm0_values' [-Werror,-Wunused-const-variable]
static const u16 pwm0_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:87:27: error: unused variable 'pwm1_groups' [-Werror,-Wunused-const-variable]
static const char * const pwm1_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:90:18: error: unused variable 'pwm1_values' [-Werror,-Wunused-const-variable]
static const u16 pwm1_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:94:27: error: unused variable 'pwm2_groups' [-Werror,-Wunused-const-variable]
static const char * const pwm2_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:97:18: error: unused variable 'pwm2_values' [-Werror,-Wunused-const-variable]
static const u16 pwm2_values[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:101:27: error: unused variable 'pwm3_groups' [-Werror,-Wunused-const-variable]
static const char * const pwm3_groups[] = {
^
>> drivers/pinctrl/mstar/pinctrl-msc313.c:104:18: error: unused variable 'pwm3_values' [-Werror,-Wunused-const-variable]
static const u16 pwm3_values[] = {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


vim +/i2c0_groups +37 drivers/pinctrl/mstar/pinctrl-msc313.c

28
29 /*
30 * Common groups and register values that are used
31 * for all chips so far.
32 *
33 * This maps functions to the groups that can handle
34 * a function and the register bits that need to be
35 * set to enable that function.
36 */
> 37 static const char * const i2c0_groups[] = {
38 GROUPNAME_I2C0_MODE1,
39 };
> 40 static const u16 i2c0_values[] = {
41 BIT(0),
42 };
43
> 44 static const char * const i2c1_groups[] = {
45 GROUPNAME_I2C1_MODE1,
46 };
> 47 static const u16 i2c1_values[] = {
48 BIT(4)
49 };
50
> 51 static const char * const fuart_groups[] = {
52 GROUPNAME_FUART_MODE1,
53 GROUPNAME_FUART_MODE1_NOCTS,
54 };
> 55 static const u16 fuart_values[] = {
56 BIT(0),
57 BIT(0),
58 };
59
> 60 static const char * const uart0_groups[] = {
61 GROUPNAME_FUART_RX_TX,
62 };
63
> 64 static const char * const uart1_groups[] = {
65 GROUPNAME_UART1_MODE2,
66 GROUPNAME_UART1_MODE2_RXONLY,
67 };
> 68 static const u16 uart1_values[] = {
69 BIT(9),
70 BIT(9),
71 };
72
> 73 static const char * const usb_groups[] = {
74 GROUPNAME_USB,
75 };
> 76 static const char * const usb1_groups[] = {
77 GROUPNAME_USB1,
78 };
79
> 80 static const char * const pwm0_groups[] = {
81 GROUPNAME_PWM0_MODE3,
82 };
> 83 static const u16 pwm0_values[] = {
84 BIT(1) | BIT(0),
85 };
86
> 87 static const char * const pwm1_groups[] = {
88 GROUPNAME_PWM1_MODE3,
89 };
> 90 static const u16 pwm1_values[] = {
91 BIT(3) | BIT(2),
92 };
93
> 94 static const char * const pwm2_groups[] = {
95 GROUPNAME_PWM2_MODE2,
96 };
> 97 static const u16 pwm2_values[] = {
98 BIT(5),
99 };
100
> 101 static const char * const pwm3_groups[] = {
102 GROUPNAME_PWM3_MODE2,
103 };
> 104 static const u16 pwm3_values[] = {
105 BIT(7),
106 };
107

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-09-20 22:16    [W:0.086 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site