]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/netlink: Add __maybe_unused to static inline in C file
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 7 Nov 2021 06:40:47 +0000 (08:40 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 16 Nov 2021 17:13:08 +0000 (13:13 -0400)
commit893a2663bddbfaf2ef811c68d9d730a192f62b06
treed78a3c2839c18f94e360de5b653700bbbbf21c85
parentbad68f6c0c96b209be688acd1511fc590315093b
RDMA/netlink: Add __maybe_unused to static inline in C file

Like other commits in the tree add __maybe_unused to a static inline in a
C file because some clang compilers will complain about unused code:

>> drivers/infiniband/core/nldev.c:2543:1: warning: unused function '__chk_RDMA_NL_NLDEV'
   MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
   ^

Fixes: ace73c612233 ("rdma: Autoload netlink client modules")
Link: https://lore.kernel.org/r/4a8101919b765e01d7fde6f27fd572c958deeb4a.1636267207.git.leonro@nvidia.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/rdma/rdma_netlink.h