All of lore.kernel.org
 help / color / mirror / Atom feed
* [saeed:net-next-mlx5 7/15] include/vdso/bits.h:7:26: warning: left shift count >= width of type
@ 2020-10-14 10:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-14 10:41 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git net-next-mlx5
head:   6f14b7d62cb5e2f707e50f77bb392e100ac403f7
commit: 6aa942ad90fae85c4ad0aa9434ffdfac170cb7da [7/15] net/mlx5: Add sample offload hardware bits and structures
config: mips-randconfig-r032-20201014 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/commit/?id=6aa942ad90fae85c4ad0aa9434ffdfac170cb7da
        git remote add saeed https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
        git fetch --no-tags saeed net-next-mlx5
        git checkout 6aa942ad90fae85c4ad0aa9434ffdfac170cb7da
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/list.h:9,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from include/linux/highmem.h:5,
                    from drivers/net/ethernet/mellanox/mlx5/core/main.c:33:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/list.h:9,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from include/linux/highmem.h:5,
                    from drivers/net/ethernet/mellanox/mlx5/core/main.c:33:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/main.c:56:
   drivers/net/ethernet/mellanox/mlx5/core/fs_core.h:40:10: fatal error: steering/fs_dr.h: No such file or directory
      40 | #include <steering/fs_dr.h>
         |          ^~~~~~~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/interrupt.h:6,
                    from drivers/net/ethernet/mellanox/mlx5/core/eq.c:33:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/eq.c:44:
   drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h:40:10: fatal error: mlx5_core.h: No such file or directory
      40 | #include "mlx5_core.h"
         |          ^~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from drivers/net/ethernet/mellanox/mlx5/core/health.c:33:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/health.c:41:
   drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:36:10: fatal error: mlx5_core.h: No such file or directory
      36 | #include "mlx5_core.h"
         |          ^~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/ioport.h:15,
                    from include/linux/pci.h:31,
                    from drivers/net/ethernet/mellanox/mlx5/core/sriov.c:33:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/eswitch.h:46,
                    from drivers/net/ethernet/mellanox/mlx5/core/sriov.c:37:
   drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h:11:10: fatal error: en.h: No such file or directory
      11 | #include "en.h"
         |          ^~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/mlx5/driver.h:36,
                    from drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:33:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:36:10: fatal error: mlx5_core.h: No such file or directory
      36 | #include "mlx5_core.h"
         |          ^~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/mlx5/driver.h:36,
                    from include/linux/mlx5/vport.h:36,
                    from drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c:4:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c:5:10: fatal error: lib/devcom.h: No such file or directory
       5 | #include "lib/devcom.h"
         |          ^~~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/mlx5/driver.h:36,
                    from drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c:4:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c:7:10: fatal error: mlx5_core.h: No such file or directory
       7 | #include "mlx5_core.h"
         |          ^~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/list.h:9,
                    from include/linux/smp.h:12,
                    from include/linux/tracepoint.h:15,
                    from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h:36,
                    from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c:35:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h:38,
                    from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c:35:
   drivers/net/ethernet/mellanox/mlx5/core/diag/../fs_core.h:40:10: fatal error: steering/fs_dr.h: No such file or directory
      40 | #include <steering/fs_dr.h>
         |          ^~~~~~~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/mlx5/driver.h:36,
                    from drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.c:4:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.c:5:10: fatal error: mlx5_core.h: No such file or directory
       5 | #include "mlx5_core.h"
         |          ^~~~~~~~~~~~~
   compilation terminated.
--
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/mlx5/driver.h:36,
                    from include/linux/mlx5/rsc_dump.h:4,
                    from drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.h:7,
                    from drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.c:4:
>> include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   include/linux/mlx5/mlx5_ifc.h:10659:46: note: in expansion of macro 'BIT'
   10659 |  MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT(0x20),
         |                                              ^~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.c:4:
   drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.h:9:10: fatal error: mlx5_core.h: No such file or directory
       9 | #include "mlx5_core.h"
         |          ^~~~~~~~~~~~~
   compilation terminated.
..

vim +7 include/vdso/bits.h

3945ff37d2f48d Vincenzo Frascino 2020-03-20  6  
3945ff37d2f48d Vincenzo Frascino 2020-03-20 @7  #define BIT(nr)			(UL(1) << (nr))
3945ff37d2f48d Vincenzo Frascino 2020-03-20  8  

:::::: The code@line 7 was first introduced by commit
:::::: 3945ff37d2f48d39fd1751d282c80176654049e4 linux/bits.h: Extract common header for vDSO

:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
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: 34748 bytes --]

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

only message in thread, other threads:[~2020-10-14 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-14 10:41 [saeed:net-next-mlx5 7/15] include/vdso/bits.h:7:26: warning: left shift count >= width of type 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.