All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: sparse: sparse: directive in macro's argument list
@ 2021-11-17  0:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-17  0:29 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3107 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Kees Cook <keescook@chromium.org>
CC: Michael Chan <michael.chan@broadcom.com>
CC: "Gustavo A. R. Silva" <gustavoars@kernel.org>

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 <lkp@intel.com>


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@line 30 was first introduced by commit
:::::: 70098a47bbf131b65c64ca935c2480e64c9c7c51 bnxt_en: Set ETS min_bw parameter for older firmware.

:::::: TO: Michael Chan <michael.chan@broadcom.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33133 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-17  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17  0:29 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: sparse: sparse: directive in macro's argument list kernel test robot

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.