Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3617541imb; Tue, 5 Mar 2019 14:20:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzFk9QNfBCRB9JAS0sZD7MzVgDM+XfQrYlemxgzdQhJ3BSMcnIeAETDXZIQAVEBgLScLPU4 X-Received: by 2002:a17:902:b486:: with SMTP id y6mr3591667plr.104.1551824400502; Tue, 05 Mar 2019 14:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551824400; cv=none; d=google.com; s=arc-20160816; b=zxj/oPTUFvcHPOEmIJ4W0Cy9wNzJ0rW/9bswL9nGkZzUlnhpW8oSfo6Sw/PZXeMVVh nFHSur5b8LMCfNi0Y2HR6Gi0auyeSHhLOOwzQPQEVprhd66UIii4gkj0RvqOYJPoMEoR Sb8li+iC0DKAEe+SadY44uErQeY2KNLo9yV8kUngkNLUbpyfRJeSRW2T67utzZzksohv dA9BQCQXp93wFvkuZqh0tdoA9Legr7AYPtzhm1+vdhQDOhIrnkrWQPXrn0UAvWwTVvEI h4aRU9hLlfOH+THMJkjMDv9jMTy1iZrmAGWQueqvhcSxkb/pU9BhIJ3MDplzJD7UWbII 4gCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BhPOyo0jn/O7Sy5qMeouEojl4oA0Rax7qDdY/h4DGZs=; b=TnbrVPCQ5k2HH4tvncOlFDlz77GCUa4swtJIkyZ4GtANxcBCs5iNuVqAdUR+ie2tE+ /yACA+6hW0sG63zCoU/KD7p9d3Z0EoOo46oJ7Eb/l7e37TcckbXJqjDUHc2TJiSbH0Zr s3grOnUJJAUKpoTuGnK24JM+Qw7yRYF99zdYYgwhqwnLijpTGbsK1sAbG/Sdv7mpNVxE j/scS2nNNc9QNrxL7Sv1fRNFS6VDeoFb5wgWrZwX6W88JEOvLEMh/7BrK0z0vkY3S4A+ fOeLjo6X7rAfjhyoNAILYEq0+hDQPrQA5+L3GzurxQyzXyV0BsVyk1s5kNx03dqiZY1Q FoOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b="CERV/X50"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ct9si10112153plb.341.2019.03.05.14.19.45; Tue, 05 Mar 2019 14:20:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b="CERV/X50"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728172AbfCEWRi (ORCPT + 99 others); Tue, 5 Mar 2019 17:17:38 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:57038 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbfCEWRi (ORCPT ); Tue, 5 Mar 2019 17:17:38 -0500 Received: from zyt.lan (unknown [IPv6:2a02:169:3465:0:5054:ff:fe4f:85bd]) by mail.kmu-office.ch (Postfix) with ESMTPSA id ACDC85C0089; Tue, 5 Mar 2019 23:17:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1551824256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=BhPOyo0jn/O7Sy5qMeouEojl4oA0Rax7qDdY/h4DGZs=; b=CERV/X502pnbiqwcd5ykIisV7jDSf4TcT94RuftRlotp3Be5P3oq3EJvk9ZCjaEX6gMIjb ZuALtGs1xDEMmJmT4itKKiw1HrBE5SICurjvNqsB/os9yRRWeHCKNJTrOfSPz4ZDSs2gmj e9/zIBEQAowx21hcPUPYdS3v9c2wcSE= From: Stefan Agner To: linux@armlinux.org.uk Cc: will.deacon@arm.com, ndesaulniers@google.com, natechancellor@gmail.com, arnd@arndb.de, ard.biesheuvel@linaro.org, nicolas.pitre@linaro.org, thierry.reding@gmail.com, julien.thierry@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Agner Subject: [PATCH 1/2] ARM: drop unnecessary WASM Date: Tue, 5 Mar 2019 23:18:26 +0100 Message-Id: <13835555f8ef44b21d1b7ddfe1c4203d0981f77e.1551824161.git.stefan@agner.ch> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The W macro for generating wide instructions when targeting Thumb-2 is not required for the preload data instructions (pld, pldw) since they are only available as wide instructions. The GNU assembler seems to work with or without the .w appended when compiling an Thumb-2 kernel. However, Clang's integrated assembler does not consider the .w variants as valid instructions: ./arch/arm/include/asm/processor.h:133:5: error: invalid instruction "pldw.w\t%a0 \n" ^ :2:1: note: instantiated into assembly here pldw.w [r0] ^ 1 error generated. Drop the macro to make sure non-wide variants of pld and pldw are emitted in all cases. Signed-off-by: Stefan Agner --- arch/arm/include/asm/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/processor.h index 120f4c9bbfde..042d77cf686d 100644 --- a/arch/arm/include/asm/processor.h +++ b/arch/arm/include/asm/processor.h @@ -131,8 +131,8 @@ static inline void prefetchw(const void *ptr) __asm__ __volatile__( ".arch_extension mp\n" __ALT_SMP_ASM( - WASM(pldw) "\t%a0", - WASM(pld) "\t%a0" + "pldw\t%a0", + "pld\t%a0" ) :: "p" (ptr)); } -- 2.20.1