Skip to content

Commit dc8635b

Browse files
akpm00torvalds
authored andcommitted
kernel/exit.c: export abort() to modules
gcc -fisolate-erroneous-paths-dereference can generate calls to abort() from modular code too. [[email protected]: drop duplicate exports of abort()] Link: http://lkml.kernel.org/r/[email protected] Reported-by: Vineet Gupta <[email protected]> Cc: Sudip Mukherjee <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Alexey Brodkin <[email protected]> Cc: Russell King <[email protected]> Cc: Jose Abreu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 4991c09 commit dc8635b

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

arch/arm/kernel/traps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,6 @@ void abort(void)
793793
/* if that doesn't kill us, halt */
794794
panic("Oops failed to kill thread");
795795
}
796-
EXPORT_SYMBOL(abort);
797796

798797
void __init trap_init(void)
799798
{

arch/m32r/kernel/traps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ void abort(void)
122122
/* if that doesn't kill us, halt */
123123
panic("Oops failed to kill thread");
124124
}
125-
EXPORT_SYMBOL(abort);
126125

127126
void __init trap_init(void)
128127
{

arch/unicore32/kernel/traps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ void abort(void)
298298
/* if that doesn't kill us, halt */
299299
panic("Oops failed to kill thread");
300300
}
301-
EXPORT_SYMBOL(abort);
302301

303302
void __init trap_init(void)
304303
{

kernel/exit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,3 +1763,4 @@ __weak void abort(void)
17631763
/* if that doesn't kill us, halt */
17641764
panic("Oops failed to kill thread");
17651765
}
1766+
EXPORT_SYMBOL(abort);

0 commit comments

Comments
 (0)