All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, ulf.hansson@linaro.org,
	mcoquelin.stm32@gmail.com, alexandre.torgue@st.com,
	linux-mmc@vger.kernel.org,
	Andrea Merello <andrea.merello@gmail.com>
Subject: Re: [PATCH 2/9] mmc: mmci: add support for not-amba, but still compatible, variants
Date: Wed, 9 Nov 2016 01:39:00 +0800	[thread overview]
Message-ID: <201611090156.mpgkKEne%fengguang.wu@intel.com> (raw)
In-Reply-To: <1478612625-23256-3-git-send-email-andrea.merello@gmail.com>

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

Hi Andrea,

[auto build test ERROR on ulf.hansson-mmc/next]
[also build test ERROR on v4.9-rc4 next-20161108]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Andrea-Merello/mmc-mmci-add-support-for-STM32-SD-controller/20161108-234358
base:   https://git.linaro.org/people/ulf.hansson/mmc next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   drivers/mmc/host/mmci.c: In function 'mmci_probe_amba':
   drivers/mmc/host/mmci.c:1849:21: error: 'pdev' undeclared (first use in this function)
     host = mmci_probe(&pdev->dev, variant, &dev->res,
                        ^~~~
   drivers/mmc/host/mmci.c:1849:21: note: each undeclared identifier is reported only once for each function it appears in
   drivers/mmc/host/mmci.c:1851:13: error: 'ret' undeclared (first use in this function)
     if (IS_ERR(ret))
                ^~~
   In file included from drivers/mmc/host/mmci.c:12:0:
   drivers/mmc/host/mmci.c: At top level:
>> include/linux/module.h:130:27: error: redefinition of '__inittest'
     static inline initcall_t __inittest(void)  \
                              ^
   include/linux/device.h:1353:1: note: in expansion of macro 'module_init'
    module_init(__driver##_init); \
    ^~~~~~~~~~~
>> include/linux/platform_device.h:228:2: note: in expansion of macro 'module_driver'
     module_driver(__platform_driver, platform_driver_register, \
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:2032:1: note: in expansion of macro 'module_platform_driver'
    module_platform_driver(mmci_pltfm_driver);
    ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:130:27: note: previous definition of '__inittest' was here
     static inline initcall_t __inittest(void)  \
                              ^
   include/linux/device.h:1353:1: note: in expansion of macro 'module_init'
    module_init(__driver##_init); \
    ^~~~~~~~~~~
>> include/linux/amba/bus.h:170:2: note: in expansion of macro 'module_driver'
     module_driver(__amba_drv, amba_driver_register, amba_driver_unregister)
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:1938:1: note: in expansion of macro 'module_amba_driver'
    module_amba_driver(mmci_driver);
    ^~~~~~~~~~~~~~~~~~
>> include/linux/module.h:132:6: error: redefinition of 'init_module'
     int init_module(void) __attribute__((alias(#initfn)));
         ^
   include/linux/device.h:1353:1: note: in expansion of macro 'module_init'
    module_init(__driver##_init); \
    ^~~~~~~~~~~
>> include/linux/platform_device.h:228:2: note: in expansion of macro 'module_driver'
     module_driver(__platform_driver, platform_driver_register, \
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:2032:1: note: in expansion of macro 'module_platform_driver'
    module_platform_driver(mmci_pltfm_driver);
    ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:132:6: note: previous definition of 'init_module' was here
     int init_module(void) __attribute__((alias(#initfn)));
         ^
   include/linux/device.h:1353:1: note: in expansion of macro 'module_init'
    module_init(__driver##_init); \
    ^~~~~~~~~~~
>> include/linux/amba/bus.h:170:2: note: in expansion of macro 'module_driver'
     module_driver(__amba_drv, amba_driver_register, amba_driver_unregister)
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:1938:1: note: in expansion of macro 'module_amba_driver'
    module_amba_driver(mmci_driver);
    ^~~~~~~~~~~~~~~~~~
>> include/linux/module.h:136:27: error: redefinition of '__exittest'
     static inline exitcall_t __exittest(void)  \
                              ^
   include/linux/device.h:1358:1: note: in expansion of macro 'module_exit'
    module_exit(__driver##_exit);
    ^~~~~~~~~~~
>> include/linux/platform_device.h:228:2: note: in expansion of macro 'module_driver'
     module_driver(__platform_driver, platform_driver_register, \
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:2032:1: note: in expansion of macro 'module_platform_driver'
    module_platform_driver(mmci_pltfm_driver);
    ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:136:27: note: previous definition of '__exittest' was here
     static inline exitcall_t __exittest(void)  \
                              ^
   include/linux/device.h:1358:1: note: in expansion of macro 'module_exit'
    module_exit(__driver##_exit);
    ^~~~~~~~~~~
>> include/linux/amba/bus.h:170:2: note: in expansion of macro 'module_driver'
     module_driver(__amba_drv, amba_driver_register, amba_driver_unregister)
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:1938:1: note: in expansion of macro 'module_amba_driver'
    module_amba_driver(mmci_driver);
    ^~~~~~~~~~~~~~~~~~
>> include/linux/module.h:138:7: error: redefinition of 'cleanup_module'
     void cleanup_module(void) __attribute__((alias(#exitfn)));
          ^
   include/linux/device.h:1358:1: note: in expansion of macro 'module_exit'
    module_exit(__driver##_exit);
    ^~~~~~~~~~~
>> include/linux/platform_device.h:228:2: note: in expansion of macro 'module_driver'
     module_driver(__platform_driver, platform_driver_register, \
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:2032:1: note: in expansion of macro 'module_platform_driver'
    module_platform_driver(mmci_pltfm_driver);
    ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:138:7: note: previous definition of 'cleanup_module' was here
     void cleanup_module(void) __attribute__((alias(#exitfn)));
          ^
   include/linux/device.h:1358:1: note: in expansion of macro 'module_exit'
    module_exit(__driver##_exit);
    ^~~~~~~~~~~
>> include/linux/amba/bus.h:170:2: note: in expansion of macro 'module_driver'
     module_driver(__amba_drv, amba_driver_register, amba_driver_unregister)
     ^~~~~~~~~~~~~
>> drivers/mmc/host/mmci.c:1938:1: note: in expansion of macro 'module_amba_driver'
    module_amba_driver(mmci_driver);
    ^~~~~~~~~~~~~~~~~~

vim +/module_driver +228 include/linux/platform_device.h

71d642908 Marc Kleine-Budde  2011-02-16  212  {
71d642908 Marc Kleine-Budde  2011-02-16  213  	return dev_get_drvdata(&pdev->dev);
71d642908 Marc Kleine-Budde  2011-02-16  214  }
71d642908 Marc Kleine-Budde  2011-02-16  215  
6ae07f27a Fabio Porcedda     2013-03-26  216  static inline void platform_set_drvdata(struct platform_device *pdev,
6ae07f27a Fabio Porcedda     2013-03-26  217  					void *data)
71d642908 Marc Kleine-Budde  2011-02-16  218  {
71d642908 Marc Kleine-Budde  2011-02-16  219  	dev_set_drvdata(&pdev->dev, data);
71d642908 Marc Kleine-Budde  2011-02-16  220  }
00d3dcdd9 Russell King       2005-11-09  221  
940ab8896 Grant Likely       2011-10-05  222  /* module_platform_driver() - Helper macro for drivers that don't do
940ab8896 Grant Likely       2011-10-05  223   * anything special in module init/exit.  This eliminates a lot of
940ab8896 Grant Likely       2011-10-05  224   * boilerplate.  Each module may only use this macro once, and
940ab8896 Grant Likely       2011-10-05  225   * calling it replaces module_init() and module_exit()
940ab8896 Grant Likely       2011-10-05  226   */
940ab8896 Grant Likely       2011-10-05  227  #define module_platform_driver(__platform_driver) \
907d0ed1c Lars-Peter Clausen 2011-11-16 @228  	module_driver(__platform_driver, platform_driver_register, \
907d0ed1c Lars-Peter Clausen 2011-11-16  229  			platform_driver_unregister)
940ab8896 Grant Likely       2011-10-05  230  
f309d4443 Paul Gortmaker     2015-05-01  231  /* builtin_platform_driver() - Helper macro for builtin drivers that
f309d4443 Paul Gortmaker     2015-05-01  232   * don't do anything special in driver init.  This eliminates some
f309d4443 Paul Gortmaker     2015-05-01  233   * boilerplate.  Each driver may only use this macro once, and
f309d4443 Paul Gortmaker     2015-05-01  234   * calling it replaces device_initcall().  Note this is meant to be
f309d4443 Paul Gortmaker     2015-05-01  235   * a parallel of module_platform_driver() above, but w/o _exit stuff.
f309d4443 Paul Gortmaker     2015-05-01  236   */

:::::: The code at line 228 was first introduced by commit
:::::: 907d0ed1c84114d4e8dafd66af982515d3739c90 drivercore: Generalize module_platform_driver

:::::: TO: Lars-Peter Clausen <lars@metafoo.de>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  reply	other threads:[~2016-11-08 17:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 13:43 [PATCH 0/9] mmc: mmci: add support for STM32 SD controller Andrea Merello
2016-11-08 13:43 ` [PATCH 1/9] mmc: mmci: don't pretend IP variants with only one IRQ to have two mask regs Andrea Merello
2016-11-08 13:43 ` [PATCH 2/9] mmc: mmci: add support for not-amba, but still compatible, variants Andrea Merello
2016-11-08 17:39   ` kbuild test robot [this message]
2016-11-08 17:41   ` kbuild test robot
2016-11-08 13:43 ` [PATCH 3/9] mmc: mmci: don't pretend all variants to have MCI_STARBITERR flag Andrea Merello
2016-11-08 13:43 ` [PATCH 4/9] mmc: mmci: add support for setting pad type via pinctrl Andrea Merello
2016-11-08 13:43 ` [PATCH 5/9] mmc: mmci: add STM32 variant Andrea Merello
2016-11-08 13:43 ` [PATCH 6/9] DT: stm32f429: add pin map for SDIO controller Andrea Merello
2016-11-10 10:51   ` Alexandre Torgue
2016-11-14 10:19     ` Andrea Merello
2016-11-08 13:43 ` [PATCH 7/9] DT: stm32f429: add node " Andrea Merello
2016-11-08 13:43 ` [PATCH 8/9] DT: stm32f469-disco: " Andrea Merello
2016-11-10 10:54   ` Alexandre Torgue
2016-11-14 10:36     ` Andrea Merello
2016-11-14 10:42       ` Alexandre Torgue
2016-11-08 13:43 ` [PATCH 9/9] Documentation: document mmci STM32 DT binding Andrea Merello

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=201611090156.mpgkKEne%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=alexandre.torgue@st.com \
    --cc=andrea.merello@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=ulf.hansson@linaro.org \
    /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.