Ard Biesheuvel f922c4abdf module: allow symbol exports to be disabled
To allow existing C code to be incorporated into the decompressor or the
UEFI stub, introduce a CPP macro that turns all EXPORT_SYMBOL_xxx
declarations into nops, and #define it in places where such exports are
undesirable.  Note that this gets rid of a rather dodgy redefine of
linux/export.h's header guard.

Link: http://lkml.kernel.org/r/20180704083651.24360-3-ard.biesheuvel@linaro.org
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morris <james.morris@microsoft.com>
Cc: James Morris <jmorris@namei.org>
Cc: Jessica Yu <jeyu@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Garnier <thgarnie@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-08-22 10:52:47 -07:00
..
2018-08-18 11:04:51 -07:00
2018-08-18 11:44:53 -07:00
2018-08-17 10:40:09 -07:00
2018-08-20 16:30:27 -07:00
2018-08-17 11:32:50 -07:00
2018-08-17 11:32:50 -07:00
2018-08-18 15:55:59 -07:00
2018-08-20 15:38:44 -07:00
2018-08-20 15:38:44 -07:00
2018-08-18 11:44:53 -07:00
2018-08-16 12:26:24 -07:00
2018-08-20 15:38:44 -07:00
2018-08-20 15:38:44 -07:00
2018-08-18 11:04:51 -07:00
2018-08-16 09:21:54 -07:00
2018-08-20 15:38:44 -07:00
2018-08-20 15:38:44 -07:00
2018-08-18 11:04:51 -07:00
2018-08-20 15:38:44 -07:00
2018-08-20 16:30:27 -07:00
2018-08-18 16:42:04 -07:00
2018-08-18 16:45:27 -07:00
2018-08-18 11:00:00 -07:00
2018-08-15 22:06:26 -07:00
2018-08-18 11:04:51 -07:00
2018-08-19 09:30:44 -07:00
2018-08-18 11:04:51 -07:00
2018-08-17 11:32:50 -07:00
2018-08-15 22:06:26 -07:00
2018-08-20 15:41:37 -07:00
2018-08-18 11:04:51 -07:00
2018-08-18 16:16:57 -07:00
2018-08-18 11:04:51 -07:00