Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390: Handle KCOV __init vs inline mismatches

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
s390 this exposed a place where the __init annotation was missing but
ended up being "accidentally correct". Fix this cases and force a couple
functions to be inline with __always_inline.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20250717232519.2984886-7-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>

Kees Cook c64d6be1 2424fe1c

+3 -3
+1 -1
arch/s390/hypfs/hypfs.h
··· 48 48 49 49 int __hypfs_fs_init(void); 50 50 51 - static inline int hypfs_fs_init(void) 51 + static __always_inline int hypfs_fs_init(void) 52 52 { 53 53 if (IS_ENABLED(CONFIG_S390_HYPFS_FS)) 54 54 return __hypfs_fs_init();
+1 -1
arch/s390/hypfs/hypfs_diag.h
··· 19 19 int __hypfs_diag_fs_init(void); 20 20 void __hypfs_diag_fs_exit(void); 21 21 22 - static inline int hypfs_diag_fs_init(void) 22 + static __always_inline int hypfs_diag_fs_init(void) 23 23 { 24 24 if (IS_ENABLED(CONFIG_S390_HYPFS_FS)) 25 25 return __hypfs_diag_fs_init();
+1 -1
arch/s390/mm/init.c
··· 142 142 } 143 143 144 144 /* protected virtualization */ 145 - static void pv_init(void) 145 + static void __init pv_init(void) 146 146 { 147 147 if (!is_prot_virt_guest()) 148 148 return;