CC: [email protected] CC: [email protected] TO: Kees Cook <[email protected]> CC: Michael Chan <[email protected]> CC: "Gustavo A. R. Silva" <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8ab774587903771821b59471cc723bba6d893942 commit: 241fe395e8fe647b3433d9ac2bf863e0651d8eca bnxt_en: Use struct_group_attr() for memcpy() region date: 7 weeks ago :::::: branch date: 2 days ago :::::: commit date: 7 weeks ago config: i386-randconfig-s001-20211116 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=241fe395e8fe647b3433d9ac2bf863e0651d8eca git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 241fe395e8fe647b3433d9ac2bf863e0651d8eca # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c: note: in included file: >> drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: sparse: sparse: >> directive in macro's argument list -- drivers/net/ethernet/broadcom/bnxt/bnxt.c: note: in included file: >> drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: sparse: sparse: >> directive in macro's argument list vim +30 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h 7df4ae9fe85567 Michael Chan 2016-12-02 23 7df4ae9fe85567 Michael Chan 2016-12-02 24 struct bnxt_cos2bw_cfg { 7df4ae9fe85567 Michael Chan 2016-12-02 25 u8 pad[3]; 241fe395e8fe64 Kees Cook 2021-05-24 26 struct_group_attr(cfg, __packed, 7df4ae9fe85567 Michael Chan 2016-12-02 27 u8 queue_id; 7df4ae9fe85567 Michael Chan 2016-12-02 28 __le32 min_bw; 7df4ae9fe85567 Michael Chan 2016-12-02 29 __le32 max_bw; 70098a47bbf131 Michael Chan 2017-07-24 @30 #define BW_VALUE_UNIT_PERCENT1_100 (0x1UL << 29) 7df4ae9fe85567 Michael Chan 2016-12-02 31 u8 tsa; 7df4ae9fe85567 Michael Chan 2016-12-02 32 u8 pri_lvl; 7df4ae9fe85567 Michael Chan 2016-12-02 33 u8 bw_weight; 241fe395e8fe64 Kees Cook 2021-05-24 34 ); 7df4ae9fe85567 Michael Chan 2016-12-02 35 u8 unused; 7df4ae9fe85567 Michael Chan 2016-12-02 36 }; 7df4ae9fe85567 Michael Chan 2016-12-02 37 :::::: The code at line 30 was first introduced by commit :::::: 70098a47bbf131b65c64ca935c2480e64c9c7c51 bnxt_en: Set ETS min_bw parameter for older firmware. :::::: TO: Michael Chan <[email protected]> :::::: CC: David S. Miller <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
