Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 3d490859 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Michael Bestas
Browse files

platform: msm: gsi: Export symbols only if compiled as module

This driver exports WAY TOO MANY symbols and there is no time to
sort this and that.
To fix dangerous/unsupported relocations in "modern" toolchains
(GCC newer than 4.7), just export all symbols only if the GSI is
compiled as a module (as this guarantees that all the users of
this driver will also be modules).

This is not right at all: it's still possible that we compile this
driver statically in the kernel and others as modules, which will
actually have GSI dependency, but whatever uses GSI is a core
driver in our embedded devices, so let's just not care during the
early porting stage.

Maybe, one day....

Change-Id: Id932962933a5e13370ac7566752989ab84b10b26
parent 203150d0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,11 @@

#define GSI_STTS_REG_BITS 32

#ifndef MODULE
 #undef EXPORT_SYMBOL
 #define EXPORT_SYMBOL(x)
#endif

#ifndef CONFIG_DEBUG_FS
void gsi_debugfs_init(void)
{