[rdma:wip/jgg-for-next 89/95] include/rdma/ib_umem.h:187:24: warning: no previous prototype for function 'ib_umem_dmabuf_get_pinned'

[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/jgg-for-next
head:   c200e6a625c01880074a0c8137361dd8a927fbb4
commit: 4f9e1c0814f9ca8002820d4f7a38d0992add454e [89/95] RDMA/umem: Allow pinned dmabuf umem usage
config: riscv-randconfig-r012-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=4f9e1c0814f9ca8002820d4f7a38d0992add454e
        git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
        git fetch --no-tags rdma wip/jgg-for-next
        git checkout 4f9e1c0814f9ca8002820d4f7a38d0992add454e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/infiniband/core/nldev.c:44:
   In file included from drivers/infiniband/core/uverbs.h:47:
>> include/rdma/ib_umem.h:187:24: warning: no previous prototype for function 'ib_umem_dmabuf_get_pinned' [-Wmissing-prototypes]
   struct ib_umem_dmabuf *ib_umem_dmabuf_get_pinned(struct ib_device *device,
                          ^
   include/rdma/ib_umem.h:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct ib_umem_dmabuf *ib_umem_dmabuf_get_pinned(struct ib_device *device,
   ^
   static 
   drivers/infiniband/core/nldev.c:2543:1: warning: unused function '__chk_RDMA_NL_NLDEV' [-Wunused-function]
   MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
   ^
   include/rdma/rdma_netlink.h:33:21: note: expanded from macro 'MODULE_ALIAS_RDMA_NETLINK'
           static inline void __chk_##_index(void)                                \
                              ^
   <scratch space>:201:1: note: expanded from here
   __chk_RDMA_NL_NLDEV
   ^
   2 warnings generated.
--
   In file included from drivers/infiniband/core/ib_core_uverbs.c:8:
   In file included from drivers/infiniband/core/uverbs.h:47:
>> include/rdma/ib_umem.h:187:24: warning: no previous prototype for function 'ib_umem_dmabuf_get_pinned' [-Wmissing-prototypes]
   struct ib_umem_dmabuf *ib_umem_dmabuf_get_pinned(struct ib_device *device,
                          ^
   include/rdma/ib_umem.h:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct ib_umem_dmabuf *ib_umem_dmabuf_get_pinned(struct ib_device *device,
   ^
   static 
   1 warning generated.


vim +/ib_umem_dmabuf_get_pinned +187 include/rdma/ib_umem.h

   154	
   155	static inline struct ib_umem *ib_umem_get(struct ib_device *device,
   156						  unsigned long addr, size_t size,
   157						  int access)
   158	{
   159		return ERR_PTR(-EOPNOTSUPP);
   160	}
   161	static inline void ib_umem_release(struct ib_umem *umem) { }
   162	static inline int ib_umem_copy_from(void *dst, struct ib_umem *umem, size_t offset,
   163			      		    size_t length) {
   164		return -EOPNOTSUPP;
   165	}
   166	static inline unsigned long ib_umem_find_best_pgsz(struct ib_umem *umem,
   167							   unsigned long pgsz_bitmap,
   168							   unsigned long virt)
   169	{
   170		return 0;
   171	}
   172	static inline unsigned long ib_umem_find_best_pgoff(struct ib_umem *umem,
   173							    unsigned long pgsz_bitmap,
   174							    u64 pgoff_bitmask)
   175	{
   176		return 0;
   177	}
   178	static inline
   179	struct ib_umem_dmabuf *ib_umem_dmabuf_get(struct ib_device *device,
   180						  unsigned long offset,
   181						  size_t size, int fd,
   182						  int access,
   183						  struct dma_buf_attach_ops *ops)
   184	{
   185		return ERR_PTR(-EOPNOTSUPP);
   186	}
 > 187	struct ib_umem_dmabuf *ib_umem_dmabuf_get_pinned(struct ib_device *device,
   188							 unsigned long offset,
   189							 size_t size, int fd,
   190							 int access)
   191	{
   192		return ERR_PTR(-EOPNOTSUPP);
   193	}
   194	static inline int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf)
   195	{
   196		return -EOPNOTSUPP;
   197	}
   198	static inline void ib_umem_dmabuf_unmap_pages(struct ib_umem_dmabuf *umem_dmabuf) { }
   199	static inline void ib_umem_dmabuf_release(struct ib_umem_dmabuf *umem_dmabuf) { }
   200	

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

Attachment: .config.gz
Description: application/gzip


[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