aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2024-07-19 00:50:40 +0000
committerYury Norov <[email protected]>2024-08-18 17:08:00 +0000
commit54c9e0085bd1015e524d8f4d3c4e78a7bc77ffca (patch)
tree8b7c07fd96a386c2f74d13c686ffc2d5aab29feb /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentcpumask: Switch from inline to __always_inline (diff)
downloadkernel-54c9e0085bd1015e524d8f4d3c4e78a7bc77ffca.tar.gz
kernel-54c9e0085bd1015e524d8f4d3c4e78a7bc77ffca.zip
nodemask: Switch from inline to __always_inline
'inline' keyword is only a recommendation for compiler. If it decides to not inline nodemask functions, the whole small_const_nbits() machinery doesn't work. This is how a standard GCC 11.3.0 does for my x86_64 build now. This patch replaces 'inline' directive with unconditional '__always_inline' to make sure that there's always a chance for compile-time optimization. It doesn't change size of kernel image, according to bloat-o-meter. [[ Brian: split out from: Subject: [PATCH 1/3] bitmap: switch from inline to __always_inline https://lore.kernel.org/all/[email protected]/ But rewritten, as there were too many conflicts. ]] Co-developed-by: Brian Norris <[email protected]> Signed-off-by: Brian Norris <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions