* [linux-next:master 8777/10451] sound/soc/fsl/lpc3xxx-i2s.h:42:30: error: implicit declaration of function 'FIELD_PREP'
@ 2024-07-03 8:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-03 8:10 UTC (permalink / raw)
To: Piotr Wojtaszczyk; +Cc: oe-kbuild-all, Linux Memory Management List, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 0b58e108042b0ed28a71cd7edf5175999955b233
commit: 0959de657a10cc40b2cc41cff9169ab0e0fd4456 [8777/10451] ASoC: fsl: Add i2s and pcm drivers for LPC32xx CPUs
config: loongarch-randconfig-r062-20240703 (https://download.01.org/0day-ci/archive/20240703/202407031601.Hy5RHjFB-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240703/202407031601.Hy5RHjFB-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407031601.Hy5RHjFB-lkp@intel.com/
Note: the linux-next/master HEAD 0b58e108042b0ed28a71cd7edf5175999955b233 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
sound/soc/fsl/lpc3xxx-i2s.c: In function '__lpc3xxx_find_clkdiv':
sound/soc/fsl/lpc3xxx-i2s.c:42:13: warning: variable 'savedbitclkrate' set but not used [-Wunused-but-set-variable]
42 | u32 savedbitclkrate, diff, trate, baseclk;
| ^~~~~~~~~~~~~~~
In file included from sound/soc/fsl/lpc3xxx-i2s.c:23:
sound/soc/fsl/lpc3xxx-i2s.c: In function 'lpc3xxx_i2s_hw_params':
>> sound/soc/fsl/lpc3xxx-i2s.h:42:30: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
42 | #define LPC3XXX_I2S_WW8 FIELD_PREP(0x3, 0) /* Word width is 8bit */
| ^~~~~~~~~~
sound/soc/fsl/lpc3xxx-i2s.c:169:24: note: in expansion of macro 'LPC3XXX_I2S_WW8'
169 | tmp |= LPC3XXX_I2S_WW8 | LPC3XXX_I2S_WS_HP(LPC3XXX_I2S_WW8_HP);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +42 sound/soc/fsl/lpc3xxx-i2s.h
40
41 /* i2s_daO i2s_dai register definitions */
> 42 #define LPC3XXX_I2S_WW8 FIELD_PREP(0x3, 0) /* Word width is 8bit */
43 #define LPC3XXX_I2S_WW16 FIELD_PREP(0x3, 1) /* Word width is 16bit */
44 #define LPC3XXX_I2S_WW32 FIELD_PREP(0x3, 3) /* Word width is 32bit */
45 #define LPC3XXX_I2S_MONO BIT(2) /* Mono */
46 #define LPC3XXX_I2S_STOP BIT(3) /* Stop, diables the access to FIFO, mutes the channel */
47 #define LPC3XXX_I2S_RESET BIT(4) /* Reset the channel */
48 #define LPC3XXX_I2S_WS_SEL BIT(5) /* Channel Master(0) or slave(1) mode select */
49 #define LPC3XXX_I2S_WS_HP(s) FIELD_PREP(0x7FC0, s) /* Word select half period - 1 */
50 #define LPC3XXX_I2S_MUTE BIT(15) /* Mute the channel, Transmit channel only */
51
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-03 8:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-03 8:10 [linux-next:master 8777/10451] sound/soc/fsl/lpc3xxx-i2s.h:42:30: error: implicit declaration of function 'FIELD_PREP' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox