Skip to content

Commit a746e3c

Browse files
jibaronIngo Molnar
authored andcommitted
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>
1 parent fadf046 commit a746e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/jump_label.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static void jump_label_update(struct jump_label_key *key, int enable)
424424
struct jump_entry *entry = key->entries, *stop = __stop___jump_table;
425425

426426
#ifdef CONFIG_MODULES
427-
struct module *mod = __module_address((jump_label_t)key);
427+
struct module *mod = __module_address((unsigned long)key);
428428

429429
__jump_label_mod_update(key, enable);
430430

0 commit comments

Comments
 (0)