diff options
author | 2025-02-21 15:16:25 +0800 | |
---|---|---|
committer | 2025-03-05 21:36:16 -0800 | |
commit | c29564d8b46f64f5e6e6f1c9c02f7761b7b90963 (patch) | |
tree | a9729b6edd3fd07f0bf24776dce560272e78b473 /net/lapb/lapb_timer.c | |
parent | NFS: fix nfs_release_folio() to not deadlock via kcompactd writeback (diff) | |
download | wireguard-linux-c29564d8b46f64f5e6e6f1c9c02f7761b7b90963.tar.xz wireguard-linux-c29564d8b46f64f5e6e6f1c9c02f7761b7b90963.zip |
include/linux/log2.h: mark is_power_of_2() with __always_inline
When building kernel with randconfig, there is an error:
In function `kvm_is_cr4_bit_set',inlined from
`kvm_update_cpuid_runtime' at arch/x86/kvm/cpuid.c:310:9:
include/linux/compiler_types.h:542:38: error: call to
`__compiletime_assert_380' declared with attribute error:
BUILD_BUG_ON failed: !is_power_of_2(cr4_bit).
'!is_power_of_2(X86_CR4_OSXSAVE)' is False, but gcc treats is_power_of_2()
as non-inline function and a compilation error happens. Fix this by marking
is_power_of_2() with __always_inline.
Link: https://lkml.kernel.org/r/20250221071624.1356899-1-suhui@nfschina.com
Signed-off-by: Su Hui <suhui@nfschina.com>
Cc: Binbin Wu <binbin.wu@linux.intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions