From patchwork Fri Jun 1 16:06:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 137541 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1126487lji; Fri, 1 Jun 2018 09:06:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2PpH07NaKEqKD2iouwdQ3PfH9Aj3QyLIBYaSKf8tShgM19Z23EeC6dDh6knNFpkZfGjAu X-Received: by 2002:a62:3e9a:: with SMTP id y26-v6mr11409605pfj.98.1527869168535; Fri, 01 Jun 2018 09:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527869168; cv=none; d=google.com; s=arc-20160816; b=Z0BkAcaLfATZodgVOu1BNqiaS1PsZSROyIGsXOIUyBTH2NdD1PVYxVgHbBZxcmKyc0 88+7RO5x0wBXVIULlRhl3Jp/KNNqGd2e5wOp/d0NagZQzN+CWCPNkj/UHl5x9+9do274 ACmsSmjPmE5LtUOPBNmRxTfKMpel2GabhPuFVELDx+NNCGfqb51bqFeBwnM1IOQuIc8/ /zx81+zNyAGhHrkop/FiYOTcuj446v1GweSaXKMsu86s1ra27cxX1ZdIjcQdoPRwdEAE C0xMNLh0lke17C032vT2jfLm+u5WvwlYBjzrv1z0IpzGBlClrESr2unRglNqa9sKKkYm 1Z+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=uYayreNaCexijW8oKgvS7R7gvZQf9Kw/3zESbbf2Yx0=; b=B5IH+x/fQzXl4G9AXcGuRmSA9InsDENZFBizLeNSkTBSntaOQeDEFGWk5+Q8WMMhvF bs92cw/NOtnlEj6EGtLkHf5nVCl/u1sLcztNoAmO2PniePgaM9mx8+THamLgApEbtOn+ J5gdImwRUybL+Xgys25QUnnTTadrSYW7b8OqiZ2BNZr/Ib6ZHkcfAzKdJFVL4e67C/29 pthi8x/YZHRzAG8oWzfJF74wRiez7BqEzM08IAFmYTd3OZhgg9XNG53TPagO9me+4TSz WSGtqpNW1YhOFOidb8mSovT99OWmyC+NCSIW4DBv6wrVShhYR/udBGFjpVRaDvfqFAA9 p4Tg== ARC-Authentication-Results: i=1; mx.google.com; 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 u75-v6si39767607pfd.328.2018.06.01.09.06.08; Fri, 01 Jun 2018 09:06:08 -0700 (PDT) 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; 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 S1753069AbeFAQGG (ORCPT + 30 others); Fri, 1 Jun 2018 12:06:06 -0400 Received: from foss.arm.com ([217.140.101.70]:54960 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751655AbeFAQGA (ORCPT ); Fri, 1 Jun 2018 12:06:00 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C23B715AB; Fri, 1 Jun 2018 09:05:59 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 945183F59F; Fri, 1 Jun 2018 09:05:59 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 193E41AE0C4E; Fri, 1 Jun 2018 17:06:30 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, mingo@kernel.org, linux-arm-kernel@lists.infradead.org, yamada.masahiro@socionext.com, Will Deacon , Yoshinori Sato Subject: [PATCH v2 1/9] h8300: Don't include linux/kernel.h in asm/atomic.h Date: Fri, 1 Jun 2018 17:06:21 +0100 Message-Id: <1527869189-31512-2-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1527869189-31512-1-git-send-email-will.deacon@arm.com> References: <1527869189-31512-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/kernel.h isn't needed by asm/atomic.h and will result in circular dependencies when the asm-generic atomic bitops are built around the tomic_long_t interface. Remove the broad include and replace it with linux/compiler.h for READ_ONCE etc and asm/irqflags.h for arch_local_irq_save etc. Cc: Yoshinori Sato Signed-off-by: Will Deacon --- arch/h8300/include/asm/atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.1.4 diff --git a/arch/h8300/include/asm/atomic.h b/arch/h8300/include/asm/atomic.h index 941e7554e886..b174dec099bf 100644 --- a/arch/h8300/include/asm/atomic.h +++ b/arch/h8300/include/asm/atomic.h @@ -2,8 +2,10 @@ #ifndef __ARCH_H8300_ATOMIC__ #define __ARCH_H8300_ATOMIC__ +#include #include #include +#include /* * Atomic operations that C can't guarantee us. Useful for @@ -15,8 +17,6 @@ #define atomic_read(v) READ_ONCE((v)->counter) #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) -#include - #define ATOMIC_OP_RETURN(op, c_op) \ static inline int atomic_##op##_return(int i, atomic_t *v) \ { \