On Wed, Oct 21, 2020 at 02:39:37PM +0200, Joerg Roedel wrote: > diff --git a/arch/x86/mm/mem_encrypt.c b/arch/x86/mm/mem_encrypt.c > index ebb7edc8bc0a..bd9b62af2e3d 100644 > --- a/arch/x86/mm/mem_encrypt.c > +++ b/arch/x86/mm/mem_encrypt.c > @@ -39,6 +39,7 @@ > */ > u64 sme_me_mask __section(.data) = 0; > u64 sev_status __section(.data) = 0; > +u64 sev_check_data __section(.data) = 0;
Apparently section names are supposed to be given as strings now: In file included from ././include/linux/compiler_types.h:65, from <command-line>: arch/x86/mm/mem_encrypt.c:42:30: error: expected expression before ‘.’ token 42 | u64 sev_check_data __section(.data) = 0; | ^ ./include/linux/compiler_attributes.h:257:68: note: in definition of macro ‘__section’ 257 | #define __section(section) __attribute__((__section__(section))) | ^~~~~~~ arch/x86/mm/mem_encrypt.c:42:30: error: section attribute argument not a string constant 42 | u64 sev_check_data __section(.data) = 0; | ^ ./include/linux/compiler_attributes.h:257:68: note: in definition of macro ‘__section’ 257 | #define __section(section) __attribute__((__section__(section))) | ^~~~~~~ make[2]: *** [scripts/Makefile.build:283: arch/x86/mm/mem_encrypt.o] Error 1 make[1]: *** [scripts/Makefile.build:500: arch/x86/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1799: arch/x86] Error 2 make: *** Waiting for unfinished jobs.... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette