Skip to content

Commit 6b31d6a

Browse files
arndbbroonie
authored andcommitted
ASoC: mediatek: mt8365: include linux/bitfield.h
On x86, the header is not already included implicitly, breaking compile-testing: In file included from sound/soc/mediatek/mt8365/mt8365-afe-common.h:19, from sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:18: sound/soc/mediatek/mt8365/mt8365-afe-pcm.c: In function 'mt8365_afe_cm2_mux_conn': sound/soc/mediatek/mt8365/mt8365-reg.h:952:41: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration] 952 | #define CM2_AFE_CM2_CONN_CFG1(x) FIELD_PREP(CM2_AFE_CM2_CONN_CFG1_MASK, (x)) | ^~~~~~~~~~ Included it ahead of the field definitions. Fixes: 38c7c9d ("ASoC: mediatek: mt8365: Add common header") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Link: https://patch.msgid.link/20240908221754.2210857-1-arnd@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 77b696f commit 6b31d6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/mediatek/mt8365/mt8365-reg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#ifndef _MT8365_REG_H_
1111
#define _MT8365_REG_H_
1212

13+
#include <linux/bitfield.h>
14+
1315
#define AUDIO_TOP_CON0 (0x0000)
1416
#define AUDIO_TOP_CON1 (0x0004)
1517
#define AUDIO_TOP_CON2 (0x0008)

0 commit comments

Comments
 (0)