diff options
| author | Josh Poimboeuf <[email protected]> | 2018-03-14 10:24:20 -0500 | 
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2018-03-14 16:35:26 +0100 | 
| commit | af1d830bf32b27b387b97c8b29dc09e306a9ff7f (patch) | |
| tree | 7b50c210d6b1fa40830f6bd7551b220c700a584a /scripts/gcc-plugins/gen-random-seed.sh | |
| parent | a14bff131108faf50cc0cf864589fd71ee216c96 (diff) | |
jump_label: Fix sparc64 warning
The kbuild test robot reported the following warning on sparc64:
  kernel/jump_label.c: In function '__jump_label_update':
  kernel/jump_label.c:376:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       WARN_ONCE(1, "can't patch jump_label at %pS", (void *)entry->code);
On sparc64, the jump_label entry->code field is of type u32, but
pointers are 64-bit.  Silence the warning by casting entry->code to an
unsigned long before casting it to a pointer.  This is also what the
sparc jump label code does.
Fixes: dc1dd184c2f0 ("jump_label: Warn on failed jump_label patching attempt")
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: "David S . Miller" <[email protected]>
Link: https://lkml.kernel.org/r/c966fed42be6611254a62d46579ec7416548d572.1521041026.git.jpoimboe@redhat.com
Diffstat (limited to 'scripts/gcc-plugins/gen-random-seed.sh')
0 files changed, 0 insertions, 0 deletions