From patchwork Thu May 24 10:59:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 136735 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2039567lji; Thu, 24 May 2018 03:59:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqzAvvbII+l/m4eEVsaPlB641dIWw5nO2teuuam1zY8h92OastBzd4Fzqea+Q1Vnxzjff7P X-Received: by 2002:a63:b34e:: with SMTP id x14-v6mr5490824pgt.70.1527159579934; Thu, 24 May 2018 03:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159579; cv=none; d=google.com; s=arc-20160816; b=Q3BV+F8VUQ/nAZ3E2i51UVfGs+W8hDcHqbeqrIPpPWrCNnEeaCWlCLH8Rr7NXbibKn kSYhLDju5r2zwVqiT5z5mUod4iXXbsqA689KadtUIU84JcJPOSTiyYunbuE6inUloZW1 AQgRrWP5HTKVQy8DpHJnzHI5c0GPmmYHlmACxdSp/cX2mk/dxxE33DIlPqqLKYzTYr9N l8XuFKWjDNWdWyYT8ozVWHqOjp3ftm56xel9y1U3z4HCECaocXcFiW7h27Cbzy/dEklE FtIK2umYoScSuuU5Eocs82mwFqRgk0f0fHS7n2ORVgYO9iP8pbh/dOwkV9r2TzgLSa89 wFyw== 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=RWczJ9V2wvQO8a3R5IAPopsE0Za7jyIvZ85rbTxLhn6KhI0PdXAuotdRyICqjU+1Zd 6nRJJD+ZwkWApC4L6CE/xublMXyItkrRTCjT8oXjSWLF3uJzDKZ+4/HuOFMjKp/P5rjt vESJDU5/QiOq1jJ1V3SoYz1NjwIeDd1Omie3aksGzOYefIoTfjQfribsgMNByS5ex2+1 pQiogbI8kFg9d3xrRBe+zZHbl8O/9Yp0QPhQpE+dXyWZQdjSjMNxyvS2G5/C9b/QpYzm KJpLHsbpvGnWYOD8GZ6cJzIHMNZFQnxNtpEtns0drStN0JZQfSjqmruRM6qkXnyuN/gl u1kA== 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 r8-v6si1537324plj.40.2018.05.24.03.59.39; Thu, 24 May 2018 03:59:39 -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 S1032783AbeEXK7h (ORCPT + 30 others); Thu, 24 May 2018 06:59:37 -0400 Received: from foss.arm.com ([217.140.101.70]:40924 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030261AbeEXK7T (ORCPT ); Thu, 24 May 2018 06:59:19 -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 7EF3415AD; Thu, 24 May 2018 03:59:19 -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 4F6B03F5C1; Thu, 24 May 2018 03:59:19 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 5374D1AE0F4E; Thu, 24 May 2018 11:59:47 +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 1/9] h8300: Don't include linux/kernel.h in asm/atomic.h Date: Thu, 24 May 2018 11:59:38 +0100 Message-Id: <1527159586-8578-2-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1527159586-8578-1-git-send-email-will.deacon@arm.com> References: <1527159586-8578-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) \ { \