[linux-next:master 8777/10451] sound/soc/fsl/lpc3xxx-i2s.h:42:30: error: implicit declaration of function 'FIELD_PREP'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407031601.Hy5RHjFB-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux