From patchwork Mon Feb 26 15:04:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 129662 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp299593lja; Mon, 26 Feb 2018 07:05:14 -0800 (PST) X-Google-Smtp-Source: AG47ELtLRBm6BvXdXfpx9vMxwRQ50V2Rr7Szd5u+CTY1QmZijJ5Qa0Zb5kJG4PXQgdlFDo8l+QDx X-Received: by 10.98.198.146 with SMTP id x18mr7743936pfk.22.1519657514591; Mon, 26 Feb 2018 07:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519657514; cv=none; d=google.com; s=arc-20160816; b=vdWGd0KYsJc4Ej1+E+zLJzm327aUHCvCS6m4ZJL+t4E3NMzslQlxxheEByjZVyNvcQ avzvvn/SBX00jnBz3J2qRkPR0GQbBKdJOssd+vok3spJNriREce0tu4uEd23s5rcw6vZ KN36VjmzNZKFpeahqUXYWykgNJmH5lEnEaYrMlJcyyKujHfQ93yQnKpxm9qZyc+Ul2Nq a9FLvES/tV99O8CAToDB3SQgXfpZkNgW9BUplu6h5NMQS4Z2wUQTlL8tUcUvccyYJxa7 qtEi4EgCM9VjS6P1l0q8vmpUE/G8eY47EhgYyYZV9c82btTb6SOZL3EMLP9GTKNRRJvy v4CA== 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=AWG6ru/EiZsl0QIEny6D8izP9jhw7W/o2xZA474lXtQ=; b=ic4DgFxIXfJpovzkx5SEE/UPl8MFcQ0QvNaD9CftGAIlva6J7lZB4O/GSEp3Qjc2cM nVguLYNaolxyvGDrLlprIup9lKjP2xQDxwzCtD8nqQTPeXKW1TUPot4772JvrweXrmcp Ghc/ua9EwInEmyOwlLDJcr5vXHPQWHkwLw4IieD7hORH+dr4sAIpCK2kl8AglZdE84Hn CfZBJWN9C4N9vAgHEyYlxupMZdGtkBP3v7AfvkFMpNSL1Q2nw1t8Max2YdyfGPkSbT1e MxZI49f9geu+S8kxBw2OMo1sl/DfwXY393CUMfVRNEIa80/462xM2QyE5V4/dFzWEndT hBVw== 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 j5si1634647pgp.193.2018.02.26.07.05.14; Mon, 26 Feb 2018 07:05:14 -0800 (PST) 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 S1754116AbeBZPFL (ORCPT + 28 others); Mon, 26 Feb 2018 10:05:11 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51188 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753999AbeBZPFB (ORCPT ); Mon, 26 Feb 2018 10:05:01 -0500 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 E4E9716EA; Mon, 26 Feb 2018 07:05:00 -0800 (PST) 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 B79C33F7BD; Mon, 26 Feb 2018 07:05:00 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id D68A21AE53B0; Mon, 26 Feb 2018 15:05:01 +0000 (GMT) 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: [RFC PATCH v2 08/12] arm64: cmpxchg: Include build_bug.h instead of bug.h for BUILD_BUG Date: Mon, 26 Feb 2018 15:04:56 +0000 Message-Id: <1519657500-15094-9-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1519657500-15094-1-git-send-email-will.deacon@arm.com> References: <1519657500-15094-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 Having asm/cmpxchg.h pull in linux/bug.h is problematic because this ends up pulling in the atomic bitops which themselves may be built on top of atomic.h and cmpxchg.h. Instead, just include build_bug.h for the definition of BUILD_BUG. Signed-off-by: Will Deacon --- arch/arm64/include/asm/cmpxchg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/arch/arm64/include/asm/cmpxchg.h b/arch/arm64/include/asm/cmpxchg.h index ae852add053d..bc9e07bc6428 100644 --- a/arch/arm64/include/asm/cmpxchg.h +++ b/arch/arm64/include/asm/cmpxchg.h @@ -18,7 +18,7 @@ #ifndef __ASM_CMPXCHG_H #define __ASM_CMPXCHG_H -#include +#include #include #include