Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4836736imm; Sun, 22 Jul 2018 06:59:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe0bW119GiBNsWzyFbGdKieZang0+l6+V50XnLyAyuli0Lr0+YUo6SnhYY+xpYcepY22Q1a X-Received: by 2002:a17:902:6902:: with SMTP id j2-v6mr9170266plk.323.1532267957526; Sun, 22 Jul 2018 06:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532267957; cv=none; d=google.com; s=arc-20160816; b=yYy4QLAdnbGvOGXF8OTMRtoNeAS01uGvtwkeeorqDkZ9zt0zqzZztu/qSNMhh7MT4O n94s4mQbCrPy/JuFeXhlAvxHGNJs2ZFT/b1vr0i5DzCHAb1/A5+ac7DakNj5icNLP3f0 Y6UZc7sLtKclSbyAvzsPIo8TIy3NloAdFZX7ztrZig72RIDMWZ+jKe90mZkh9brSWd0k E7SALIExED3ye6vgx69M24/0sTSQ2LI+DizAQBTW+Q2syDxnEJLtBEsum0unjUlF1RDx SMQMBVkdJ36qdCftlVpq213SiVU84iK8njdpE+6Lw3cJ7tg6TzbukvK/Z0slMqQ47e0z bAYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=oLbHlPnsvVuIuTbRmwbRhsZyhmObM5xmr+BkEzNrEpE=; b=E+lKauYNbq3tE4mQYLl48as/H3brELBNXPOEuETct58RrzXqhaqpQfLkk/wmxhmebZ 36cA9spo1u7bGgyv7G6SN9mGh7zZC4OaGmlsTIqTq/+HiRS7PvmScdEHliLto0w9sf+P 9Kns1ZvWVVBzaBdRLVbxFxPSIFupBkjs8PhiT/9lC1x4FMJ86/l98kbeninh5SHoidAX Z5mPlr8XexF00BVpU3522D98vHGExQiPC0Q8ccd/t3dvth7YFQn5VN9T9AUQlAWRP4c2 kERBK+nNHDHrbA/JLkTBz7MN7diJ0UILTUxFW+t6TPwrvvUxCcA3XRMthHjAoYWo4lBF Nk3A== 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 87-v6si6720526pfi.60.2018.07.22.06.59.02; Sun, 22 Jul 2018 06:59:17 -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 S1728881AbeGVOy6 (ORCPT + 99 others); Sun, 22 Jul 2018 10:54:58 -0400 Received: from mail02.asahi-net.or.jp ([202.224.55.14]:41431 "EHLO mail02.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728730AbeGVOy6 (ORCPT ); Sun, 22 Jul 2018 10:54:58 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail02.asahi-net.or.jp (Postfix) with ESMTPA id 58137F7F0E; Sun, 22 Jul 2018 22:58:08 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (ZM028236.ppp.dion.ne.jp [222.8.28.236]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id E2B2724006D; Sun, 22 Jul 2018 22:58:07 +0900 (JST) Date: Sun, 22 Jul 2018 22:58:07 +0900 Message-ID: <87in57fk40.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Will Deacon Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@kernel.org, linux-arm-kernel@lists.infradead.org, yamada.masahiro@socionext.com Subject: Re: [PATCH 1/9] h8300: Don't include linux/kernel.h in asm/atomic.h In-Reply-To: <1527159586-8578-2-git-send-email-will.deacon@arm.com> References: <1527159586-8578-1-git-send-email-will.deacon@arm.com> <1527159586-8578-2-git-send-email-will.deacon@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 May 2018 19:59:38 +0900, Will Deacon wrote: > > 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 > Sorry too late reply. Applied to h8300-next. Thanks. -- Yosinori Sato