summaryrefslogtreecommitdiff
path: root/sound/drivers/opl3/opl3_voice.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-11-08 18:30:10 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2024-11-08 20:08:48 +0300
commit62e724494db7954c47b4417769f1225cf98f4d77 (patch)
tree15983c44e3284f350b0ebfa931b3a7f609fe7bb2 /sound/drivers/opl3/opl3_voice.h
parent86e39b94cd71a4987f9b98dd2a7d6c826e1c5c98 (diff)
downloadlinux-62e724494db7954c47b4417769f1225cf98f4d77.tar.xz
x86/cpu: Make sure flag_is_changeable_p() is always being used
When flag_is_changeable_p() is unused, it prevents kernel builds with clang, `make W=1` and CONFIG_WERROR=y: arch/x86/kernel/cpu/common.c:351:19: error: unused function 'flag_is_changeable_p' [-Werror,-Wunused-function] 351 | static inline int flag_is_changeable_p(u32 flag) | ^~~~~~~~~~~~~~~~~~~~ Fix this by moving core around to make sure flag_is_changeable_p() is always being used. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). While at it, fix the argument type to be unsigned long along with the local variables, although it currently only runs in 32-bit cases. Besides that, makes it return boolean instead of int. This induces the change of the returning type of have_cpuid_p() to be boolean as well. Suggested-by: Dave Hansen <dave.hansen@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: H. Peter Anvin (Intel) <hpa@zytor.com> Link: https://lore.kernel.org/all/20241108153105.1578186-1-andriy.shevchenko%40linux.intel.com
Diffstat (limited to 'sound/drivers/opl3/opl3_voice.h')
0 files changed, 0 insertions, 0 deletions