From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [asahilinux:bits/070-audio 6/10] sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP'
Date: Wed, 19 Jan 2022 11:00:44 +0800 [thread overview]
Message-ID: <202201191010.ccJSermy-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3697 bytes --]
tree: https://github.com/AsahiLinux/linux bits/070-audio
head: 63a99f1a44208593f5a423b5378824abc2246988
commit: 3bd1b7277353e3c32b737543b6e95de54f11600e [6/10] ASoC: apple-mca: Add platform driver for Apple SoCs
config: csky-allyesconfig (https://download.01.org/0day-ci/archive/20220119/202201191010.ccJSermy-lkp(a)intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/3bd1b7277353e3c32b737543b6e95de54f11600e
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/070-audio
git checkout 3bd1b7277353e3c32b737543b6e95de54f11600e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky 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/apple/mca.c: In function 'mca_configure_serdes':
>> sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
210 | serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
| ^~~~~~~~~~
sound/soc/apple/mca.c: In function 'mca_set_runtime_hwparams':
sound/soc/apple/mca.c:528:37: warning: unused variable 'rtd' [-Wunused-variable]
528 | struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
| ^~~
sound/soc/apple/mca.c: At top level:
sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans' [-Wmissing-prototypes]
649 | void apple_mca_release_dma_chans(struct mca_data *mca)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/apple/mca.c:664:6: warning: no previous prototype for 'apple_mca_put_clks' [-Wmissing-prototypes]
664 | void apple_mca_put_clks(struct mca_data *mca)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +210 sound/soc/apple/mca.c
204
205 static int mca_configure_serdes(struct mca_data *mca, int cluster, int serdes_unit,
206 unsigned int mask, int slots, int slot_width)
207 {
208 u32 serdes_conf;
209
> 210 serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
211
212 switch (slot_width) {
213 case 16:
214 serdes_conf |= SERDES_CONF_WIDTH_16BIT;
215 break;
216 case 20:
217 serdes_conf |= SERDES_CONF_WIDTH_20BIT;
218 break;
219 case 24:
220 serdes_conf |= SERDES_CONF_WIDTH_24BIT;
221 break;
222 case 32:
223 serdes_conf |= SERDES_CONF_WIDTH_32BIT;
224 break;
225 default:
226 goto err;
227 }
228
229 mca_modify(mca, cluster,
230 serdes_unit + REG_SERDES_CONF,
231 SERDES_CONF_WIDTH_MASK | SERDES_CONF_NCHANS, serdes_conf);
232 mca_poke(mca, cluster,
233 serdes_unit + REG_SERDES_CHANMASK,
234 ~((u32) mask));
235
236 return 0;
237
238 err:
239 dev_err(mca->dev, "unsupported SERDES configuration requested (mask=0x%x slots=%d slot_width=%d)\n",
240 mask, slots, slot_width);
241 return -EINVAL;
242 }
243
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Martin Povišer" <povik@protonmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Hector Martin <marcan@marcan.st>
Subject: [asahilinux:bits/070-audio 6/10] sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP'
Date: Wed, 19 Jan 2022 11:00:44 +0800 [thread overview]
Message-ID: <202201191010.ccJSermy-lkp@intel.com> (raw)
tree: https://github.com/AsahiLinux/linux bits/070-audio
head: 63a99f1a44208593f5a423b5378824abc2246988
commit: 3bd1b7277353e3c32b737543b6e95de54f11600e [6/10] ASoC: apple-mca: Add platform driver for Apple SoCs
config: csky-allyesconfig (https://download.01.org/0day-ci/archive/20220119/202201191010.ccJSermy-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/3bd1b7277353e3c32b737543b6e95de54f11600e
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/070-audio
git checkout 3bd1b7277353e3c32b737543b6e95de54f11600e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky 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/apple/mca.c: In function 'mca_configure_serdes':
>> sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
210 | serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
| ^~~~~~~~~~
sound/soc/apple/mca.c: In function 'mca_set_runtime_hwparams':
sound/soc/apple/mca.c:528:37: warning: unused variable 'rtd' [-Wunused-variable]
528 | struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
| ^~~
sound/soc/apple/mca.c: At top level:
sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans' [-Wmissing-prototypes]
649 | void apple_mca_release_dma_chans(struct mca_data *mca)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/apple/mca.c:664:6: warning: no previous prototype for 'apple_mca_put_clks' [-Wmissing-prototypes]
664 | void apple_mca_put_clks(struct mca_data *mca)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +210 sound/soc/apple/mca.c
204
205 static int mca_configure_serdes(struct mca_data *mca, int cluster, int serdes_unit,
206 unsigned int mask, int slots, int slot_width)
207 {
208 u32 serdes_conf;
209
> 210 serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
211
212 switch (slot_width) {
213 case 16:
214 serdes_conf |= SERDES_CONF_WIDTH_16BIT;
215 break;
216 case 20:
217 serdes_conf |= SERDES_CONF_WIDTH_20BIT;
218 break;
219 case 24:
220 serdes_conf |= SERDES_CONF_WIDTH_24BIT;
221 break;
222 case 32:
223 serdes_conf |= SERDES_CONF_WIDTH_32BIT;
224 break;
225 default:
226 goto err;
227 }
228
229 mca_modify(mca, cluster,
230 serdes_unit + REG_SERDES_CONF,
231 SERDES_CONF_WIDTH_MASK | SERDES_CONF_NCHANS, serdes_conf);
232 mca_poke(mca, cluster,
233 serdes_unit + REG_SERDES_CHANMASK,
234 ~((u32) mask));
235
236 return 0;
237
238 err:
239 dev_err(mca->dev, "unsupported SERDES configuration requested (mask=0x%x slots=%d slot_width=%d)\n",
240 mask, slots, slot_width);
241 return -EINVAL;
242 }
243
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next reply other threads:[~2022-01-19 3:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 3:00 kernel test robot [this message]
2022-01-19 3:00 ` [asahilinux:bits/070-audio 6/10] sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' kernel test robot
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=202201191010.ccJSermy-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.