diff options
author | Rakib Mullick <rakib.mullick@gmail.com> | 2008-11-18 10:15:24 +0600 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-18 08:49:24 +0100 |
commit | e270219f4372b58bd3eeac12bd9f7edc592b8f6b (patch) | |
tree | 0b7a2eafcc19d20e0fdd05b4525ea8b8684e73f5 /kernel/profile.c | |
parent | 5821e1b74f0d08952cb5da4bfd2d9a388d8df58e (diff) | |
download | blackbird-op-linux-e270219f4372b58bd3eeac12bd9f7edc592b8f6b.tar.gz blackbird-op-linux-e270219f4372b58bd3eeac12bd9f7edc592b8f6b.zip |
kernel/profile.c: fix section mismatch warning
Impact: fix section mismatch warning in kernel/profile.c
Here, profile_nop function has been called from a non-init function
create_hash_tables(void). Which generetes a section mismatch warning.
Previously, create_hash_tables(void) was a init function. So, removing
__init from create_hash_tables(void) requires profile_nop to be
non-init.
This patch makes profile_nop function inline and fixes the
following warning:
WARNING: vmlinux.o(.text+0x6ebb6): Section mismatch in reference from
the function create_hash_tables() to the function
.init.text:profile_nop()
The function create_hash_tables() references
the function __init profile_nop().
This is often because create_hash_tables lacks a __init
annotation or the annotation of profile_nop is wrong.
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/profile.c')
-rw-r--r-- | kernel/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/profile.c b/kernel/profile.c index 9830a037d8db..5b7d1ac7124c 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -544,7 +544,7 @@ static const struct file_operations proc_profile_operations = { }; #ifdef CONFIG_SMP -static void __init profile_nop(void *unused) +static inline void profile_nop(void *unused) { } |