From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [RFC PATCH wsa] i2c: npcm7xx: npcm_i2caddr[] can be static
Date: Thu, 11 Jun 2020 10:50:35 +0800 [thread overview]
Message-ID: <20200611025035.GA36505@bce68231a323> (raw)
In-Reply-To: <202006111013.sWdCKUu7%lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
Fixes: f54736925a4f ("i2c: npcm7xx: Add support for slave mode for Nuvoton")
Signed-off-by: kernel test robot <lkp@intel.com>
---
i2c-npcm7xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm7xx.c
index a8e75c3484f12..d027c0a3a887f 100644
--- a/drivers/i2c/busses/i2c-npcm7xx.c
+++ b/drivers/i2c/busses/i2c-npcm7xx.c
@@ -124,7 +124,7 @@ enum i2c_addr {
* use this array to get the address or each register.
*/
#define I2C_NUM_OWN_ADDR 10
-const int npcm_i2caddr[I2C_NUM_OWN_ADDR] = {
+static const int npcm_i2caddr[I2C_NUM_OWN_ADDR] = {
NPCM_I2CADDR1, NPCM_I2CADDR2, NPCM_I2CADDR3, NPCM_I2CADDR4,
NPCM_I2CADDR5, NPCM_I2CADDR6, NPCM_I2CADDR7, NPCM_I2CADDR8,
NPCM_I2CADDR9, NPCM_I2CADDR10,
next prev parent reply other threads:[~2020-06-11 2:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 2:50 [wsa:i2c/for-5.8 98/102] drivers/i2c/busses/i2c-npcm7xx.c:127:11: sparse: sparse: symbol 'npcm_i2caddr' was not declared. Should it be kernel test robot
2020-06-11 2:50 ` kernel test robot [this message]
2020-06-11 10:31 ` [RFC PATCH wsa] i2c: npcm7xx: npcm_i2caddr[] can be static Wolfram Sang
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=20200611025035.GA36505@bce68231a323 \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.