]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: mediatek: mt8365: include linux/bitfield.h
authorArnd Bergmann <arnd@arndb.de>
Sun, 8 Sep 2024 22:17:34 +0000 (22:17 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2024 11:29:43 +0000 (12:29 +0100)
commit6b31d6a4ca3b4d8abfb39127130889f9a9a38aa1
tree5e9c26c87b15244f379725a83ca38897d930ee04
parent77b696f489d2fd83bbcffeed363baac8f2f6ed4b
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: 38c7c9ddc740 ("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>
sound/soc/mediatek/mt8365/mt8365-reg.h