From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbcBVJwf (ORCPT ); Mon, 22 Feb 2016 04:52:35 -0500 Received: from foss.arm.com ([217.140.101.70]:55377 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751021AbcBVJwe (ORCPT ); Mon, 22 Feb 2016 04:52:34 -0500 Date: Mon, 22 Feb 2016 09:52:05 +0000 From: Will Deacon To: "Shi, Yang" Cc: catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org Subject: Re: [PATCH] arm64: remove redundant preempt.h Message-ID: <20160222095205.GA31168@arm.com> References: <1455299803-317-1-git-send-email-yang.shi@linaro.org> <56C7AE26.1060407@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56C7AE26.1060407@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 19, 2016 at 04:07:02PM -0800, Shi, Yang wrote: > Any comment on this one? I don't really see the point in it, to be honest. Relying on implicit #includes is usually a bad idea, there are other files in the kernel including both of these headers and there's not actually a problem to fix as far as I can tell. Will > On 2/12/2016 9:56 AM, Yang Shi wrote: > >preempt.h has been included by sched.h, so it is not necessary to include > >both, just keep sched.h. > > > >Signed-off-by: Yang Shi > >--- > >Happened to find this when checking preempt.h include for another patch review. > >Build test is passed with and without CONFIG_PREEMPT enabled. > > > > arch/arm64/kernel/cpuinfo.c | 1 - > > 1 file changed, 1 deletion(-) > > > >diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c > >index 212ae63..e2b37ff 100644 > >--- a/arch/arm64/kernel/cpuinfo.c > >+++ b/arch/arm64/kernel/cpuinfo.c > >@@ -25,7 +25,6 @@ > > #include > > #include > > #include > >-#include > > #include > > #include > > #include > > >