[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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406261341.GYsbLpN1-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux