* [linux-next:master 7259/8232] drivers/gpu/drm/drm_panic.c:99: multiple definition of `init_module'; drivers/gpu/drm/drm_drv.o:drivers/gpu/drm/drm_drv.c:1079: first defined here
@ 2024-06-26 6:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-26 6:01 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: oe-kbuild-all, Linux Memory Management List, Jocelyn Falempe
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 0fc4bfab2cd45f9acb86c4f04b5191e114e901ed
commit: 294bbd1f2697ff28af7f036b2cb19fee78eb100b [7259/8232] drm/panic: Add support for drawing a monochrome graphical logo
config: i386-randconfig-001-20240626 (https://download.01.org/0day-ci/archive/20240626/202406261341.GYsbLpN1-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240626/202406261341.GYsbLpN1-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/oe-kbuild-all/202406261341.GYsbLpN1-lkp@intel.com/
All errors (new ones prefixed by >>):
ld: drivers/gpu/drm/drm_panic.o: in function `drm_panic_setup_logo':
>> drivers/gpu/drm/drm_panic.c:99: multiple definition of `init_module'; drivers/gpu/drm/drm_drv.o:drivers/gpu/drm/drm_drv.c:1079: first defined here
vim +99 drivers/gpu/drm/drm_panic.c
97
98 static int drm_panic_setup_logo(void)
> 99 {
100 const struct linux_logo *logo = fb_find_logo(1);
101 const unsigned char *logo_data;
102 struct linux_logo *logo_dup;
103
104 if (!logo || logo->type != LINUX_LOGO_MONO)
105 return 0;
106
107 /* The logo is __init, so we must make a copy for later use */
108 logo_data = kmemdup(logo->data,
109 size_mul(DIV_ROUND_UP(logo->width, BITS_PER_BYTE), logo->height),
110 GFP_KERNEL);
111 if (!logo_data)
112 return -ENOMEM;
113
114 logo_dup = kmemdup(logo, sizeof(*logo), GFP_KERNEL);
115 if (!logo_dup) {
116 kfree(logo_data);
117 return -ENOMEM;
118 }
119
120 logo_dup->data = logo_data;
121 logo_mono = logo_dup;
122
123 return 0;
124 }
125
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-26 6:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-26 6:01 [linux-next:master 7259/8232] drivers/gpu/drm/drm_panic.c:99: multiple definition of `init_module'; drivers/gpu/drm/drm_drv.o:drivers/gpu/drm/drm_drv.c:1079: first defined here kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox