diff options
author | Will Deacon <will.deacon@arm.com> | 2013-11-19 15:46:11 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-11-21 00:05:53 +0100 |
commit | b7ec699405f55667caeb46d96229d75bf33a83ad (patch) | |
tree | b27d565cbd94b5e5a57ef727691c7ea52b5cd0e6 /crypto | |
parent | ARM: 7892/1: Fix warning for V7M builds (diff) | |
download | linux-b7ec699405f55667caeb46d96229d75bf33a83ad.tar.xz linux-b7ec699405f55667caeb46d96229d75bf33a83ad.zip |
ARM: 7893/1: bitops: only emit .arch_extension mp if CONFIG_SMP
Uwe reported a build failure when targetting a NOMMU platform with my
recent prefetch changes:
arch/arm/lib/changebit.S: Assembler messages:
arch/arm/lib/changebit.S:15: Error: architectural extension `mp' is
not allowed for the current base architecture
This is due to use of the .arch_extension mp directive immediately prior
to an ALT_SMP(...) instruction. Whilst the ALT_SMP macro will expand to
nothing if !CONFIG_SMP, gas will still choke on the directive.
This patch fixes the issue by only emitting the sequence (including the
directive) if CONFIG_SMP=y.
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions