mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Cc: kbuild-all@lists.01.org, kernel@pengutronix.de,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] drivers: make struct device_driver::remove return void
Date: Sun, 15 Nov 2020 23:57:21 +0800	[thread overview]
Message-ID: <202011152314.e9tNpoxH-lkp@intel.com> (raw)
In-Reply-To: <20201110150723.1592682-1-u.kleine-koenig@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 4940 bytes --]

Hi "Uwe,

I love your patch! Yet something to improve:

[auto build test ERROR on 407ab579637ced6dc32cfb2295afb7259cca4b22]

url:    https://github.com/0day-ci/linux/commits/Uwe-Kleine-K-nig/drivers-make-struct-device_driver-remove-return-void/20201110-230939
base:    407ab579637ced6dc32cfb2295afb7259cca4b22
config: mips-randconfig-p002-20201110 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/b836c14181cf5aab71cd870732f72437811ab228
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Uwe-Kleine-K-nig/drivers-make-struct-device_driver-remove-return-void/20201110-230939
        git checkout b836c14181cf5aab71cd870732f72437811ab228
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/net/fddi/defza.c:1551:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
    1551 |   .remove = fza_remove,
         |             ^~~~~~~~~~
   drivers/net/fddi/defza.c:1551:13: note: (near initialization for 'fza_driver.driver.remove')
   cc1: some warnings being treated as errors
--
>> drivers/video/fbdev/tgafb.c:138:14: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
     138 |   .remove  = tgafb_tc_unregister,
         |              ^~~~~~~~~~~~~~~~~~~
   drivers/video/fbdev/tgafb.c:138:14: note: (near initialization for 'tgafb_tc_driver.driver.remove')
   drivers/video/fbdev/tgafb.c: In function 'tgafb_clut_imageblit':
   drivers/video/fbdev/tgafb.c:840:16: warning: variable 'regs_base' set but not used [-Wunused-but-set-variable]
     840 |  void __iomem *regs_base, *fb_base;
         |                ^~~~~~~~~
   cc1: some warnings being treated as errors
--
>> drivers/video/fbdev/pmag-aa-fb.c:281:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
     281 |   .remove = pmagaafb_remove,
         |             ^~~~~~~~~~~~~~~
   drivers/video/fbdev/pmag-aa-fb.c:281:13: note: (near initialization for 'pmagaafb_driver.driver.remove')
   cc1: some warnings being treated as errors
--
>> drivers/video/fbdev/pmag-ba-fb.c:271:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
     271 |   .remove = pmagbafb_remove,
         |             ^~~~~~~~~~~~~~~
   drivers/video/fbdev/pmag-ba-fb.c:271:13: note: (near initialization for 'pmagbafb_driver.driver.remove')
   cc1: some warnings being treated as errors
--
>> drivers/video/fbdev/pmagb-b-fb.c:389:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
     389 |   .remove = pmagbbfb_remove,
         |             ^~~~~~~~~~~~~~~
   drivers/video/fbdev/pmagb-b-fb.c:389:13: note: (near initialization for 'pmagbbfb_driver.driver.remove')
   cc1: some warnings being treated as errors
--
>> drivers/net/ethernet/amd/declance.c:1330:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
    1330 |   .remove = dec_lance_tc_remove,
         |             ^~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/amd/declance.c:1330:13: note: (near initialization for 'dec_lance_tc_driver.driver.remove')
   cc1: some warnings being treated as errors

vim +1551 drivers/net/fddi/defza.c

61414f5ec9834df Maciej W. Rozycki 2018-10-09  1544  
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1545  static struct tc_driver fza_driver = {
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1546  	.id_table	= fza_tc_table,
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1547  	.driver		= {
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1548  		.name	= "defza",
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1549  		.bus	= &tc_bus_type,
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1550  		.probe	= fza_probe,
61414f5ec9834df Maciej W. Rozycki 2018-10-09 @1551  		.remove	= fza_remove,
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1552  	},
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1553  };
61414f5ec9834df Maciej W. Rozycki 2018-10-09  1554  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30977 bytes --]

  parent reply	other threads:[~2020-11-15 15:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 15:07 Uwe Kleine-König
2020-11-10 20:31 ` Greg Kroah-Hartman
2020-11-12  8:51   ` Uwe Kleine-König
2020-11-13 15:39     ` Greg Kroah-Hartman
2020-11-15 15:57 ` kernel test robot [this message]
2020-11-25 20:53 ` Uwe Kleine-König

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=202011152314.e9tNpoxH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /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

Powered by JetHome