On Thu, 22 May 2025, Kees Cook wrote: > When KCOV is enabled all functions get instrumented, unless the > __no_sanitize_coverage attribute is used. To prepare for > __no_sanitize_coverage being applied to __init functions, we have to > handle differences in how GCC's inline optimizations get resolved. For > x86 this means forcing several functions to be inline with > __always_inline. > > Signed-off-by: Kees Cook > --- > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: Dave Hansen > Cc: > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: Vitaly Kuznetsov > Cc: Henrique de Moraes Holschuh > Cc: Hans de Goede > Cc: "Ilpo Järvinen" > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Masami Hiramatsu > Cc: Ard Biesheuvel > Cc: Mike Rapoport > Cc: Michal Wilczynski > Cc: Juergen Gross > Cc: Andy Shevchenko > Cc: "Kirill A. Shutemov" > Cc: Roger Pau Monne > Cc: David Woodhouse > Cc: Usama Arif > Cc: "Guilherme G. Piccoli" > Cc: Thomas Huth > Cc: Brian Gerst > Cc: > Cc: > Cc: > Cc: > Cc: > Cc: > Cc: > --- > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c > index e7350c9fa3aa..0518d5b1f4ec 100644 > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -559,12 +559,12 @@ static unsigned long __init tpacpi_check_quirks( > return 0; > } > > -static inline bool __pure __init tpacpi_is_lenovo(void) > +static __always_inline bool __pure tpacpi_is_lenovo(void) > { > return thinkpad_id.vendor == PCI_VENDOR_ID_LENOVO; > } > > -static inline bool __pure __init tpacpi_is_ibm(void) > +static __always_inline bool __pure tpacpi_is_ibm(void) > { > return thinkpad_id.vendor == PCI_VENDOR_ID_IBM; > } Hi Kees, What's your plan on upstreaming route/timeline for this? I'd prefer to retain full control over this file as we were planning on some reorganization of files into lenovo/ subdir. -- i.