Files
erofs-linux/kernel
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.

[[email protected]: export jpobe_return properly]
Signed-off-by: Peter Chubb <[email protected]>
Cc: Prasanna S Panchamukhi <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anil S Keshavamurthy <[email protected]>
Cc: "Luck, Tony" <[email protected]>
Cc: Len Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-08-11 15:47:42 -07:00
..
…
…
2007-08-07 19:58:56 -07:00
…
…
…
2007-07-18 08:47:40 -07:00
…
…
2007-07-31 15:39:40 -07:00
…
…
…
2007-07-26 11:33:06 -07:00
2007-08-11 15:47:42 -07:00
2007-07-20 12:01:34 -07:00
…
2007-07-31 15:39:40 -07:00
…
…
2007-07-19 10:04:49 -07:00
…
…
…
2007-08-03 15:02:56 -07:00
2007-08-11 15:47:42 -07:00
…
…
2007-08-09 11:16:51 +02:00
…
…
…
…
…
…
…