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-a005-20210112 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
32bcfcda4e28375e5a85268d2acfabcfcc011abf)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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:220:6: error: redefinition of
'len' with a different type: 's32' (aka 'int') vs
'uint16_t' (aka 'unsigned short')
s32 len;
^
drivers/media/i2c/adv7511-v4l2.c:217:61: note: previous definition is here
static int adv7511_edid_rd(struct v4l2_subdev *sd, uint16_t len, uint8_t *buf)
^
1 error generated.
vim +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