diff options
author | Nathan Chancellor <[email protected]> | 2020-02-08 07:10:52 -0700 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2020-02-17 18:01:58 +0100 |
commit | 788d671517b5c81efbed9310ccbadb8cca86a08e (patch) | |
tree | 1fe64eb87142c40d27446cca4be4bb998709080a /tools/perf/util/trace-event-scripting.c | |
parent | 380324734956c64cd060e1db4304f3117ac15809 (diff) |
s390/kaslr: Fix casts in get_random
Clang warns:
../arch/s390/boot/kaslr.c:78:25: warning: passing 'char *' to parameter
of type 'const u8 *' (aka 'const unsigned char *') converts between
pointers to integer
types with different sign [-Wpointer-sign]
(char *) entropy, (char *) entropy,
^~~~~~~~~~~~~~~~
../arch/s390/include/asm/cpacf.h:280:28: note: passing argument to
parameter 'src' here
u8 *dest, const u8 *src, long src_len)
^
2 warnings generated.
Fix the cast to match what else is done in this function.
Fixes: b2d24b97b2a9 ("s390/kernel: add support for kernel address space layout randomization (KASLR)")
Link: https://github.com/ClangBuiltLinux/linux/issues/862
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions