summaryrefslogtreecommitdiffstats
path: root/kernel/jump_label.c
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2012-02-21 15:02:57 -0500
committerIngo Molnar <mingo@elte.hu>2012-02-22 07:59:40 +0100
commita746e3cc984b0aa5b620dd07c1a433283b1835cf (patch)
tree8e0db62a42101636e04097e28830420fa9906fc4 /kernel/jump_label.c
parentfadf0464b83f91ba021a358c0238a0810c0d2a0b (diff)
downloadlinux-a746e3cc984b0aa5b620dd07c1a433283b1835cf.tar.gz
linux-a746e3cc984b0aa5b620dd07c1a433283b1835cf.tar.bz2
linux-a746e3cc984b0aa5b620dd07c1a433283b1835cf.zip
jump label: Fix compiler warning
While cross-compiling on sparc64, I found: kernel/jump_label.c: In function 'jump_label_update': kernel/jump_label.c:447:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Fix by casting to 'unsigned long'. Signed-off-by: Jason Baron <jbaron@redhat.com> Cc: rostedt@goodmis.org Cc: mathieu.desnoyers@efficios.com Cc: davem@davemloft.net Cc: ddaney.cavm@gmail.com Cc: a.p.zijlstra@chello.nl Link: http://lkml.kernel.org/r/08026cbc6df80619cae833ef1ebbbc43efab69ab.1329851692.git.jbaron@redhat.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/jump_label.c')
-rw-r--r--kernel/jump_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/jump_label.c b/kernel/jump_label.c
index ed9654fd7d27..543782e7cdd2 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -424,7 +424,7 @@ static void jump_label_update(struct jump_label_key *key, int enable)
struct jump_entry *entry = key->entries, *stop = __stop___jump_table;
#ifdef CONFIG_MODULES
- struct module *mod = __module_address((jump_label_t)key);
+ struct module *mod = __module_address((unsigned long)key);
__jump_label_mod_update(key, enable);