linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Mark Brown <broonie@kernel.org>
Subject: [linux-next:master 8777/10451] sound/soc/fsl/lpc3xxx-i2s.h:42:30: error: implicit declaration of function 'FIELD_PREP'
Date: Wed, 3 Jul 2024 16:10:34 +0800	[thread overview]
Message-ID: <202407031601.Hy5RHjFB-lkp@intel.com> (raw)

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


                 reply	other threads:[~2024-07-03  8:11 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=202407031601.Hy5RHjFB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=piotr.wojtaszczyk@timesys.com \
    /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