[rdma:wip/leon-for-next 19/29] include/rdma/ib_ucaps.h:19:18: warning: extra tokens at end of #ifdef directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/leon-for-next
head:   b064e7b61e82e48d030582eb1d3701b31c2b16c8
commit: 548599879c3a640b3893070a1739624bcfdb968d [19/29] RDMA/uverbs: Introduce UCAP (User CAPabilities) API
config: csky-randconfig-002-20250309 (https://download.01.org/0day-ci/archive/20250309/202503092207.3Ho0hd5Q-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503092207.3Ho0hd5Q-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503092207.3Ho0hd5Q-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from drivers/infiniband/core/ucaps.c:11:
>> include/rdma/ib_ucaps.h:19:18: warning: extra tokens at end of #ifdef directive
      19 | #ifdef IS_ENABLED(CONFIG_INFINIBAND_USER_ACCESS)
         |                  ^


vim +19 include/rdma/ib_ucaps.h

    16	
    17	void ib_cleanup_ucaps(void);
    18	int ib_get_ucaps(int *fds, int fd_count, uint64_t *idx_mask);
  > 19	#ifdef IS_ENABLED(CONFIG_INFINIBAND_USER_ACCESS)
    20	int ib_create_ucap(enum rdma_user_cap type);
    21	void ib_remove_ucap(enum rdma_user_cap type);
    22	#else
    23	static inline int ib_create_ucap(enum rdma_user_cap type)
    24	{
    25		return -EOPNOTSUPP;
    26	}
    27	static inline void ib_remove_ucap(enum rdma_user_cap type) {}
    28	#endif /* CONFIG_INFINIBAND_USER_ACCESS */
    29	

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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux