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: 128497 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2021634ljc; Thu, 15 Feb 2018 10:01:57 -0800 (PST) X-Google-Smtp-Source: AH8x227204iThAjH6fw/hUwsauIggSVlpa6ZDA3V/aGfK3NJq0iZwiKqw+uk0qFSYkQos5YJPECy X-Received: by 10.101.100.87 with SMTP id s23mr2873495pgv.413.1518717717575; Thu, 15 Feb 2018 10:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518717717; cv=none; d=google.com; s=arc-20160816; b=qn4Uxvst4LsdntK34TuQw/pHInYSDBob2zwQJoePHT8qUxwQylnIeKyfOR7D4rgZUz 0aCogyxXetBJLcsnCJaa22cZSZcmrFSTO8zJh+pVMIaV3psQu2F+IoKN52t0NatLBCgy zgqkYSpeSgm6SzZVyiomEntWkTrtBGPBwggRJkdvqa9IoYr02p0GnneZQCGhsJNGoAnW 4pbU40KRim63r/NpWIu9MaoH2hZiMEZXISMKzWJ0CWNmD+y4kYu/6xNZbi4x5MCIhvuv Zw5MjJe/HZoEAvD/3r2bmFNo8BfEKQpv0wcroCp7pmoZ/FPBp2IZMFFXVsjXAy4tJBda rErw== 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=Ff00QHp/6aMOsqR2NVb1BLj3eeLDi/3C3oRkWuAgAEw=; b=rXjNuKxXCbMCJBmunyMHShv1gzWCvKdaYYVEzkEyKihO1B7W6z0rFrptaa85Rr7q/Z gtNR4sdtI4rbGUgvW+WVzJM6hpNB07TajGdJ62AuaAq/Gw6629G+zyBgG8lmwg083C1l m6aJ6dtFkXfrI1pBvtK5ZkRClpLiOYbpwzl+vyyRpNmZ0iou8VcE6N2G4LMYji4jYi6Y JLNgGu5Q2omzFUUJcTwEBbCoVval+JLJdb99sT0+1MSW1q1yai5j5UxjIvIibzRdoTTn Wv9pAEHv+XAU+T6XyyDU1pf+yhDmRrkmz5VWRykSDtxUAvb+c0YNkW+vZal4OGXv5dw9 jOLw== 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 c41-v6si224758plj.682.2018.02.15.10.01.52; Thu, 15 Feb 2018 10:01:57 -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 S1165873AbeBOR4F (ORCPT + 28 others); 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 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 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 Precedence: bulk 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(-) -- 2.1.4 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