From patchwork Thu Sep 27 13:07:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 10618003 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E48F5175A for ; Thu, 27 Sep 2018 13:09:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1D5F2B471 for ; Thu, 27 Sep 2018 13:09:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C581F2B490; Thu, 27 Sep 2018 13:09:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 18BC32B471 for ; Thu, 27 Sep 2018 13:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=I2f1mr/lowbRGbVaTAMpoNxq8LzSJ8MTdehPXT3/3Xs=; b=MQN 3dCrxLVlHbfKzuf3k13x7osJGdjFG+FWJbplGYVWjNxPwsDnsNm2V/tMP7n7SS/H0Q5dwKwLjy2+D UyniacosJyABZF9DwJk20ZOlseb2IMxFezOURC3TBOhmhtuYimDqk4Q+kWq6MSjz5zp1L4MEJFyM1 HU71U9QmGe7r2dJ3bMuii65J46fUDLM+4ORDC6tt0u97S8T1B90CvlFSQmA4eS8SoOh47RI+0EATc BRzGRntR8yAPCti3XRA2SUCljhFWV5l+/RxAp+Gndsloy0bDlKBYTPKCSsdq3n3xbG/18K7D67Ia4 6AXD1S5fk+nZq0VYp1EW3gNGT1fd9Yw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5W2W-0002mx-Rx; Thu, 27 Sep 2018 13:09:08 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5W29-0002kG-Mh for linux-arm-kernel@lists.infradead.org; Thu, 27 Sep 2018 13:08:47 +0000 Received: by mail-wm1-x341.google.com with SMTP id y25-v6so5840687wmi.1 for ; Thu, 27 Sep 2018 06:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=UKcZmX0bnAmZ+ykFz8l9qy7yJD2SvVBjRn4iCuWKB2U=; b=JteLwt6liEel8mwBKEh1NazQLmcIIsROj6hZIspSNE/qY9KQ/H6YcU57ijiMScK+cF +mPRaBaAUT8kvx+IlhX+MxafVOUGnwst0c87Y/RjLUeY4eyR9Qz6roQe/h0tAbYT1Wru 7t4DPZRG02+FEY7LHevIESGlYfRVFwlCgYyOM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UKcZmX0bnAmZ+ykFz8l9qy7yJD2SvVBjRn4iCuWKB2U=; b=OEf7vk+ygM9Hcvn3Si9YjNvQ3qSK9Vf0iLpqCLCV9eR6p7KZD6jUoN9roYszoFfY20 hTqh72pD3c3+VAn9l3qPoIHZaf6k9o+ElqHyS9QN1Hr3/PLCwLiHo3K8nrJnzqhKfzkF 8UzMnoc4R8NtOelUAs4c2oLs6owSCUyVqVvXpJUcu1JYJCArgOj7Sbc58O3+Oddmykdd C9UP8acC7zmJvF7Sr3xvmLLc7a7A+0r9oKqcgfOL21vqNTUIcewmFKrZ7ubh7FDCwrHP vNvaJM0SPK/B+snUYktf011tys6p/ERXO8M5aNOf9WUQoOZWBAcfsu3Y6V18aiO7DfUH OxCw== X-Gm-Message-State: ABuFfojXI3TEoHNryT6ip2r49lfUibIMjp/HFCAH+HOjO73FOX/mPGo2 qLdArVR+3OreUIWIxnO6DP3pOnGdpLc= X-Google-Smtp-Source: ACcGV62cgQXGYpIBceJERu7EfUKj4ALJmaWvqieDpq8+RkJ6eFtv48GwR2pPOwMQwXXZhv87MvqmCQ== X-Received: by 2002:a1c:a386:: with SMTP id m128-v6mr7435784wme.139.1538053693159; Thu, 27 Sep 2018 06:08:13 -0700 (PDT) Received: from rev03.home ([2a01:cb1d:112:6f00:c98e:b77c:5ece:7870]) by smtp.gmail.com with ESMTPSA id p16-v6sm269400wmi.8.2018.09.27.06.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 06:08:12 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: remove unused asm/compiler.h header file Date: Thu, 27 Sep 2018 15:07:37 +0200 Message-Id: <20180927130737.31301-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180927_060845_738564_78BED079 X-CRM114-Status: GOOD ( 13.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, arnd@arndb.de, Ard Biesheuvel , marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP arm64 does not define CONFIG_HAVE_ARCH_COMPILER_H, nor does it keep anything useful in its copy of asm/compiler.h, so let's remove it before anybody starts using it. Signed-off-by: Ard Biesheuvel Acked-by: Will Deacon --- arch/arm64/include/asm/compiler.h | 30 ------------------------------ arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/include/asm/uaccess.h | 1 - arch/arm64/kernel/psci.c | 1 - 4 files changed, 33 deletions(-) delete mode 100644 arch/arm64/include/asm/compiler.h diff --git a/arch/arm64/include/asm/compiler.h b/arch/arm64/include/asm/compiler.h deleted file mode 100644 index ee35fd0f2236..000000000000 --- a/arch/arm64/include/asm/compiler.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Based on arch/arm/include/asm/compiler.h - * - * Copyright (C) 2012 ARM Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -#ifndef __ASM_COMPILER_H -#define __ASM_COMPILER_H - -/* - * This is used to ensure the compiler did actually allocate the register we - * asked it for some inline assembly sequences. Apparently we can't trust the - * compiler from one version to another so a bit of paranoia won't hurt. This - * string is meant to be concatenated with the inline asm string and will - * cause compilation to stop on mismatch. (for details, see gcc PR 15089) - */ -#define __asmeq(x, y) ".ifnc " x "," y " ; .err ; .endif\n\t" - -#endif /* __ASM_COMPILER_H */ diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index c1470931b897..6d307212bf7c 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -20,7 +20,6 @@ #ifndef __ASM_SYSREG_H #define __ASM_SYSREG_H -#include #include /* diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h index e66b0fca99c2..07c34087bd5e 100644 --- a/arch/arm64/include/asm/uaccess.h +++ b/arch/arm64/include/asm/uaccess.h @@ -32,7 +32,6 @@ #include #include #include -#include #include #define get_ds() (KERNEL_DS) diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c index e8edbf13302a..8cdaf25e99cd 100644 --- a/arch/arm64/kernel/psci.c +++ b/arch/arm64/kernel/psci.c @@ -24,7 +24,6 @@ #include -#include #include #include #include