From patchwork Thu May 24 10:59:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 136732 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2039424lji; Thu, 24 May 2018 03:59:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplnGWksdjCZhJ7wpyPygC1bSyAbnuEzR5XYRDDDFD6qOMnrM2MqRAEOm/ZTP4f+z9XEIpQ X-Received: by 2002:a62:9c0d:: with SMTP id f13-v6mr6666781pfe.15.1527159571399; Thu, 24 May 2018 03:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159571; cv=none; d=google.com; s=arc-20160816; b=OpF+5B6oEHYxg0qXSeGXEK3rUdSEx66vLzbQ18r+cQtqFizs1YCm5wYjh9gTvaw8bg Lr7mKsUc00kGuCqwjSdnZUHuCAV324RvKB6Gf7bEVqDDKGGePb+Ouza5fxCaBORxSsJD 6WLqZmqZHJC475jYxoOMOXfm9SgQ6FICR8wSoTj9vCYQa0mWUlF7P8ENlXDefcAZzp8j /A4qK+41J6x5ck2O76aZOXfLtkjR3UvhpaKqE//FzJE8nfJkb8kz7TsHhdwL4VAsljL6 3x2cFR6KgV7DcD7hl+/2P65tJcVsH5SS55yh6ZLpEJkif94pB7b27lplcwPupM2LfScW /OaA== 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=xXZM+SI2dlCVbKrYLzQGoyA6pW2OyLL1pq3eXR+nMv8=; b=g3hqJ//Yvnt2ILTqbj1fbTJugHO9i6aPDHZOY2CeJdiWOstmLoyHtpz25qrO+RXf1p loAl8d0LFSn6ERuLPutMMvnjYpHDt3WNRF3YZc34kFNe6XKoIo16KclWNL00nMSLN7fu L4uVrSYbQ7kItJC/F0RlBl1h5HQy91uB0V8p6IXxA7mdPVgu8HABfRuUpFSYdYClvwcM hO+sHWE2fqUddF8qcllW4bs3TcL29IMJtvdyMTfaRdYJqjlhjoxC4K7rS8FFQgyUr7x2 iyYwHVCykWyB6B0N1WvC1QFKaMmOxChEro4ufJgUhw6Ms4kvBJzN1ZRtGoF+8vRRyb4J KTGQ== 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 d9-v6si16344978pga.192.2018.05.24.03.59.31; Thu, 24 May 2018 03:59:31 -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 S1032748AbeEXK73 (ORCPT + 30 others); Thu, 24 May 2018 06:59:29 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40958 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030373AbeEXK7U (ORCPT ); Thu, 24 May 2018 06:59:20 -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 B5AF3168F; 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 865603F25D; Thu, 24 May 2018 03:59:19 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 83CEC1AE386A; 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 Subject: [PATCH 4/9] openrisc: Don't pull in all of linux/bitops.h in asm/cmpxchg.h Date: Thu, 24 May 2018 11:59:41 +0100 Message-Id: <1527159586-8578-5-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 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 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