linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Jocelyn Falempe <jfalempe@redhat.com>
Subject: [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: Wed, 26 Jun 2024 14:01:45 +0800	[thread overview]
Message-ID: <202406261341.GYsbLpN1-lkp@intel.com> (raw)

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


                 reply	other threads:[~2024-06-26  6:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202406261341.GYsbLpN1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=geert+renesas@glider.be \
    --cc=jfalempe@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox