From patchwork Tue Jun 19 12:53:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 139119 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5172980lji; Tue, 19 Jun 2018 05:55:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLdqfQA0EViw+6mvCuCGWB6tPt5FG7SH5aRKT46G7hl41onguV3uoatr4rbfE2XCI1GDqwk X-Received: by 2002:a65:5106:: with SMTP id f6-v6mr14664601pgq.122.1529412952420; Tue, 19 Jun 2018 05:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529412952; cv=none; d=google.com; s=arc-20160816; b=e0ges7hf8lmaIfB68kv7kcVUylJE0HjFlKbbeb5oKWFDtOQijd03bJF9mo0q7/ZH1k I4auvl5zxmwsncWCiJurPxUBsR/mVRIdLet7IBD4SxXehtb1kznrCgp4hTj3xnD+rcOY 2Ehre9ih8OLjbKHgeNsJUuyPXQv5SPr5oJ1dkdV90bYLySXfTauwfO9ZSx3bxybqRjAk eWNnHRm4JbyTQrQ+4A7yAzWvS0Eggsnpecq59uWUtuTOMZyblPe9SFVL0x11atnhW1Xw aO9f3MErixG6BAv3gy9iujCUtLBW4BNVHSX/NO0UXwJln/Trv3HeS1LPERUKRhc67wb6 oixA== 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=MHzLHwvig5B8V93F16//D3CklXT6WamK7UYUHkz7Yxg=; b=bQjLo+iii+ThDUHYmn9p8qDuisGpZosnX/77/seEn+gITB9NiynixCpx8MY67C0hg1 cfuoP6Ym0EFv8QZ99San8KJCC+sBHUzKF/JXONONS7q+ZUbI69hm8Jk3AHjVtIbn/I6x ZMNOti8DP3qn1DUe/KaZkFdIWUPUd0k+PvcBqiWsARjkMn/4oazQi93VEoCcimN6UaMa Uz8niBH69eO1gzIneTsP0mKaLXo3dabP3T9ayRiXN7w0FBFRrGkhwGe4Q9rXnluL3vEf /oP+B9osqZtZ48D/62zy2Zl9uS6qa24u/GYfLlPQGbnBNPGuUjR5Ev9r6y0j8UfRPDYR 04Tw== 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 y20-v6si17620224plp.267.2018.06.19.05.55.52; Tue, 19 Jun 2018 05:55:52 -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 S937960AbeFSMzs (ORCPT + 30 others); Tue, 19 Jun 2018 08:55:48 -0400 Received: from foss.arm.com ([217.140.101.70]:49326 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937853AbeFSMwk (ORCPT ); Tue, 19 Jun 2018 08:52:40 -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 58EA8164F; Tue, 19 Jun 2018 05:52:40 -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 2B1AD3F59C; Tue, 19 Jun 2018 05:52:40 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id BA4381AE3692; Tue, 19 Jun 2018 13:53:15 +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 Subject: [RESEND PATCH v2 4/9] openrisc: Don't pull in all of linux/bitops.h in asm/cmpxchg.h Date: Tue, 19 Jun 2018 13:53:09 +0100 Message-Id: <1529412794-17720-5-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1529412794-17720-1-git-send-email-will.deacon@arm.com> References: <1529412794-17720-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 The openrisc implementation of asm/cmpxchg.h pulls in linux/bitops.h so that it can refer to BITS_PER_BYTE. It also transitively relies on this pulling in linux/compiler.h for READ_ONCE(). Replace the #include with linux/bits.h and linux/compiler.h Acked-by: Peter Zijlstra (Intel) Signed-off-by: Will Deacon --- arch/openrisc/include/asm/cmpxchg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.1.4 diff --git a/arch/openrisc/include/asm/cmpxchg.h b/arch/openrisc/include/asm/cmpxchg.h index d29f7db53906..f9cd43a39d72 100644 --- a/arch/openrisc/include/asm/cmpxchg.h +++ b/arch/openrisc/include/asm/cmpxchg.h @@ -16,8 +16,9 @@ #ifndef __ASM_OPENRISC_CMPXCHG_H #define __ASM_OPENRISC_CMPXCHG_H +#include +#include #include -#include #define __HAVE_ARCH_CMPXCHG 1