From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [chenxing:msc313_mainlining 37/57] drivers/pinctrl/mstar/pinctrl-msc313.c:37:27: error: unused variable 'i2c0_groups'
Date: Tue, 21 Sep 2021 04:13:04 +0800 [thread overview]
Message-ID: <202109210458.I53qMOIV-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 7078 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33526 bytes --]
reply other threads:[~2021-09-20 20:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202109210458.I53qMOIV-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel@0x0f.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®