From patchwork Fri Jun 1 16:06:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 137547 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1127924lji; Fri, 1 Jun 2018 09:07:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK1oxtdtae4kqVnFgCpJX4piRdV7TIrJx/KsIqrpBz+nkKAGCX0ZeJbWSPD/wUEpkaSArEV X-Received: by 2002:a65:4081:: with SMTP id t1-v6mr9625176pgp.32.1527869245708; Fri, 01 Jun 2018 09:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527869245; cv=none; d=google.com; s=arc-20160816; b=oVHJvlDXK6A+xJoWN/muKfE8oCtSjCq37J4lS7cjzJ7ufunuF+IhJzH9Gsf6g9g8Yn PNTvDLzYTvkqAN2ZUDNMvG61NC30GrZV8QgUih/iEE0EPynFeCUpfYT0F7K6qRGgPP1N 7PJRzdB/klKL5ta6Tx8Ju/UR7Yuj9C+cDpQO47EQ3uN8vXTi96EXql13r4rTXI4sm0kS yfmeyobQmL7LbvYSKOqvpcmN78LUQ22CRsHWGvkK4dQ7/1FHnklB9yi15nooYgV6qEKn 78f1Ze0+Hm4g745//wDYS5Sno3koASa4o6w9ErK8xPd4kLcMPUUijFuGW3b7OQyjmBzJ 74Ug== 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=F//Wwvpv897Pp3Ee531w+IzEbaF7nw9Sa5VrG8bfp5TclLkMXUZsoL5v7o6oyaudHb GiOPIccw+reIKuYwwtvtjilNuICWzMiiHXeNjWOprffTjNfsgRu9xxZd8WKG4fkjDJkE S4+BwunwgcvpQlWZH2NTRu08z+OcciVNxmMyrwJ9kLF0CE6dg4t+jb6jM15+N5iqM5RT 9KncALjOgiZz+dbx/f25D007ZLExGeAubmQdzV1L1b4RF2H+7V4jGZGhgsU1/JNR9EuJ mmiSHOkjiM1bvumBUQQ96vSUroYHBnbolfyVZSdR+PUWzLFyqlGLuSojefxvDEUeXBCK rdSA== 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 b7-v6si9712327pgq.564.2018.06.01.09.07.25; Fri, 01 Jun 2018 09:07:25 -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 S1753389AbeFAQHW (ORCPT + 30 others); Fri, 1 Jun 2018 12:07:22 -0400 Received: from foss.arm.com ([217.140.101.70]:54988 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbeFAQGA (ORCPT ); Fri, 1 Jun 2018 12:06:00 -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 029A21650; Fri, 1 Jun 2018 09:06:00 -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 C8F063F59F; Fri, 1 Jun 2018 09:05:59 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 5223B1AE50C7; Fri, 1 Jun 2018 17:06:30 +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 v2 4/9] openrisc: Don't pull in all of linux/bitops.h in asm/cmpxchg.h Date: Fri, 1 Jun 2018 17:06:24 +0100 Message-Id: <1527869189-31512-5-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1527869189-31512-1-git-send-email-will.deacon@arm.com> References: <1527869189-31512-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