From c64c734708acd2f7c2853869a09fc4190df89ad5 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 8 Apr 2021 12:02:41 +0200 Subject: [PATCH] ANDROID: GKI: hack to handle genksyms change in sound/soc/soc-core.c Commit ed47acc0c888 ("ASoC: soc-core: Prevent warning if no DMI table is present") changed soc-core.c by adding #include . That caused the visibility of other symbols to suddenly change and so genksyms changed for some soc-core.c functions when really nothing changed at all. Work around this "fun" by providing a __GENKSYMS__ check to include the acpi.h file or not. Ugh. Bug: 161946584 Signed-off-by: Greg Kroah-Hartman Change-Id: I4b3c5634de2336af6bbf99f25fd9250a365991bf --- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 18dfc114ff9e..1357aeaf2d59 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -31,7 +31,9 @@ #include #include #include +#ifndef __GENKSYMS__ #include +#endif #include #include #include