tree:
https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git
renesas/i2c/smbus-cleanup
head: 06a3965f7ca847f8c42e7715251164ba6255e2a2
commit: d1a63e5917cd60f1599b8a3a602bdef80e8b2bb3 [13/14] media: i2c: adv7842: remove open
coded version of SMBus block read
config: x86_64-randconfig-s022-20210112 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git/commit/?id=...
git remote add wsa
https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git
git fetch --no-tags wsa renesas/i2c/smbus-cleanup
git checkout d1a63e5917cd60f1599b8a3a602bdef80e8b2bb3
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/media/i2c/adv7511-v4l2.c: In function 'adv7511_edid_rd':
> drivers/media/i2c/adv7511-v4l2.c:220:6: error: 'len'
redeclared as different kind of symbol
220 | s32 len;
| ^~~
drivers/media/i2c/adv7511-v4l2.c:217:61: note: previous definition of 'len' was
here
217 | static int adv7511_edid_rd(struct v4l2_subdev *sd, uint16_t len, uint8_t *buf)
| ~~~~~~~~~^~~
vim +/len +220 drivers/media/i2c/adv7511-v4l2.c
216
217 static int adv7511_edid_rd(struct v4l2_subdev *sd, uint16_t len, uint8_t *buf)
218 {
219 struct adv7511_state *state = get_adv7511_state(sd);
220 s32 len;
221 int i;
222
223 v4l2_dbg(1, debug, sd, "%s:\n", __func__);
224
225 for (i = 0; i < len; i += I2C_SMBUS_BLOCK_MAX) {
226 len = i2c_smbus_read_i2c_block_data(state->i2c_edid, i,
227 I2C_SMBUS_BLOCK_MAX, buf + i);
228 if (len < 0) {
229 v4l2_err(sd, "%s: i2c read error\n", __func__);
230 return len;
231 }
232 }
233
234 return 0;
235 }
236
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org