Message ID | 20181016153846.28424-1-colin.king@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | acpica: fix linker issues when building with ACPI disabled | expand |
On 2018-10-16 11:38 p.m., Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > Some toolchains hit linker issues with missing symbols when > building with ACPI disabled. Work around this by declaring > these symbols even though they are never referenced. > > Works around PPC REHL 7.6 build issue: > > /root/fwts/src/acpica/.libs/libfwtsacpica.so: undefined reference to > `AcpiGbl_InitEntries' > /root/fwts/src/acpica/.libs/libfwtsacpica.so: undefined reference to > `AcpiGbl_InitFileLineCount' > > Fixes: 24f2f2bfbb8f ("ACPICA: Update to version 20180810") > Signed-off-by: Colin Ian King <colin.king@canonical.com> > --- > src/acpica/fwts_acpica.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c > index 4ffe80fd..d0c6ed7c 100644 > --- a/src/acpica/fwts_acpica.c > +++ b/src/acpica/fwts_acpica.c > @@ -1373,5 +1373,7 @@ VOID_FUNC(MpSaveSerialInfo) > */ > unsigned char AcpiGbl_AbortLoopOnTimeout = FALSE; > unsigned char AcpiGbl_VerboseHandlers = FALSE; > +void *AcpiGbl_InitEntries = NULL; > +uint32_t AcpiGbl_InitFileLineCount = 0; > > #endif > Acked-by: Alex Hung <alex.hung@canonical.com>
On 10/16/18 11:38 PM, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > Some toolchains hit linker issues with missing symbols when > building with ACPI disabled. Work around this by declaring > these symbols even though they are never referenced. > > Works around PPC REHL 7.6 build issue: > > /root/fwts/src/acpica/.libs/libfwtsacpica.so: undefined reference to > `AcpiGbl_InitEntries' > /root/fwts/src/acpica/.libs/libfwtsacpica.so: undefined reference to > `AcpiGbl_InitFileLineCount' > > Fixes: 24f2f2bfbb8f ("ACPICA: Update to version 20180810") > Signed-off-by: Colin Ian King <colin.king@canonical.com> > --- > src/acpica/fwts_acpica.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c > index 4ffe80fd..d0c6ed7c 100644 > --- a/src/acpica/fwts_acpica.c > +++ b/src/acpica/fwts_acpica.c > @@ -1373,5 +1373,7 @@ VOID_FUNC(MpSaveSerialInfo) > */ > unsigned char AcpiGbl_AbortLoopOnTimeout = FALSE; > unsigned char AcpiGbl_VerboseHandlers = FALSE; > +void *AcpiGbl_InitEntries = NULL; > +uint32_t AcpiGbl_InitFileLineCount = 0; > > #endif Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c index 4ffe80fd..d0c6ed7c 100644 --- a/src/acpica/fwts_acpica.c +++ b/src/acpica/fwts_acpica.c @@ -1373,5 +1373,7 @@ VOID_FUNC(MpSaveSerialInfo) */ unsigned char AcpiGbl_AbortLoopOnTimeout = FALSE; unsigned char AcpiGbl_VerboseHandlers = FALSE; +void *AcpiGbl_InitEntries = NULL; +uint32_t AcpiGbl_InitFileLineCount = 0; #endif