From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165873AbeBOR4F (ORCPT ); Thu, 15 Feb 2018 12:56:05 -0500 Received: from foss.arm.com ([217.140.101.70]:55978 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164181AbeBOPaO (ORCPT ); Thu, 15 Feb 2018 10:30:14 -0500 From: Will Deacon To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, peterz@infradead.org, mingo@kernel.org, Will Deacon 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.1.4