Skip to content

Commit

Permalink
jump label: Fix compiler warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/08026cbc6df80619cae833ef1ebbbc43efab69ab.1329851692.git.jbaron@redhat.com
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
jibaron authored and Ingo Molnar committed Feb 22, 2012
1 parent fadf046 commit a746e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/jump_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a746e3c

Please sign in to comment.