lkml.org 
[lkml]   [2020]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/gpu/drm/mgag200/mgag200_drv.c:70:5: warning: no previous prototype for function 'mgag200_driver_dumb_create'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 75caf310d16cc5e2f851c048cd597f5437013368
commit: 1591fadf857cdbaf2baa55e421af99a61354713c drm/mgag200: Add workaround for HW that does not support 'startadd'
date: 6 months ago
config: arm-randconfig-r036-20200529 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2d068e534f1671459e1b135852c1b3c10502e929)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git checkout 1591fadf857cdbaf2baa55e421af99a61354713c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/gpu/drm/mgag200/mgag200_drv.c:70:5: warning: no previous prototype for function 'mgag200_driver_dumb_create' [-Wmissing-prototypes]
int mgag200_driver_dumb_create(struct drm_file *file,
^
drivers/gpu/drm/mgag200/mgag200_drv.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int mgag200_driver_dumb_create(struct drm_file *file,
^
static
1 warning generated.

vim +/mgag200_driver_dumb_create +70 drivers/gpu/drm/mgag200/mgag200_drv.c

69
> 70 int mgag200_driver_dumb_create(struct drm_file *file,
71 struct drm_device *dev,
72 struct drm_mode_create_dumb *args)
73 {
74 struct mga_device *mdev = dev->dev_private;
75 unsigned long pg_align;
76
77 if (WARN_ONCE(!dev->vram_mm, "VRAM MM not initialized"))
78 return -EINVAL;
79
80 pg_align = 0ul;
81
82 /*
83 * Aligning scanout buffers to the size of the video ram forces
84 * placement at offset 0. Works around a bug where HW does not
85 * respect 'startadd' field.
86 */
87 if (mgag200_pin_bo_at_0(mdev))
88 pg_align = PFN_UP(mdev->mc.vram_size);
89
90 return drm_gem_vram_fill_create_dumb(file, dev, &dev->vram_mm->bdev,
91 pg_align, false, args);
92 }
93

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-05-29 21:35    [W:0.029 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site