From: kbuild test robot <lkp@intel.com>
To: zhong jiang <zhongjiang@huawei.com>
Cc: kbuild-all@01.org, broonie@kernel.org, perex@perex.cz,
tiwai@suse.com, lgirdwood@gmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: wm8731: Fix a unused function gcc warning
Date: Sun, 30 Sep 2018 10:25:30 +0800 [thread overview]
Message-ID: <201809301053.AMYlR8WX%fengguang.wu@intel.com> (raw)
In-Reply-To: <1538271918-24033-1-git-send-email-zhongjiang@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 5537 bytes --]
Hi zhong,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on asoc/for-next]
[also build test ERROR on v4.19-rc5 next-20180928]
[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/zhong-jiang/ASoC-wm8731-Fix-a-unused-function-gcc-warning/20180930-095901
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-randconfig-x070-201839 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
sound/soc/codecs/wm8731.c: In function 'wm8731_i2c_probe':
>> sound/soc/codecs/wm8731.c:767:8: error: implicit declaration of function 'wm8731_request_supplies' [-Werror=implicit-function-declaration]
ret = wm8731_request_supplies(&i2c->dev, wm8731);
^~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/codecs/wm8731.c:779:8: error: implicit declaration of function 'wm8731_hw_init'; did you mean 'wm8731_hw_params'? [-Werror=implicit-function-declaration]
ret = wm8731_hw_init(&i2c->dev, wm8731);
^~~~~~~~~~~~~~
wm8731_hw_params
cc1: some warnings being treated as errors
vim +/wm8731_request_supplies +767 sound/soc/codecs/wm8731.c
a8035c8f0 Mark Brown 2009-02-16 737
b65ab73e5 Fabio Estevam 2013-11-21 738 #if IS_ENABLED(CONFIG_I2C)
7a79e94e9 Bill Pemberton 2012-12-07 739 static int wm8731_i2c_probe(struct i2c_client *i2c,
a8035c8f0 Mark Brown 2009-02-16 740 const struct i2c_device_id *id)
a8035c8f0 Mark Brown 2009-02-16 741 {
5998102b9 Mark Brown 2009-02-16 742 struct wm8731_priv *wm8731;
f0fba2ad1 Liam Girdwood 2010-03-17 743 int ret;
5998102b9 Mark Brown 2009-02-16 744
f1992dde7 Mark Brown 2012-05-12 745 wm8731 = devm_kzalloc(&i2c->dev, sizeof(struct wm8731_priv),
f1992dde7 Mark Brown 2012-05-12 746 GFP_KERNEL);
5998102b9 Mark Brown 2009-02-16 747 if (wm8731 == NULL)
5998102b9 Mark Brown 2009-02-16 748 return -ENOMEM;
a8035c8f0 Mark Brown 2009-02-16 749
99d422341 Songjun Wu 2015-03-12 750 wm8731->mclk = devm_clk_get(&i2c->dev, "mclk");
99d422341 Songjun Wu 2015-03-12 751 if (IS_ERR(wm8731->mclk)) {
99d422341 Songjun Wu 2015-03-12 752 ret = PTR_ERR(wm8731->mclk);
99d422341 Songjun Wu 2015-03-12 753 if (ret == -ENOENT) {
99d422341 Songjun Wu 2015-03-12 754 wm8731->mclk = NULL;
99d422341 Songjun Wu 2015-03-12 755 dev_warn(&i2c->dev, "Assuming static MCLK\n");
99d422341 Songjun Wu 2015-03-12 756 } else {
99d422341 Songjun Wu 2015-03-12 757 dev_err(&i2c->dev, "Failed to get MCLK: %d\n",
99d422341 Songjun Wu 2015-03-12 758 ret);
99d422341 Songjun Wu 2015-03-12 759 return ret;
99d422341 Songjun Wu 2015-03-12 760 }
99d422341 Songjun Wu 2015-03-12 761 }
99d422341 Songjun Wu 2015-03-12 762
8a6cf30bf Manuel Lauss 2015-01-19 763 mutex_init(&wm8731->lock);
8a6cf30bf Manuel Lauss 2015-01-19 764
6702dfcc5 Sergey Kiselev 2015-06-05 765 i2c_set_clientdata(i2c, wm8731);
6702dfcc5 Sergey Kiselev 2015-06-05 766
6702dfcc5 Sergey Kiselev 2015-06-05 @767 ret = wm8731_request_supplies(&i2c->dev, wm8731);
6702dfcc5 Sergey Kiselev 2015-06-05 768 if (ret != 0)
6702dfcc5 Sergey Kiselev 2015-06-05 769 return ret;
6702dfcc5 Sergey Kiselev 2015-06-05 770
f1992dde7 Mark Brown 2012-05-12 771 wm8731->regmap = devm_regmap_init_i2c(i2c, &wm8731_regmap);
05d448e2c Mark Brown 2011-11-21 772 if (IS_ERR(wm8731->regmap)) {
05d448e2c Mark Brown 2011-11-21 773 ret = PTR_ERR(wm8731->regmap);
05d448e2c Mark Brown 2011-11-21 774 dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
05d448e2c Mark Brown 2011-11-21 775 ret);
f1992dde7 Mark Brown 2012-05-12 776 return ret;
05d448e2c Mark Brown 2011-11-21 777 }
05d448e2c Mark Brown 2011-11-21 778
6702dfcc5 Sergey Kiselev 2015-06-05 @779 ret = wm8731_hw_init(&i2c->dev, wm8731);
6702dfcc5 Sergey Kiselev 2015-06-05 780 if (ret != 0)
6702dfcc5 Sergey Kiselev 2015-06-05 781 return ret;
a8035c8f0 Mark Brown 2009-02-16 782
cde596c7c Kuninori Morimoto 2018-01-29 783 ret = devm_snd_soc_register_component(&i2c->dev,
cde596c7c Kuninori Morimoto 2018-01-29 784 &soc_component_dev_wm8731, &wm8731_dai, 1);
05d448e2c Mark Brown 2011-11-21 785 if (ret != 0) {
05d448e2c Mark Brown 2011-11-21 786 dev_err(&i2c->dev, "Failed to register CODEC: %d\n", ret);
f1992dde7 Mark Brown 2012-05-12 787 return ret;
05d448e2c Mark Brown 2011-11-21 788 }
05d448e2c Mark Brown 2011-11-21 789
05d448e2c Mark Brown 2011-11-21 790 return 0;
a8035c8f0 Mark Brown 2009-02-16 791 }
a8035c8f0 Mark Brown 2009-02-16 792
:::::: The code at line 767 was first introduced by commit
:::::: 6702dfcc571d962df499f7466f54e07d044e6cd1 ASoC: wm8731: initialize the hardware when loading the codec driver
:::::: TO: Sergey Kiselev <sergey.kiselev@intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
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: 29854 bytes --]
prev parent reply other threads:[~2018-09-30 2:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-30 1:45 [PATCH] ASoC: wm8731: Fix a unused function gcc warning zhong jiang
2018-09-30 2:17 ` Joe Perches
2018-09-30 2:32 ` zhong jiang
2018-09-30 2:25 ` kbuild test robot [this message]
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=201809301053.AMYlR8WX%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=kbuild-all@01.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=zhongjiang@huawei.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).