Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1981293imm; Thu, 24 May 2018 04:00:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpTVumLCxX8KXjISAfGnaCKglihTl1wktCtr+uiKgFPjZhCP7/B9K0KCa0vBVhofPoIxaHs X-Received: by 2002:a17:902:7896:: with SMTP id q22-v6mr6970037pll.243.1527159634601; Thu, 24 May 2018 04:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159634; cv=none; d=google.com; s=arc-20160816; b=u6hoqW4A055DbYvi7WiLuKhx4v7NymMoTMcLtDhAWncjdBoV0E4hLkX887YH82aElo vqsyVfmU8IkOh+THmKx9JzRoI3tsvsqS/DuEBcRSknxB9z/TOinnDEnmkUgzpaCfuc6t hAsz7LhmnNlH7FmSSRCGnRQRvacKl42HYvHJE5nl6jZjQxWWzo33w/3bjzmjTadQWoI9 nH9nzMR9yu8P1KyODzP2JhIZfQYXBhgfxSE3wsEmzcJF1RKn9+67BLL9lEJSoDZZCfKW aIQBVDOKbqg5WwGxbm1lpFlc9xdycFv7BJ7tOemq3Xb5F+8kzZSaH34KpUhGstmsujY7 fHOg== 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 a68-v6si21730611pli.158.2018.05.24.04.00.19; Thu, 24 May 2018 04:00:34 -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 S1032779AbeEXK7h (ORCPT + 99 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(-) 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) \ { \ -- 2.1.4