aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2017-07-12 14:35:58 -0700
committerLinus Torvalds <[email protected]>2017-07-12 16:26:02 -0700
commite2ae8ab4b571e2e4094a28acb60649bc2732c67f (patch)
tree37ef8802e03e3e416be96534618a718833287d0e /drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
parent3e2c044a54e6b6373606f8ffad42a4a0759fcf3d (diff)
kexec_file: adjust declaration of kexec_purgatory
Defining kexec_purgatory as a zero-length char array upsets compile time size checking. Since this is built on a per-arch basis, define it as an unsized char array (like is done for other similar things, e.g. linker sections). This silences the warning generated by the future CONFIG_FORTIFY_SOURCE, which did not like the memcmp() of a "0 byte" array. This drops the __weak and uses an extern instead, since both users define kexec_purgatory. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Cc: Daniel Micay <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c')
0 files changed, 0 insertions, 0 deletions