[tegra-drm:drm/tegra/for-next 1/14] drivers/gpu/host1x/fence.c:168:5: warning: no previous prototype for '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: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        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=gcc-9.3.0 make.cross ARCH=arm 

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 'host1x_fence_create_fd' [-Wmissing-prototypes]
     168 | int host1x_fence_create_fd(struct host1x_syncpt *sp, u32 threshold)
         |     ^~~~~~~~~~~~~~~~~~~~~~


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]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux