public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [cornelisnetworks:for-upstream_20260226-0944 30/32] drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro
@ 2026-02-27  7:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-27  7:17 UTC (permalink / raw)
  To: Dennis Dalessandro; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/cornelisnetworks/linux.git for-upstream_20260226-0944
head:   06fbcbb2c9e97584450614a6d14c0d0f978b8209
commit: 62158d11e11c670a30dd0becb21732fef40a1ab8 [30/32] RDMA/hfi2: Make it build
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260227/202602271552.pLL2VD5M-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260227/202602271552.pLL2VD5M-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602271552.pLL2VD5M-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/infiniband/hw/hfi2/affinity.c:11:
   In file included from drivers/infiniband/hw/hfi2/hfi2.h:40:
   In file included from drivers/infiniband/hw/hfi2/verbs.h:31:
   In file included from drivers/infiniband/hw/hfi2/iowait.h:14:
   In file included from drivers/infiniband/hw/hfi2/sdma_txreq.h:9:
>> drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
       7 | #ifndef _HFI2_SDMA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
   drivers/infiniband/hw/hfi2/sdma_defs.h:8:9: note: '_HFI2_SMDA_DEFS_H' is defined here; did you mean '_HFI2_SDMA_DEFS_H'?
       8 | #define _HFI2_SMDA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
         |         _HFI2_SDMA_DEFS_H
   1 warning generated.
--
>> Warning: drivers/infiniband/hw/hfi2/affinity.c:92 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst
    * Remove HT/SMT threads from cores in @cpus.
--
   In file included from drivers/infiniband/hw/hfi2/chip.c:16:
   In file included from drivers/infiniband/hw/hfi2/hfi2.h:40:
   In file included from drivers/infiniband/hw/hfi2/verbs.h:31:
   In file included from drivers/infiniband/hw/hfi2/iowait.h:14:
   In file included from drivers/infiniband/hw/hfi2/sdma_txreq.h:9:
>> drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
       7 | #ifndef _HFI2_SDMA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
   drivers/infiniband/hw/hfi2/sdma_defs.h:8:9: note: '_HFI2_SMDA_DEFS_H' is defined here; did you mean '_HFI2_SDMA_DEFS_H'?
       8 | #define _HFI2_SMDA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
         |         _HFI2_SDMA_DEFS_H
>> drivers/infiniband/hw/hfi2/chip.c:11131:28: warning: variable 'extended_vl' set but not used [-Wunused-but-set-variable]
    11131 |         unsigned int qpns_per_vl, extended_vl, ctxt, i, qpn, n, m;
          |                                   ^
   2 warnings generated.
--
>> Warning: drivers/infiniband/hw/hfi2/chip_gen.c:588 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst
    * Ask cport firmware for the temperature.
--
   In file included from drivers/infiniband/hw/hfi2/cport.c:13:
   In file included from drivers/infiniband/hw/hfi2/hfi2.h:40:
   In file included from drivers/infiniband/hw/hfi2/verbs.h:31:
   In file included from drivers/infiniband/hw/hfi2/iowait.h:14:
   In file included from drivers/infiniband/hw/hfi2/sdma_txreq.h:9:
>> drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
       7 | #ifndef _HFI2_SDMA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
   drivers/infiniband/hw/hfi2/sdma_defs.h:8:9: note: '_HFI2_SMDA_DEFS_H' is defined here; did you mean '_HFI2_SDMA_DEFS_H'?
       8 | #define _HFI2_SMDA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
         |         _HFI2_SDMA_DEFS_H
>> drivers/infiniband/hw/hfi2/cport.c:843:50: warning: result of comparison of constant 256 with expression of type 'u8' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
     843 |         if (op_start > op_end || op_start < 0 || op_end >= 256)
         |                                                  ~~~~~~ ^  ~~~
   2 warnings generated.
--
>> Warning: drivers/infiniband/hw/hfi2/chip.c:8166 function parameter 'ppd' not described in 'set_hdrq_regs'
>> Warning: drivers/infiniband/hw/hfi2/chip.c:10799 function parameter 'ppd' not described in 'hfi2_get_qp_map'
>> Warning: drivers/infiniband/hw/hfi2/chip.c:10843 function parameter 'ppd' not described in 'init_qpmap_table'
>> Warning: drivers/infiniband/hw/hfi2/chip.c:8166 function parameter 'ppd' not described in 'set_hdrq_regs'
>> Warning: drivers/infiniband/hw/hfi2/chip.c:10799 function parameter 'ppd' not described in 'hfi2_get_qp_map'
>> Warning: drivers/infiniband/hw/hfi2/chip.c:10843 function parameter 'ppd' not described in 'init_qpmap_table'
--
   In file included from drivers/infiniband/hw/hfi2/init.c:19:
   In file included from drivers/infiniband/hw/hfi2/hfi2.h:40:
   In file included from drivers/infiniband/hw/hfi2/verbs.h:31:
   In file included from drivers/infiniband/hw/hfi2/iowait.h:14:
   In file included from drivers/infiniband/hw/hfi2/sdma_txreq.h:9:
>> drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
       7 | #ifndef _HFI2_SDMA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
   drivers/infiniband/hw/hfi2/sdma_defs.h:8:9: note: '_HFI2_SMDA_DEFS_H' is defined here; did you mean '_HFI2_SDMA_DEFS_H'?
       8 | #define _HFI2_SMDA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
         |         _HFI2_SDMA_DEFS_H
>> drivers/infiniband/hw/hfi2/init.c:2499:6: warning: variable 'initfail' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
    2499 |         if (!ret)
         |             ^~~~
   drivers/infiniband/hw/hfi2/init.c:2502:7: note: uninitialized use occurs here
    2502 |         if (!initfail && !ret)
         |              ^~~~~~~~
   drivers/infiniband/hw/hfi2/init.c:2499:2: note: remove the 'if' if its condition is always true
    2499 |         if (!ret)
         |         ^~~~~~~~~
    2500 |                 initfail = hfi2_init(dd, 0);
   drivers/infiniband/hw/hfi2/init.c:2389:29: note: initialize the variable 'initfail' to silence this warning
    2389 |         int ret = 0, pidx, initfail;
         |                                    ^
         |                                     = 0
   2 warnings generated.
--
>> Warning: drivers/infiniband/hw/hfi2/intr.c:78 function parameter 'ppd' not described in 'handle_linkup_change'
>> Warning: drivers/infiniband/hw/hfi2/intr.c:78 function parameter 'ppd' not described in 'handle_linkup_change'
--
>> Warning: drivers/infiniband/hw/hfi2/init.c:970 function parameter 'index' not described in 'allocate_rcd_index'
>> Warning: drivers/infiniband/hw/hfi2/init.c:1988 function parameter 'params' not described in 'hfi2_alloc_devdata'
>> Warning: drivers/infiniband/hw/hfi2/init.c:970 function parameter 'index' not described in 'allocate_rcd_index'
>> Warning: drivers/infiniband/hw/hfi2/init.c:1988 function parameter 'params' not described in 'hfi2_alloc_devdata'
--
   In file included from drivers/infiniband/hw/hfi2/pinning.c:10:
   In file included from drivers/infiniband/hw/hfi2/trace.h:15:
   In file included from drivers/infiniband/hw/hfi2/trace_dbg.h:12:
   In file included from drivers/infiniband/hw/hfi2/hfi2.h:40:
   In file included from drivers/infiniband/hw/hfi2/verbs.h:31:
   In file included from drivers/infiniband/hw/hfi2/iowait.h:14:
   In file included from drivers/infiniband/hw/hfi2/sdma_txreq.h:9:
>> drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
       7 | #ifndef _HFI2_SDMA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
   drivers/infiniband/hw/hfi2/sdma_defs.h:8:9: note: '_HFI2_SMDA_DEFS_H' is defined here; did you mean '_HFI2_SDMA_DEFS_H'?
       8 | #define _HFI2_SMDA_DEFS_H
         |         ^~~~~~~~~~~~~~~~~
         |         _HFI2_SDMA_DEFS_H
   In file included from drivers/infiniband/hw/hfi2/pinning.c:7:
   In file included from include/linux/string.h:386:
   include/linux/fortify-string.h:478:4: warning: call to '__write_overflow_field' declared with 'warning' attribute: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
     478 |                         __write_overflow_field(p_size_field, size);
         |                         ^
   2 warnings generated.
--
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:302 function parameter 'ppd' not described in 'hfi2_netdev_rx_init'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:323 function parameter 'ppd' not described in 'hfi2_netdev_rx_destroy'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:404 function parameter 'ppd' not described in 'hfi2_netdev_enable_queues'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:444 function parameter 'ppd' not described in 'hfi2_netdev_add_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:458 function parameter 'ppd' not described in 'hfi2_netdev_remove_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:471 function parameter 'ppd' not described in 'hfi2_netdev_get_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:484 function parameter 'ppd' not described in 'hfi2_netdev_get_first_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:302 function parameter 'ppd' not described in 'hfi2_netdev_rx_init'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:323 function parameter 'ppd' not described in 'hfi2_netdev_rx_destroy'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:404 function parameter 'ppd' not described in 'hfi2_netdev_enable_queues'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:444 function parameter 'ppd' not described in 'hfi2_netdev_add_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:458 function parameter 'ppd' not described in 'hfi2_netdev_remove_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:471 function parameter 'ppd' not described in 'hfi2_netdev_get_data'
>> Warning: drivers/infiniband/hw/hfi2/netdev_rx.c:484 function parameter 'ppd' not described in 'hfi2_netdev_get_first_data'
..


vim +/_HFI2_SDMA_DEFS_H +7 drivers/infiniband/hw/hfi2/sdma_defs.h

3ee29f993aa1b6 Dennis Dalessandro 2026-01-21 @7  #ifndef _HFI2_SDMA_DEFS_H
3ee29f993aa1b6 Dennis Dalessandro 2026-01-21  8  #define _HFI2_SMDA_DEFS_H
3ee29f993aa1b6 Dennis Dalessandro 2026-01-21  9  

:::::: The code at line 7 was first introduced by commit
:::::: 3ee29f993aa1b67ceb78e1a10847d432be93558a RDMA/hfi2: Add IO related headers

:::::: TO: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
:::::: CC: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2026-02-27  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27  7:17 [cornelisnetworks:for-upstream_20260226-0944 30/32] drivers/infiniband/hw/hfi2/sdma_defs.h:7:9: warning: '_HFI2_SDMA_DEFS_H' is used as a header guard here, followed by #define of a different macro kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox