All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: oe-kbuild-all@lists.linux.dev, devel@driverdev.osuosl.org
Subject: [driver-core:const_driver 8/8] arch/parisc/kernel/drivers.c:623:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)'
Date: Tue, 11 Jun 2024 09:27:08 +0800	[thread overview]
Message-ID: <202406110956.JsSMEcMO-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git const_driver
head:   6f0f76bd99e259ff0aee9f2e6aed360e258c1077
commit: 6f0f76bd99e259ff0aee9f2e6aed360e258c1077 [8/8] driver core: have match() callback in struct bus_type take a const *
config: parisc-allnoconfig (https://download.01.org/0day-ci/archive/20240611/202406110956.JsSMEcMO-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240611/202406110956.JsSMEcMO-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/202406110956.JsSMEcMO-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/parisc/kernel/drivers.c:623:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Werror=incompatible-pointer-types]
     623 |         .match = parisc_generic_match,
         |                  ^~~~~~~~~~~~~~~~~~~~
   arch/parisc/kernel/drivers.c:623:18: note: (near initialization for 'parisc_bus_type.match')
   cc1: some warnings being treated as errors


vim +623 arch/parisc/kernel/drivers.c

^1da177e4c3f41 Linus Torvalds      2005-04-16  620  
0b9ec151b9b45f Ricardo B. Marliere 2024-02-13  621  const struct bus_type parisc_bus_type = {
^1da177e4c3f41 Linus Torvalds      2005-04-16  622  	.name = "parisc",
^1da177e4c3f41 Linus Torvalds      2005-04-16 @623  	.match = parisc_generic_match,
7246c31e45021b Helge Deller        2008-12-25  624  	.uevent = parisc_uevent,
9b7c6682270043 Greg Kroah-Hartman  2017-06-06  625  	.dev_groups = parisc_device_groups,
ad3ed31c682d95 Russell King        2006-01-05  626  	.probe = parisc_driver_probe,
b86db40e1ecc91 Helge Deller        2018-03-04  627  	.remove = __exit_p(parisc_driver_remove),
^1da177e4c3f41 Linus Torvalds      2005-04-16  628  };
^1da177e4c3f41 Linus Torvalds      2005-04-16  629  

:::::: The code at line 623 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

                 reply	other threads:[~2024-06-11  1:27 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=202406110956.JsSMEcMO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.