diff --git a/MAINTAINERS b/MAINTAINERS index bf91b2831650..a068db0ade61 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -28977,8 +28977,8 @@ F: arch/x86/kernel/unwind_*.c X86 TRUST DOMAIN EXTENSIONS (TDX) M: Kiryl Shutsemau +M: Rick Edgecombe R: Dave Hansen -R: Rick Edgecombe L: x86@kernel.org L: linux-coco@lists.linux.dev L: kvm@vger.kernel.org diff --git a/arch/x86/include/asm/bug.h b/arch/x86/include/asm/bug.h index 80c1696d8d59..23ab05438269 100644 --- a/arch/x86/include/asm/bug.h +++ b/arch/x86/include/asm/bug.h @@ -153,7 +153,7 @@ struct arch_va_list { struct sysv_va_list args; }; extern void *__warn_args(struct arch_va_list *args, struct pt_regs *regs); -#endif /* __ASSEMBLER__ */ +static __always_inline __printf(1, 2) void __WARN_validate_printf(const char *fmt, ...) { } #define __WARN_bug_entry(flags, format) ({ \ struct bug_entry *bug; \ @@ -172,6 +172,7 @@ extern void *__warn_args(struct arch_va_list *args, struct pt_regs *regs); #define __WARN_print_arg(flags, format, arg...) \ do { \ int __flags = (flags) | BUGFLAG_WARNING | BUGFLAG_ARGS ; \ + __WARN_validate_printf(format, ## arg); \ static_call_mod(WARN_trap)(__WARN_bug_entry(__flags, format), ## arg); \ asm (""); /* inhibit tail-call optimization */ \ } while (0) @@ -187,6 +188,7 @@ do { \ } \ __ret_warn_on; \ }) +#endif /* __ASSEMBLER__ */ #endif /* HAVE_ARCH_BUG_FORMAT_ARGS */ diff --git a/arch/x86/include/asm/device.h b/arch/x86/include/asm/device.h deleted file mode 100644 index 7c0a52ca2f4d..000000000000 --- a/arch/x86/include/asm/device.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_X86_DEVICE_H -#define _ASM_X86_DEVICE_H - -struct dev_archdata { -}; - -struct pdev_archdata { -}; - -#endif /* _ASM_X86_DEVICE_H */