From patchwork Fri Jun 1 16:06:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 137546 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1127831lji; Fri, 1 Jun 2018 09:07:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLjrMDx3hBvWWYKEDQINQBqu/cLQaU+kawtHSZ6rcF9JMLZG0eq8zFafDlUQNl6e+LOsGVM X-Received: by 2002:a62:1656:: with SMTP id 83-v6mr11430616pfw.61.1527869241497; Fri, 01 Jun 2018 09:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527869241; cv=none; d=google.com; s=arc-20160816; b=kqbX9PLlgLaRe0CVAyZzWKhCRlDReXm+q7+uSYz8KpBAQ5KxW8uuiJ+VBJSzUDc2uO isr/p/z+helHbcgCYFnoEyizYwcQupCGpGo/RE7EwdWLkHEG/PS5SFbDQIlIzDOBc+eG klPsottRJ42E1KXriFKX2A1M1ncGMIejwgc77xfWEThNUDqbePUkji8B8pYZhohEgno/ VetsncaDbGAlGYl4yVyBUSZuTFYo6nfTLY1Mb8MwXNmbREnw7+0tQzZdhWPTcnY4sb0l /pYnBSS209pHs7awCi7IHRB7fsadlR2dIuZvrrPEYMLNZ6/MXXXLyeWrIPynoHZiM9UK XE6Q== 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=Cc8BEwAhVFO5E0uxxh5DaP653Zwr8wKoE8TAsag6eVg=; b=QCJnZj8RTEZ7nH8H9doVhL/RBb2KUb+J5pydpK7Ceffdvm6S2R/xu+gsFmWL/5Xzo/ hI66NJut95wy/XE83AVMz6h2xF5u+56idR2gEreXFMlfiaWlYuCxTgVfyd+DfpyqY5IM wx8YnSCLurb3hjmU6YzNg/j0US1MCFHsyIetBrM0ONk/NBD9QzO1K5cZw43yif2bSgCw dIo3f8iD88tpSNb5ladQhNv1c8RPlBIQ7N+vIsSHdMUzpb+fYpVxtyBzGki+9/QJ3wH8 /fpeYM5v5Fi0SzjDMQNq+TFnuplF7mQDB+5q8M6VF+z75gsQ24j0oogiIyt8DUns0pIk 6jCQ== 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.21; Fri, 01 Jun 2018 09:07:21 -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 S1753367AbeFAQHS (ORCPT + 30 others); Fri, 1 Jun 2018 12:07:18 -0400 Received: from foss.arm.com ([217.140.101.70]:55022 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308AbeFAQGA (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 9EB4E165D; 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 70E2D3F557; Fri, 1 Jun 2018 09:06:00 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 606431AE514F; 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 5/9] sh: Don't pull in all of linux/bitops.h in asm/cmpxchg-xchg.h Date: Fri, 1 Jun 2018 17:06:25 +0100 Message-Id: <1527869189-31512-6-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 sh implementation of asm/cmpxchg-xchg.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/sh/include/asm/cmpxchg-xchg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.1.4 diff --git a/arch/sh/include/asm/cmpxchg-xchg.h b/arch/sh/include/asm/cmpxchg-xchg.h index 1e881f5db659..593a9704782b 100644 --- a/arch/sh/include/asm/cmpxchg-xchg.h +++ b/arch/sh/include/asm/cmpxchg-xchg.h @@ -8,7 +8,8 @@ * This work is licensed under the terms of the GNU GPL, version 2. See the * file "COPYING" in the main directory of this archive for more details. */ -#include +#include +#include #include /*