Re: Incorrect usage of macro ALTERNATIVE in arch/x86/include/asm/arch_hweight.h
From: Borislav Petkov
Date: Thu Apr 13 2017 - 05:44:24 EST
On Wed, Apr 12, 2017 at 05:38:59PM +0300, Corcodel Marian wrote:
> 1. Remove suppress errors message from compiler
>
> 2 . Run make to compile kernel
>
> Bellow is errors message from compiler:
>
> ./arch/x86/include/asm/arch_hweight.h: In function '__arch_hweight32':
> ./arch/x86/include/asm/arch_hweight.h:31:7: error: expected string literal
> before 'ALTERNATIVE'
> asm (ALTERNATIVE("call __sw_hweight32", POPCNT32, X86_FEATURE_POPCNT)
> ^
> ./arch/x86/include/asm/arch_hweight.h: In function '__arch_hweight64':
> ./arch/x86/include/asm/arch_hweight.h:59:7: error: expected string literal
> before 'ALTERNATIVE'
> asm (ALTERNATIVE("call __sw_hweight64", POPCNT64, X86_FEATURE_POPCNT)
>
>
> How determine contacts:
>
> From terminal run:
>
> asu@asu-ALABAMA:~/KERNEL/test4/linux-4.6.2$ perl scripts/get_maintainer.pl
> -f arch/x86/include/asm/arch_hweight.hperl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> LANGUAGE = "en",
> LC_ALL = (unset),
> LANG = "ro_RO.UTF-8"
> are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> Bad divisor in main::vcs_assign: 0
> Thomas Gleixner <tglx@xxxxxxxxxxxxx> (maintainer:X86 ARCHITECTURE (32-BIT
> AND 64-BIT))
> Ingo Molnar <mingo@xxxxxxxxxx> (maintainer:X86 ARCHITECTURE (32-BIT AND
> 64-BIT))
> "H. Peter Anvin" <hpa@xxxxxxxxx> (maintainer:X86 ARCHITECTURE (32-BIT AND
> 64-BIT))
> x86@xxxxxxxxxx (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT))
> "GitAuthor: Corcodel Marian" <asd@xxxxxxxxxxxxxxxx>
> (authored:1/1=100%,added_lines:66/66=100%)
Did you touch that file and now it fails building? Because this says there's one
commit from you touching arch/x86/include/asm/arch_hweight.h...
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.