[tegra-drm:drm/tegra/for-next 9/14] drivers/gpu/drm/tegra/uapi.c:278:5: warning: no previous prototype for function 'tegra_drm_ioctl_gem_create'

kernel test robot lkp at intel.com
Thu Jul 15 04:28:39 UTC 2021


tree:   git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
head:   b19502d1a683c11f6f2c92ad63c61288b0fbe1a1
commit: cdf631031f3e574b76afed51bda0ccc9d71d4a4e [9/14] drm/tegra: Implement new UAPI
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 cdf631031f3e574b76afed51bda0ccc9d71d4a4e
        # 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 at intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/tegra/uapi.c:278:5: warning: no previous prototype for function 'tegra_drm_ioctl_gem_create' [-Wmissing-prototypes]
   int tegra_drm_ioctl_gem_create(struct drm_device *drm, void *data,
       ^
   drivers/gpu/drm/tegra/uapi.c:278:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int tegra_drm_ioctl_gem_create(struct drm_device *drm, void *data,
   ^
   static 
>> drivers/gpu/drm/tegra/uapi.c:295:5: warning: no previous prototype for function 'tegra_drm_ioctl_gem_mmap' [-Wmissing-prototypes]
   int tegra_drm_ioctl_gem_mmap(struct drm_device *drm, void *data,
       ^
   drivers/gpu/drm/tegra/uapi.c:295:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int tegra_drm_ioctl_gem_mmap(struct drm_device *drm, void *data,
   ^
   static 
   2 warnings generated.


vim +/tegra_drm_ioctl_gem_create +278 drivers/gpu/drm/tegra/uapi.c

   277	
 > 278	int tegra_drm_ioctl_gem_create(struct drm_device *drm, void *data,
   279				       struct drm_file *file)
   280	{
   281		struct drm_tegra_gem_create *args = data;
   282		struct tegra_bo *bo;
   283	
   284		if (args->flags)
   285			return -EINVAL;
   286	
   287		bo = tegra_bo_create_with_handle(file, drm, args->size, args->flags,
   288						 &args->handle);
   289		if (IS_ERR(bo))
   290			return PTR_ERR(bo);
   291	
   292		return 0;
   293	}
   294	
 > 295	int tegra_drm_ioctl_gem_mmap(struct drm_device *drm, void *data,

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 29508 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210715/ba342b05/attachment-0001.gz>


More information about the dri-devel mailing list