diff options
author | Bjorn Helgaas <[email protected]> | 2014-10-13 19:00:47 -0600 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2014-10-22 16:14:04 -0600 |
commit | e0a8400c6923a163265d52798cdd4c33f3f8ab5a (patch) | |
tree | 0299eac1ce8ebca3d52706fc08d056a839708333 /lib/cpu-notifier-error-inject.c | |
parent | 107bcc6d566cb40184068d888637f9aefe6252dd (diff) |
memory-hotplug: Remove "weak" from memory_block_size_bytes() declaration
drivers/base/memory.c provides a default memory_block_size_bytes()
definition explicitly marked "weak". Several architectures provide their
own definitions intended to override the default, but the "weak" attribute
on the declaration applied to the arch definitions as well, so the linker
chose one based on link order (see 10629d711ed7 ("PCI: Remove __weak
annotation from pcibios_get_phb_of_node decl")).
Remove the "weak" attribute from the declaration so we always prefer a
non-weak definition over the weak one, independent of link order.
Fixes: 41f107266b19 ("drivers: base: Add prototype declaration to the header file")
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Andrew Morton <[email protected]>
CC: Rashika Kheria <[email protected]>
CC: Nathan Fontenot <[email protected]>
CC: Anton Blanchard <[email protected]>
CC: Heiko Carstens <[email protected]>
CC: Yinghai Lu <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions