aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2021-05-05 17:45:15 +0000
committerMasahiro Yamada <[email protected]>2021-05-08 15:29:45 +0000
commit0ab1438bad43d95877f848b7df551bd431680270 (patch)
treec25724063ce7233107753ebc443447d143aadb1c /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentkbuild: Don't remove link-vmlinux temporary files on exit/signal (diff)
downloadkernel-0ab1438bad43d95877f848b7df551bd431680270.tar.gz
kernel-0ab1438bad43d95877f848b7df551bd431680270.zip
linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h>
<linux/kconfig.h> is included from all the kernel-space source files, including C, assembly, linker scripts. It is intended to contain a minimal set of macros to evaluate CONFIG options. IF_ENABLED() is an intruder here because (x ? y : z) is C code, which should not be included from assembly files or linker scripts. Also, <linux/kconfig.h> is no longer self-contained because NULL is defined in <linux/stddef.h>. Move IF_ENABLED() out to <linux/kernel.h> as PTR_IF(). PTF_IF() takes the general boolean expression instead of a CONFIG option so that it fits better in <linux/kernel.h>. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions