From: kbuild test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>,
kbuild-all@01.org, Simon <horms@verge.net.au>
Subject: Re: [PATCH 12/19] ASoC: wm8753: Convert to module_i2c/spi_driver()
Date: Wed, 16 Nov 2016 01:35:32 +0800 [thread overview]
Message-ID: <201611160110.HzseKi6W%fengguang.wu@intel.com> (raw)
In-Reply-To: <87k2c58gz2.wl%kuninori.morimoto.gx@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 7394 bytes --]
Hi Kuninori,
[auto build test WARNING on v4.9-rc5]
[cannot apply to asoc/for-next next-20161115]
[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/Kuninori-Morimoto/ASoC-Convert-to-module_i2c-spi_driver/20161116-005820
config: i386-randconfig-x008-201646 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from sound/soc/codecs/wm8753.c:34:0:
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/i2c.h:751:2: note: in expansion of macro 'module_driver'
module_driver(__i2c_driver, i2c_add_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1612:1: note: in expansion of macro 'module_i2c_driver'
module_i2c_driver(wm8753_i2c_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/spi/spi.h:290:2: note: in expansion of macro 'module_driver'
module_driver(__spi_driver, spi_register_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1558:1: note: in expansion of macro 'module_spi_driver'
module_spi_driver(wm8753_spi_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/i2c.h:751:2: note: in expansion of macro 'module_driver'
module_driver(__i2c_driver, i2c_add_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1612:1: note: in expansion of macro 'module_i2c_driver'
module_i2c_driver(wm8753_i2c_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/spi/spi.h:290:2: note: in expansion of macro 'module_driver'
module_driver(__spi_driver, spi_register_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1558:1: note: in expansion of macro 'module_spi_driver'
module_spi_driver(wm8753_spi_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/i2c.h:751:2: note: in expansion of macro 'module_driver'
module_driver(__i2c_driver, i2c_add_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1612:1: note: in expansion of macro 'module_i2c_driver'
module_i2c_driver(wm8753_i2c_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/spi/spi.h:290:2: note: in expansion of macro 'module_driver'
module_driver(__spi_driver, spi_register_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1558:1: note: in expansion of macro 'module_spi_driver'
module_spi_driver(wm8753_spi_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/i2c.h:751:2: note: in expansion of macro 'module_driver'
module_driver(__i2c_driver, i2c_add_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1612:1: note: in expansion of macro 'module_i2c_driver'
module_i2c_driver(wm8753_i2c_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/spi/spi.h:290:2: note: in expansion of macro 'module_driver'
module_driver(__spi_driver, spi_register_driver, \
^~~~~~~~~~~~~
>> sound/soc/codecs/wm8753.c:1558:1: note: in expansion of macro 'module_spi_driver'
module_spi_driver(wm8753_spi_driver);
^~~~~~~~~~~~~~~~~
vim +/module_i2c_driver +1612 sound/soc/codecs/wm8753.c
1552 .name = "wm8753",
1553 .of_match_table = wm8753_of_match,
1554 },
1555 .probe = wm8753_spi_probe,
1556 .remove = wm8753_spi_remove,
1557 };
> 1558 module_spi_driver(wm8753_spi_driver);
1559 #endif /* CONFIG_SPI_MASTER */
1560
1561 #if IS_ENABLED(CONFIG_I2C)
1562 static int wm8753_i2c_probe(struct i2c_client *i2c,
1563 const struct i2c_device_id *id)
1564 {
1565 struct wm8753_priv *wm8753;
1566 int ret;
1567
1568 wm8753 = devm_kzalloc(&i2c->dev, sizeof(struct wm8753_priv),
1569 GFP_KERNEL);
1570 if (wm8753 == NULL)
1571 return -ENOMEM;
1572
1573 i2c_set_clientdata(i2c, wm8753);
1574
1575 wm8753->regmap = devm_regmap_init_i2c(i2c, &wm8753_regmap);
1576 if (IS_ERR(wm8753->regmap)) {
1577 ret = PTR_ERR(wm8753->regmap);
1578 dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
1579 ret);
1580 return ret;
1581 }
1582
1583 ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_wm8753,
1584 wm8753_dai, ARRAY_SIZE(wm8753_dai));
1585 if (ret != 0)
1586 dev_err(&i2c->dev, "Failed to register CODEC: %d\n", ret);
1587
1588 return ret;
1589 }
1590
1591 static int wm8753_i2c_remove(struct i2c_client *client)
1592 {
1593 snd_soc_unregister_codec(&client->dev);
1594 return 0;
1595 }
1596
1597 static const struct i2c_device_id wm8753_i2c_id[] = {
1598 { "wm8753", 0 },
1599 { }
1600 };
1601 MODULE_DEVICE_TABLE(i2c, wm8753_i2c_id);
1602
1603 static struct i2c_driver wm8753_i2c_driver = {
1604 .driver = {
1605 .name = "wm8753",
1606 .of_match_table = wm8753_of_match,
1607 },
1608 .probe = wm8753_i2c_probe,
1609 .remove = wm8753_i2c_remove,
1610 .id_table = wm8753_i2c_id,
1611 };
> 1612 module_i2c_driver(wm8753_i2c_driver);
1613 #endif
1614
1615 MODULE_DESCRIPTION("ASoC WM8753 driver");
---
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: 29570 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2016-11-15 17:36 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-15 5:08 [PATCH 00/19] ASoC: Convert to module_i2c/spi_driver() Kuninori Morimoto
2016-11-15 5:09 ` [PATCH 01/19] ASoC: uda1380: Convert to module_i2c_driver() Kuninori Morimoto
2016-11-15 6:21 ` Takashi Iwai
2016-11-15 6:42 ` Kuninori Morimoto
2016-11-15 7:30 ` Takashi Iwai
2016-11-15 12:08 ` Lars-Peter Clausen
2016-11-16 18:01 ` Mark Brown
2016-11-17 0:18 ` Kuninori Morimoto
2016-11-21 19:20 ` Applied "ASoC: uda1380: Remove #if IS_ENABLED(CONFIG_I2C)" to the asoc tree Mark Brown
2016-11-15 5:09 ` [PATCH 02/19] ASoC: wm9081: Convert to module_i2c_driver() Kuninori Morimoto
2016-11-16 9:38 ` [alsa-devel] " Charles Keepax
2016-11-16 9:39 ` Charles Keepax
2016-11-17 0:43 ` Kuninori Morimoto
2016-11-21 19:20 ` Applied "ASoC: wm9081: Remove #if IS_ENABLED(CONFIG_I2C)" to the asoc tree Mark Brown
2016-11-15 5:09 ` [PATCH 03/19] ASoC: wm8580: Convert to module_i2c_driver() Kuninori Morimoto
2016-11-16 9:41 ` Charles Keepax
2016-11-17 0:10 ` Kuninori Morimoto
2016-11-15 5:10 ` [PATCH 04/19] ASoC: wm8523: " Kuninori Morimoto
2016-11-16 9:42 ` Charles Keepax
2016-11-21 19:20 ` Applied "ASoC: wm8523: Remove #if IS_ENABLED(CONFIG_I2C)" to the asoc tree Mark Brown
2016-11-15 5:10 ` [PATCH 05/19] ASoC: wm8510: Convert to module_i2c/spi_driver() Kuninori Morimoto
2016-11-15 8:33 ` Lars-Peter Clausen
2016-11-15 8:49 ` Kuninori Morimoto
2016-11-15 17:21 ` kbuild test robot
2016-11-16 9:44 ` Charles Keepax
2016-11-17 0:16 ` Kuninori Morimoto
2016-11-17 9:33 ` Charles Keepax
2016-11-17 9:51 ` Kuninori Morimoto
2016-11-15 5:10 ` [PATCH 06/19] ASoC: wm8995: " Kuninori Morimoto
2016-11-15 18:05 ` kbuild test robot
2016-11-15 5:11 ` [PATCH 07/19] ASoC: wm8988: " Kuninori Morimoto
2016-11-15 5:11 ` [PATCH 08/19] ASoC: wm8985: " Kuninori Morimoto
2016-11-15 17:40 ` kbuild test robot
2016-11-15 5:11 ` [PATCH 09/19] ASoC: wm8983: " Kuninori Morimoto
2016-11-15 5:12 ` [PATCH 10/19] ASoC: wm8900: " Kuninori Morimoto
2016-11-15 5:12 ` [PATCH 11/19] ASoC: wm8776: " Kuninori Morimoto
2016-11-15 17:51 ` kbuild test robot
2016-11-15 5:12 ` [PATCH 12/19] ASoC: wm8753: " Kuninori Morimoto
2016-11-15 17:35 ` kbuild test robot [this message]
2016-11-15 5:13 ` [PATCH 13/19] ASoC: wm8750: " Kuninori Morimoto
2016-11-15 5:13 ` [PATCH 14/19] ASoC: wm8741: " Kuninori Morimoto
2016-11-15 17:51 ` kbuild test robot
2016-11-15 5:13 ` [PATCH 15/19] ASoC: wm8731: " Kuninori Morimoto
2016-11-15 18:07 ` kbuild test robot
2016-11-15 5:13 ` [PATCH 16/19] ASoC: wm8737: " Kuninori Morimoto
2016-11-15 5:14 ` [PATCH 17/19] ASoC: wm8728: " Kuninori Morimoto
2016-11-15 5:14 ` [PATCH 18/19] ASoC: wm8711: " Kuninori Morimoto
2016-11-15 5:14 ` [PATCH 19/19] ASoC: da7210: " Kuninori Morimoto
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=201611160110.HzseKi6W%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=horms@verge.net.au \
--cc=kbuild-all@01.org \
--cc=kuninori.morimoto.gx@renesas.com \
/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;
as well as URLs for NNTP newsgroup(s).