mirror of
https://github.com/torvalds/linux
synced 2024-10-01 00:39:03 +00:00
f1afb360b6
bitfield.h is not explicitly included but it is required for FIELD_PREP
to be expanded by the preprocessor. If it is not implicitly included,
there will be a compiler error (as seen with ARCH=hexagon allmodconfig):
sound/soc/fsl/lpc3xxx-i2s.c:169:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
169 | tmp |= LPC3XXX_I2S_WW8 | LPC3XXX_I2S_WS_HP(LPC3XXX_I2S_WW8_HP);
| ^
sound/soc/fsl/lpc3xxx-i2s.h:42:30: note: expanded from macro 'LPC3XXX_I2S_WW8'
42 | #define LPC3XXX_I2S_WW8 FIELD_PREP(0x3, 0) /* Word width is 8bit */
| ^
sound/soc/fsl/lpc3xxx-i2s.c:205:34: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
205 | LPC3XXX_I2S_DMA1_TX_EN | LPC3XXX_I2S_DMA0_TX_DEPTH(4));
| ^
sound/soc/fsl/lpc3xxx-i2s.h:65:38: note: expanded from macro 'LPC3XXX_I2S_DMA0_TX_DEPTH'
65 | #define LPC3XXX_I2S_DMA0_TX_DEPTH(s) FIELD_PREP(0xF0000, s) /* Set the DMA1 TX Request level */
| ^
sound/soc/fsl/lpc3xxx-i2s.c:210:34: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
210 | LPC3XXX_I2S_DMA0_RX_EN | LPC3XXX_I2S_DMA1_RX_DEPTH(4));
| ^
sound/soc/fsl/lpc3xxx-i2s.h:70:38: note: expanded from macro 'LPC3XXX_I2S_DMA1_RX_DEPTH'
70 | #define LPC3XXX_I2S_DMA1_RX_DEPTH(s) FIELD_PREP(0x700, s) /* Set the DMA1 RX Request level */
| ^
Include bitfield.h explicitly, so that FIELD_PREP is always expanded,
clearing up the compiler error.
Fixes:
|
||
---|---|---|
.. | ||
efika-audio-fabric.c | ||
eukrea-tlv320.c | ||
fsl-asoc-card.c | ||
fsl_asrc.c | ||
fsl_asrc.h | ||
fsl_asrc_common.h | ||
fsl_asrc_dma.c | ||
fsl_aud2htx.c | ||
fsl_aud2htx.h | ||
fsl_audmix.c | ||
fsl_audmix.h | ||
fsl_dma.c | ||
fsl_dma.h | ||
fsl_easrc.c | ||
fsl_easrc.h | ||
fsl_esai.c | ||
fsl_esai.h | ||
fsl_micfil.c | ||
fsl_micfil.h | ||
fsl_mqs.c | ||
fsl_qmc_audio.c | ||
fsl_rpmsg.c | ||
fsl_rpmsg.h | ||
fsl_sai.c | ||
fsl_sai.h | ||
fsl_spdif.c | ||
fsl_spdif.h | ||
fsl_ssi.c | ||
fsl_ssi.h | ||
fsl_ssi_dbg.c | ||
fsl_utils.c | ||
fsl_utils.h | ||
fsl_xcvr.c | ||
fsl_xcvr.h | ||
imx-audio-rpmsg.c | ||
imx-audmix.c | ||
imx-audmux.c | ||
imx-audmux.h | ||
imx-card.c | ||
imx-es8328.c | ||
imx-hdmi.c | ||
imx-pcm-dma.c | ||
imx-pcm-fiq.c | ||
imx-pcm-rpmsg.c | ||
imx-pcm-rpmsg.h | ||
imx-pcm.h | ||
imx-rpmsg.c | ||
imx-sgtl5000.c | ||
imx-spdif.c | ||
imx-ssi.h | ||
Kconfig | ||
lpc3xxx-i2s.c | ||
lpc3xxx-i2s.h | ||
lpc3xxx-pcm.c | ||
Makefile | ||
mpc5200_dma.c | ||
mpc5200_dma.h | ||
mpc5200_psc_ac97.c | ||
mpc5200_psc_i2s.c | ||
p1022_ds.c | ||
p1022_rdk.c | ||
pcm030-audio-fabric.c |