From f85380952fa2d90ee24cf6824bb7e7c1b64b6151 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 11 Sep 2017 05:38:52 +0000 Subject: Remove whitespace in inline assembly output constraint strings. While gcc is documented as ignoring whitespace in any position but the first clang gives "error: invalid output constraint '=r ' in asm". --- sys/arch/arm/mainbus/mainbus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/arm/mainbus/mainbus.c b/sys/arch/arm/mainbus/mainbus.c index 3d36366c95b..bbe8f12385c 100644 --- a/sys/arch/arm/mainbus/mainbus.c +++ b/sys/arch/arm/mainbus/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.18 2017/05/02 14:45:26 kettenis Exp $ */ +/* $OpenBSD: mainbus.c,v 1.19 2017/09/11 05:38:51 jsg Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * Copyright (c) 2017 Mark Kettenis @@ -253,7 +253,7 @@ mainbus_match_primary(struct device *parent, void *match, void *aux) struct cfdata *cf = match; uint32_t mpidr; - __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r " (mpidr)); + __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r" (mpidr)); if (fa->fa_nreg < 1 || fa->fa_reg[0].addr != (mpidr & MPIDR_AFF)) return 0; @@ -268,7 +268,7 @@ mainbus_match_secondary(struct device *parent, void *match, void *aux) struct cfdata *cf = match; uint32_t mpidr; - __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r " (mpidr)); + __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r" (mpidr)); if (fa->fa_nreg < 1 || fa->fa_reg[0].addr == (mpidr & MPIDR_AFF)) return 0; -- cgit v1.2.3