From: kernel test robot <lkp@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [broonie-misc:at91sam9g20ek 10/12] sound/soc/codecs/wm8731-spi.c:28:42: error: dereferencing pointer to incomplete type 'struct wm8731_priv'
Date: Fri, 25 Mar 2022 21:31:28 +0800 [thread overview]
Message-ID: <202203252118.msEIfy1L-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git at91sam9g20ek
head: 3924683a22e84ba06478ea4aaa775319ba02f42c
commit: 5b7214a7b726cbf25aaebfc8a05ede8c53d04d26 [10/12] ASoC: wm8731: Factor out the I2C and SPI bus code into separate modules
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220325/202203252118.msEIfy1L-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?id=5b7214a7b726cbf25aaebfc8a05ede8c53d04d26
git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc at91sam9g20ek
git checkout 5b7214a7b726cbf25aaebfc8a05ede8c53d04d26
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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 >>):
sound/soc/codecs/wm8731-spi.c: In function 'wm8731_spi_probe':
>> sound/soc/codecs/wm8731-spi.c:28:42: error: dereferencing pointer to incomplete type 'struct wm8731_priv'
28 | wm8731 = devm_kzalloc(&spi->dev, sizeof(*wm8731), GFP_KERNEL);
| ^~~~~~~
sound/soc/codecs/wm8731-spi.c:34:19: error: implicit declaration of function 'devm_regmap_init_spi' [-Werror=implicit-function-declaration]
34 | wm8731->regmap = devm_regmap_init_spi(spi, &wm8731_regmap);
| ^~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8731-spi.c:34:46: error: 'wm8731_regmap' undeclared (first use in this function)
34 | wm8731->regmap = devm_regmap_init_spi(spi, &wm8731_regmap);
| ^~~~~~~~~~~~~
sound/soc/codecs/wm8731-spi.c:34:46: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/codecs/wm8731-spi.c:42:9: error: implicit declaration of function 'wm8731_init' [-Werror=implicit-function-declaration]
42 | return wm8731_init(&spi->dev, wm8731);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +28 sound/soc/codecs/wm8731-spi.c
22
23 static int wm8731_spi_probe(struct spi_device *spi)
24 {
25 struct wm8731_priv *wm8731;
26 int ret;
27
> 28 wm8731 = devm_kzalloc(&spi->dev, sizeof(*wm8731), GFP_KERNEL);
29 if (wm8731 == NULL)
30 return -ENOMEM;
31
32 spi_set_drvdata(spi, wm8731);
33
34 wm8731->regmap = devm_regmap_init_spi(spi, &wm8731_regmap);
35 if (IS_ERR(wm8731->regmap)) {
36 ret = PTR_ERR(wm8731->regmap);
37 dev_err(&spi->dev, "Failed to allocate register map: %d\n",
38 ret);
39 return ret;
40 }
41
42 return wm8731_init(&spi->dev, wm8731);
43 }
44
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-03-25 13:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202203252118.msEIfy1L-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox