[tegra-drm:drm/tegra/for-next 1/14] drivers/gpu/host1x/fence.c:168:5: warning: no previous prototype for function 'host1x_fence_create_fd'

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

 



tree:   git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
head:   b19502d1a683c11f6f2c92ad63c61288b0fbe1a1
commit: ad0529424defbbe0b6a154cc100e82c1a9f91400 [1/14] gpu: host1x: Add DMA fence implementation
config: arm64-randconfig-r025-20210714 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0e49c54a8cbd3e779e5526a5888c683c01cc3c50)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git remote add tegra-drm git://anongit.freedesktop.org/tegra/linux.git
        git fetch --no-tags tegra-drm drm/tegra/for-next
        git checkout ad0529424defbbe0b6a154cc100e82c1a9f91400
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/host1x/fence.c:168:5: warning: no previous prototype for function 'host1x_fence_create_fd' [-Wmissing-prototypes]
   int host1x_fence_create_fd(struct host1x_syncpt *sp, u32 threshold)
       ^
   drivers/gpu/host1x/fence.c:168:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int host1x_fence_create_fd(struct host1x_syncpt *sp, u32 threshold)
   ^
   static 
   1 warning generated.


vim +/host1x_fence_create_fd +168 drivers/gpu/host1x/fence.c

   167	
 > 168	int host1x_fence_create_fd(struct host1x_syncpt *sp, u32 threshold)
   169	{
   170		struct sync_file *file;
   171		struct dma_fence *f;
   172		int fd;
   173	
   174		f = host1x_fence_create(sp, threshold);
   175		if (IS_ERR(f))
   176			return PTR_ERR(f);
   177	
   178		fd = get_unused_fd_flags(O_CLOEXEC);
   179		if (fd < 0) {
   180			dma_fence_put(f);
   181			return fd;
   182		}
   183	
   184		file = sync_file_create(f);
   185		dma_fence_put(f);
   186		if (!file)
   187			return -ENOMEM;
   188	
   189		fd_install(fd, file->file);
   190	
   191		return fd;
   192	}
   193	EXPORT_SYMBOL(host1x_fence_create_fd);
   194	

---
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 DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux