Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751426AbaFJOpd (ORCPT ); Tue, 10 Jun 2014 10:45:33 -0400 Received: from sema.semaphore.gr ([78.46.194.137]:57268 "EHLO sema.semaphore.gr" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750800AbaFJOpb (ORCPT ); Tue, 10 Jun 2014 10:45:31 -0400 Message-ID: <53971A06.20906@semaphore.gr> Date: Tue, 10 Jun 2014 17:45:26 +0300 From: Stratos Karafotis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Viresh Kumar CC: "Rafael J. Wysocki" , Dirk Brandewie , "linux-pm@vger.kernel.org" , LKML Subject: Re: [PATCH 5/7] cpufreq: intel_pstate: Remove redundant includes References: <53962087.8000706@semaphore.gr> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/06/2014 08:29 πμ, Viresh Kumar wrote: > On 10 June 2014 02:30, Stratos Karafotis wrote: >> Also put them in alphabetical order. >> >> Signed-off-by: Stratos Karafotis >> --- >> drivers/cpufreq/intel_pstate.c | 17 ++--------------- >> 1 file changed, 2 insertions(+), 15 deletions(-) >> >> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c >> index 26a0262..d4f0518 100644 >> --- a/drivers/cpufreq/intel_pstate.c >> +++ b/drivers/cpufreq/intel_pstate.c >> @@ -10,26 +10,13 @@ >> * of the License. >> */ >> >> -#include >> -#include >> -#include >> -#include >> -#include >> -#include >> -#include >> -#include >> -#include >> +#include >> #include >> #include >> -#include >> -#include >> -#include >> #include >> -#include >> +#include >> #include >> >> -#include >> -#include >> #include > > As a rule, header files for all the symbols directly used by a file must > be included directly by the file and must not depend on indirect inclusions. > > So even if it compiles, its the wrong thing to do. Though you can obviously > remove the headers which aren't used. > I didn't know this. I will drop this patch. I'm sorry for the noise. Thanks for your comments! Stratos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/