From patchwork Thu Feb 15 15:29:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 10221765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5BA66601D7 for ; Thu, 15 Feb 2018 15:33:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DB65283AE for ; Thu, 15 Feb 2018 15:33:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 407E529411; Thu, 15 Feb 2018 15:33:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5F9EE283AE for ; Thu, 15 Feb 2018 15:33:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Ydvghvu8JKRcOe0cuRLaad+gFnaUH5/17Oczs+5xmzc=; b=BzC1Cxa/q98nyqNj1Ovz8FJq0N HZzHtqjFwFkfxZ+mTMfIn59Fxh8JAXmylK0JXH+HMt+RKB+/rn5xhEciXDUoIbaofw5Aew6Rsc5Ty 21MSLoqfrOcIEOzG33J6l8gHXQWx47/ZeMrtI881W4Fe2e4D8yzvcpxqJUXoqwG0qwtc13v2/IEHQ b9uSzkzmD6Zzu4D6393FOxYJwkKnzynzDHD/2JLCXAvksznfn92vuL+JvaOk7KMOMcH7/lCHRzMBT 1YBe58bHI9o7orKu6qmIKhXeaR9oFZUQ79T3wErKEl2SO+saBP2wMsMo2yYTqDCqKXgptPQM6e8sN PoYgP8Zg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emLX2-000462-2T; Thu, 15 Feb 2018 15:33:08 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emLUO-00028Z-Dw for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2018 15:30:31 +0000 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 5B5B315BF; Thu, 15 Feb 2018 07:30:14 -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 2D6D43F5C0; Thu, 15 Feb 2018 07:30:14 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 8CB801AE5468; Thu, 15 Feb 2018 15:30:21 +0000 (GMT) From: Will Deacon To: linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/5] asm-generic: Avoid including linux/kernel.h in asm-generic/bug.h Date: Thu, 15 Feb 2018 15:29:32 +0000 Message-Id: <1518708575-12284-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1518708575-12284-1-git-send-email-will.deacon@arm.com> References: <1518708575-12284-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180215_073024_551791_EA84EAC1 X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peterz@infradead.org, Will Deacon , mingo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP asm-generic/bug.h unnecessarily includes linux/kernel.h whereas it can get away with linux/types.h instead. lib/errseq.c relies on this transitive include, so update it to include linux/kernel.h instead. Signed-off-by: Will Deacon --- include/asm-generic/bug.h | 2 +- lib/errseq.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 963b755d19b0..ffda1247f639 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -15,7 +15,7 @@ #endif #ifndef __ASSEMBLY__ -#include +#include #ifdef CONFIG_BUG diff --git a/lib/errseq.c b/lib/errseq.c index df782418b333..ef3b10516eab 100644 --- a/lib/errseq.c +++ b/lib/errseq.c @@ -3,6 +3,7 @@ #include #include #include +#include /* * An errseq_t is a way of recording errors in one place, and allowing any