* Re: [RFC PATCH 4/5] drm/cma-helper: account memory used by CMA GEM objects
[not found] <20220909111640.3789791-5-l.stach@pengutronix.de>
@ 2022-09-10 7:45 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-10 7:45 UTC (permalink / raw)
To: Lucas Stach; +Cc: llvm, kbuild-all
Hi Lucas,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on linus/master v6.0-rc4]
[cannot apply to drm-misc/drm-misc-next drm-tip/drm-tip next-20220909]
[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/Lucas-Stach/GEM-buffer-memory-tracking/20220909-191905
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220910/202209101522.Gwz622bL-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
# https://github.com/intel-lab-lkp/linux/commit/64fc0f845f1a46d1e6959261d778b809f30b5a72
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Lucas-Stach/GEM-buffer-memory-tracking/20220909-191905
git checkout 64fc0f845f1a46d1e6959261d778b809f30b5a72
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/drm_gem.c:1299:36: error: expected ';' after top-level asm block
EXPORT_SYMBOL(drm_gem_add_resident)
^
;
drivers/gpu/drm/drm_gem.c:1318:36: error: expected ';' after top-level asm block
EXPORT_SYMBOL(drm_gem_dec_resident)
^
;
2 errors generated.
vim +1299 drivers/gpu/drm/drm_gem.c
612ea51433e720 Lucas Stach 2022-09-09 1282
612ea51433e720 Lucas Stach 2022-09-09 1283 /**
612ea51433e720 Lucas Stach 2022-09-09 1284 * drm_gem_add_resident - Account memory used by GEM object to the
612ea51433e720 Lucas Stach 2022-09-09 1285 * task which called drm_gem_object_init(). Call when the pages are
612ea51433e720 Lucas Stach 2022-09-09 1286 * made resident in system memory, i.e. pinned for GPU usage.
612ea51433e720 Lucas Stach 2022-09-09 1287 *
612ea51433e720 Lucas Stach 2022-09-09 1288 * @obj: GEM buffer object
612ea51433e720 Lucas Stach 2022-09-09 1289 */
612ea51433e720 Lucas Stach 2022-09-09 1290 void drm_gem_add_resident(struct drm_gem_object *obj)
612ea51433e720 Lucas Stach 2022-09-09 1291 {
612ea51433e720 Lucas Stach 2022-09-09 1292 if (!mmget_not_zero(obj->mm))
612ea51433e720 Lucas Stach 2022-09-09 1293 return;
612ea51433e720 Lucas Stach 2022-09-09 1294
612ea51433e720 Lucas Stach 2022-09-09 1295 add_mm_counter(obj->mm, MM_DRIVERPAGES, obj->size / PAGE_SIZE);
612ea51433e720 Lucas Stach 2022-09-09 1296
612ea51433e720 Lucas Stach 2022-09-09 1297 mmput(obj->mm);
612ea51433e720 Lucas Stach 2022-09-09 1298 }
612ea51433e720 Lucas Stach 2022-09-09 @1299 EXPORT_SYMBOL(drm_gem_add_resident)
612ea51433e720 Lucas Stach 2022-09-09 1300
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread