diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-23 15:04:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-23 15:04:27 -0700 |
commit | 816fb4175c29b16948fb24a92053bea1e79908cc (patch) | |
tree | a49fead09476096ac8889a9c1d66c5c3b335ab9b /arch/arc | |
parent | 8c81f48e16fbe103e682d7ee7b2f16d065c42954 (diff) | |
parent | 271a9c35158910496f6fc3a635c2ed85df6be3d9 (diff) | |
download | linux-816fb4175c29b16948fb24a92053bea1e79908cc.tar.gz linux-816fb4175c29b16948fb24a92053bea1e79908cc.tar.bz2 linux-816fb4175c29b16948fb24a92053bea1e79908cc.zip |
Merge tag 'remove-weak-declarations' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull weak function declaration removal from Bjorn Helgaas:
"The "weak" attribute is commonly used for the default version of a
function, where an architecture can override it by providing a strong
version.
Some header file declarations included the "weak" attribute. That's
error-prone because it causes every implementation to be weak, with no
strong version at all, and the linker chooses one based on link order.
What we want is the "weak" attribute only on the *definition* of the
default implementation. These changes remove "weak" from the
declarations, leaving it on the default definitions"
* tag 'remove-weak-declarations' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
uprobes: Remove "weak" from function declarations
memory-hotplug: Remove "weak" from memory_block_size_bytes() declaration
kgdb: Remove "weak" from kgdb_arch_pc() declaration
ARC: kgdb: generic kgdb_arch_pc() suffices
vmcore: Remove "weak" from function declarations
clocksource: Remove "weak" from clocksource_default_clock() declaration
x86, intel-mid: Remove "weak" from function declarations
audit: Remove "weak" from audit_classify_compat_syscall() declaration
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/kernel/kgdb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arc/kernel/kgdb.c b/arch/arc/kernel/kgdb.c index a2ff5c5d1450..ecf6a7869375 100644 --- a/arch/arc/kernel/kgdb.c +++ b/arch/arc/kernel/kgdb.c @@ -158,11 +158,6 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, return -1; } -unsigned long kgdb_arch_pc(int exception, struct pt_regs *regs) -{ - return instruction_pointer(regs); -} - int kgdb_arch_init(void) { single_step_data.armed = 0; |