ANDROID: GKI: hack to handle genksyms change in sound/soc/soc-core.c

Commit ed47acc0c8 ("ASoC: soc-core: Prevent warning if no DMI table is
present") changed soc-core.c by adding #include <linux/acpi.h>.  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 <gregkh@google.com>
Change-Id: I4b3c5634de2336af6bbf99f25fd9250a365991bf
This commit is contained in:
Greg Kroah-Hartman
2021-04-08 12:02:41 +02:00
parent bc751d322e
commit c64c734708

View File

@@ -31,7 +31,9 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_graph.h> #include <linux/of_graph.h>
#include <linux/dmi.h> #include <linux/dmi.h>
#ifndef __GENKSYMS__
#include <linux/acpi.h> #include <linux/acpi.h>
#endif
#include <sound/core.h> #include <sound/core.h>
#include <sound/jack.h> #include <sound/jack.h>
#include <sound/pcm.h> #include <sound/pcm.h>