From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6FBF2C9D for ; Wed, 5 Jan 2022 15:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641395866; x=1672931866; h=date:from:to:cc:subject:message-id:mime-version; bh=hpKl/9ZkBTGQ5ElBaYyYUoe3zIlQdBS1rTdYZzRiWqE=; b=jv784Il2EIB52+w0O3oZyvSLbRcjtGej7GrQx4ckvmijfZeXfIt0LDG6 iUds5oJxsKvtVi/gKX4KwAkc+WhAwr/Ye8kiuih4VcVkwakGzoRkdxp3Q 3MK9m5b4XxreqzIIKf0DWWm19+Wm+C4kbcvh+/1Vr4kfVFy49+OOJb6zA 3NgtMRaWygjRCXtNULaMsN/XGA5SIIKEEnmxIaaYNWla5VwCtWOGt1dm7 NXkU/V6b+R4w/EiuQ2N/qCoY2CCkBVw6/n3QCsmRVV4EM8TCtYX+AWqc/ JcSUIoudutsZhcuayNMsqEDYmrvSMM4nfevWLF1bmIqpDXWYMA4wo+SrK w==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="303214860" X-IronPort-AV: E=Sophos;i="5.88,264,1635231600"; d="scan'208";a="303214860" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2022 07:17:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,264,1635231600"; d="scan'208";a="470602837" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 05 Jan 2022 07:17:44 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n582p-000Gmj-U6; Wed, 05 Jan 2022 15:17:43 +0000 Date: Wed, 5 Jan 2022 23:17:34 +0800 From: kernel test robot To: Michael Zaidman Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Jiri Kosina Subject: drivers/hid/hid-ft260.c:879:1: warning: taking address of packed member 'clock' of class or structure 'ft260_get_i2c_status_report' may result in an unaligned pointer value Message-ID: <202201052330.GECx4YSO-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c9e6606c7fe92b50a02ce51dda82586ebdf99b48 commit: 6a82582d9fa438045191074856f47165334f2777 HID: ft260: add usb hid to i2c host bridge driver date: 10 months ago config: mips-randconfig-r036-20220105 (https://download.01.org/0day-ci/archive/20220105/202201052330.GECx4YSO-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e30ed3acad794dd0aec400e617daffc6cc3d) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a82582d9fa438045191074856f47165334f2777 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 6a82582d9fa438045191074856f47165334f2777 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/hid/ drivers/usb/gadget/ fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/hid/hid-ft260.c:515:59: warning: variable 'len' is uninitialized when used here [-Wuninitialized] hid_err(hdev, "%s: unsupported wr len: %d\n", __func__, len); ^~~ include/linux/hid.h:1190:30: note: expanded from macro 'hid_err' dev_err(&(hid)->dev, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/dev_printk.h:112:32: note: expanded from macro 'dev_err' _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ drivers/hid/hid-ft260.c:507:9: note: initialize the variable 'len' to silence this warning int len, ret; ^ = 0 >> drivers/hid/hid-ft260.c:879:1: warning: taking address of packed member 'clock' of class or structure 'ft260_get_i2c_status_report' may result in an unaligned pointer value [-Waddress-of-packed-member] FT260_I2CST_ATTR_SHOW(clock); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-ft260.c:814:3: note: expanded from macro 'FT260_I2CST_ATTR_SHOW' FT260_ATTR_SHOW(name, ft260_get_i2c_status_report, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-ft260.c:803:18: note: expanded from macro 'FT260_ATTR_SHOW' type *field = &rep.name; \ ^~~~~~~~ 2 warnings generated. vim +879 drivers/hid/hid-ft260.c 878 > 879 FT260_I2CST_ATTR_SHOW(clock); 880 FT260_WORD_ATTR_STORE(clock, ft260_set_i2c_speed_report, 881 FT260_SET_I2C_CLOCK_SPEED); 882 static DEVICE_ATTR_RW(clock); 883 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5755017708983526194==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: drivers/hid/hid-ft260.c:879:1: warning: taking address of packed member 'clock' of class or structure 'ft260_get_i2c_status_report' may result in an unaligned pointer value Date: Wed, 05 Jan 2022 23:17:34 +0800 Message-ID: <202201052330.GECx4YSO-lkp@intel.com> List-Id: --===============5755017708983526194== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: c9e6606c7fe92b50a02ce51dda82586ebdf99b48 commit: 6a82582d9fa438045191074856f47165334f2777 HID: ft260: add usb hid to= i2c host bridge driver date: 10 months ago config: mips-randconfig-r036-20220105 (https://download.01.org/0day-ci/arch= ive/20220105/202201052330.GECx4YSO-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e3= 0ed3acad794dd0aec400e617daffc6cc3d) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3D6a82582d9fa438045191074856f47165334f2777 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout 6a82582d9fa438045191074856f47165334f2777 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash drivers/hid/ drivers/usb/gadg= et/ fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/hid/hid-ft260.c:515:59: warning: variable 'len' is uninitialized= when used here [-Wuninitialized] hid_err(hdev, "%s: unsupported wr len: %d\n", __func__, = len); = ^~~ include/linux/hid.h:1190:30: note: expanded from macro 'hid_err' dev_err(&(hid)->dev, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/dev_printk.h:112:32: note: expanded from macro 'dev_err' _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ drivers/hid/hid-ft260.c:507:9: note: initialize the variable 'len' to si= lence this warning int len, ret; ^ =3D 0 >> drivers/hid/hid-ft260.c:879:1: warning: taking address of packed member = 'clock' of class or structure 'ft260_get_i2c_status_report' may result in a= n unaligned pointer value [-Waddress-of-packed-member] FT260_I2CST_ATTR_SHOW(clock); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-ft260.c:814:3: note: expanded from macro 'FT260_I2CST_AT= TR_SHOW' FT260_ATTR_SHOW(name, ft260_get_i2c_status_report, = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~ drivers/hid/hid-ft260.c:803:18: note: expanded from macro 'FT260_ATTR_SH= OW' type *field =3D &rep.name; = \ ^~~~~~~~ 2 warnings generated. vim +879 drivers/hid/hid-ft260.c 878 = > 879 FT260_I2CST_ATTR_SHOW(clock); 880 FT260_WORD_ATTR_STORE(clock, ft260_set_i2c_speed_report, 881 FT260_SET_I2C_CLOCK_SPEED); 882 static DEVICE_ATTR_RW(clock); 883 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5755017708983526194==--