diff options
author | GONG, Ruiqi <[email protected]> | 2022-06-29 14:04:23 +0800 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-07-01 18:01:47 -0700 |
commit | 375561bd6195a31bf4c109732bd538cb97a941f4 (patch) | |
tree | 21dd1b31b60ca9202e8f9af370d91e0c4e4e8f49 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c | |
parent | 6a022dd29f2cefbac4895a34e2e1f14b2d12d819 (diff) |
stack: Declare {randomize_,}kstack_offset to fix Sparse warnings
Fix the following Sparse warnings that got noticed when the PPC-dev
patchwork was checking another patch (see the link below):
init/main.c:862:1: warning: symbol 'randomize_kstack_offset' was not declared. Should it be static?
init/main.c:864:1: warning: symbol 'kstack_offset' was not declared. Should it be static?
Which in fact are triggered on all architectures that have
HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET support (for instances x86, arm64
etc).
Link: https://lore.kernel.org/lkml/[email protected]/T/#m49b2d4490121445ce4bf7653500aba59eefcb67f
Cc: Christophe Leroy <[email protected]>
Cc: Xiu Jianfeng <[email protected]>
Signed-off-by: GONG, Ruiqi <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Fixes: 39218ff4c625 ("stack: Optionally randomize kernel stack offset each syscall")
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c')
0 files changed, 0 insertions, 0 deletions