llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper
       [not found] <20250729060728.82402-1-chuguangqing@inspur.com>
@ 2025-07-30  2:19 ` kernel test robot
  2025-07-30  7:29 ` [PATCH v2 " chuguangqing
  1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2025-07-30  2:19 UTC (permalink / raw)
  To: chuguangqing, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter
  Cc: llvm, oe-kbuild-all, dri-devel, linux-kernel, chuguangqing

Hi chuguangqing,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on drm-misc/drm-misc-next v6.16 next-20250729]
[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/chuguangqing/gpu-drm-fix-compilation-errors-in-drm_vram_helper/20250729-141222
base:   linus/master
patch link:    https://lore.kernel.org/r/20250729060728.82402-1-chuguangqing%40inspur.com
patch subject: [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper
:::::: branch date: 16 hours ago
:::::: commit date: 16 hours ago
config: s390-randconfig-001-20250730 (https://download.01.org/0day-ci/archive/20250730/202507300646.kTchyjvh-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250730/202507300646.kTchyjvh-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202507300646.kTchyjvh-lkp@intel.com/

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

>> ERROR: modpost: drivers/gpu/drm/drm_gem_ttm_helper: 'drm_gem_ttm_print_info' exported twice. Previous export was in vmlinux
>> ERROR: modpost: drivers/gpu/drm/drm_gem_ttm_helper: 'drm_gem_ttm_vmap' exported twice. Previous export was in vmlinux
>> ERROR: modpost: drivers/gpu/drm/drm_gem_ttm_helper: 'drm_gem_ttm_vunmap' exported twice. Previous export was in vmlinux
>> ERROR: modpost: drivers/gpu/drm/drm_gem_ttm_helper: 'drm_gem_ttm_mmap' exported twice. Previous export was in vmlinux
>> ERROR: modpost: drivers/gpu/drm/drm_gem_ttm_helper: 'drm_gem_ttm_dumb_map_offset' exported twice. Previous export was in vmlinux

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper
       [not found] <202507300646.kTchyjvh-lkp@intel.com>
@ 2025-07-30  7:09 ` chuguangqing
  0 siblings, 0 replies; 3+ messages in thread
From: chuguangqing @ 2025-07-30  7:09 UTC (permalink / raw)
  To: lkp, maarten.lankhorst, mripard, tzimmermann, airlied, simona
  Cc: llvm, oe-kbuild-all, dri-devel, linux-kernel

I see. This compilation error was caused by the configuration option not automatically selecting DRM_TTM_HELPER. A revised version of the PR has been submitted.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/1] gpu: drm: fix compilation errors in drm_vram_helper
       [not found] <20250729060728.82402-1-chuguangqing@inspur.com>
  2025-07-30  2:19 ` [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper kernel test robot
@ 2025-07-30  7:29 ` chuguangqing
  1 sibling, 0 replies; 3+ messages in thread
From: chuguangqing @ 2025-07-30  7:29 UTC (permalink / raw)
  To: lkp, maarten.lankhorst, mripard, tzimmermann, airlied, simona
  Cc: llvm, oe-kbuild-all, dri-devel, linux-kernel, chuguangqing

We encountered the following errors while compiling drm_vram_helper.ko

ERROR: modpost: "drm_gem_ttm_print_info" [drivers/gpu/drm/drm_vram_helper.ko] undefined!
ERROR: modpost: "drm_gem_ttm_mmap" [drivers/gpu/drm/drm_vram_helper.ko] undefined!

The functions drm_gem_ttm_mmap and drm_gem_ttm_print_info are defined in drm_gem_ttm_helper.c. This patch select CONFIG_DRM_TTM_HELPER on CONFIG_DRM_VRAM_HELPER to resolve the undefined symbol errors.

Signed-off-by: chuguangqing <chuguangqing@inspur.com>
---
 drivers/gpu/drm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index f7ea8e895c0c..01a314fdc9a8 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -226,6 +226,7 @@ config DRM_BUDDY
 config DRM_VRAM_HELPER
 	tristate
 	depends on DRM
+	select DRM_TTM_HELPER if DRM_VRAM_HELPER != n
 	help
 	  Helpers for VRAM memory management
 
-- 
2.43.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-30  7:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250729060728.82402-1-chuguangqing@inspur.com>
2025-07-30  2:19 ` [PATCH 1/1] gpu: drm: fix compilation errors in drm_vram_helper kernel test robot
2025-07-30  7:29 ` [PATCH v2 " chuguangqing
     [not found] <202507300646.kTchyjvh-lkp@intel.com>
2025-07-30  7:09 ` [PATCH " chuguangqing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).