2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/drivers/acpi/resources
Peter Chubb cd5bfea278 fix compilation with gcc 4.2
gcc-4.2 is a lot more picky about its symbol handling.  EXPORT_SYMBOL no
longer works on symbols that are undefined or defined with static scope.

For example, with CONFIG_PROFILE off, I see:

  kernel/profile.c:206: error: __ksymtab_profile_event_unregister causes a section type conflict
  kernel/profile.c:205: error: __ksymtab_profile_event_register causes a section type conflict

This patch moves the EXPORTs inside the #ifdef CONFIG_PROFILE, so we
only try to export symbols that are defined.

Also, in kernel/kprobes.c there's an EXPORT_SYMBOL_GPL() for
jprobes_return, which if CONFIG_JPROBES is undefined is a static
inline and gives the same error.

And in drivers/acpi/resources/rsxface.c, there's an
ACPI_EXPORT_SYMBOPL() for a static symbol. If it's static, it's not
accessible from outside the compilation unit, so should bot be exported.

These three changes allow building a zx1_defconfig kernel with gcc 4.2
on IA64.

[akpm@linux-foundation.org: export jpobe_return properly]
Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-08-11 15:47:42 -07:00
..
Makefile [ACPI] ACPICA 20050930 2005-12-10 00:20:25 -05:00
rsaddr.c ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
rscalc.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rscreate.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rsdump.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rsinfo.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rsio.c ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
rsirq.c ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
rslist.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rsmemory.c ACPICA: Update copyright to 2007. 2007-02-02 21:14:31 -05:00
rsmisc.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rsutils.c ACPICA: Lindent 2007-05-09 23:34:35 -04:00
rsxface.c fix compilation with gcc 4.2 2007-08-11 15:47:42 -07:00