lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 30 Sep 2018 10:25:30 +0800
From:   kbuild test robot <lkp@...el.com>
To:     zhong jiang <zhongjiang@...wei.com>
Cc:     kbuild-all@...org, broonie@...nel.org, perex@...ex.cz,
        tiwai@...e.com, lgirdwood@...il.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: wm8731: Fix a unused function gcc warning

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@...el.com>
:::::: CC: Mark Brown <broonie@...nel.org>

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

Download attachment ".config.gz" of type "application/gzip" (29854 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ