Re: [PATCH] drm/ast: radeon amdgpu for ast add prime

From: kernel test robot
Date: Wed Aug 10 2022 - 10:53:58 EST


Hi oushixiong,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-intel/for-linux-next linus/master v5.19 next-20220810]
[cannot apply to drm-misc/drm-misc-next drm-tip/drm-tip]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/oushixiong/drm-ast-radeon-amdgpu-for-ast-add-prime/20220810-100424
base: git://anongit.freedesktop.org/drm/drm drm-next
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220810/202208102237.Mz7bao9A-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/a2b719dc6ac02cee10916696a4ba1caf7b24b20f
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review oushixiong/drm-ast-radeon-amdgpu-for-ast-add-prime/20220810-100424
git checkout a2b719dc6ac02cee10916696a4ba1caf7b24b20f
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/ast/

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/ast/ast_drv.c:54:24: warning: no previous prototype for 'ast_gem_prime_import_sg_table' [-Wmissing-prototypes]
54 | struct drm_gem_object *ast_gem_prime_import_sg_table(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> drivers/gpu/drm/ast/ast_mode.c:1713:5: warning: no previous prototype for 'ast_handle_damage' [-Wmissing-prototypes]
1713 | int ast_handle_damage(struct drm_framebuffer *fb, int x, int y,
| ^~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/ast/ast_mode.c:1772:5: warning: no previous prototype for 'ast_user_framebuffer_dirty' [-Wmissing-prototypes]
1772 | int ast_user_framebuffer_dirty(struct drm_framebuffer *fb,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/ast/ast_mode.c:1815:1: warning: no previous prototype for 'ast_gem_fb_create_with_dirty' [-Wmissing-prototypes]
1815 | ast_gem_fb_create_with_dirty(struct drm_device *dev, struct drm_file *file,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/ast_gem_prime_import_sg_table +54 drivers/gpu/drm/ast/ast_drv.c

53
> 54 struct drm_gem_object *ast_gem_prime_import_sg_table(struct drm_device *dev,
55 struct dma_buf_attachment *attach,
56 struct sg_table *sg)
57 {
58 struct drm_gem_vram_object *gbo;
59 struct dma_resv *resv = attach->dmabuf->resv;
60
61 ww_mutex_lock(&resv->lock, NULL);
62 gbo = drm_gem_vram_create(dev, attach->dmabuf->size, 0, sg, resv);
63 ww_mutex_unlock(&resv->lock);
64
65 if (IS_ERR(gbo))
66 return NULL;
67
68 return &gbo->bo.base;
69 }
70

--
0-DAY CI Kernel Test Service
https://01.org/lkp