From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stratos Karafotis Subject: Re: [PATCH 5/7] cpufreq: intel_pstate: Remove redundant includes Date: Tue, 10 Jun 2014 17:45:26 +0300 Message-ID: <53971A06.20906@semaphore.gr> References: <53962087.8000706@semaphore.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: 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 In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Viresh Kumar Cc: "Rafael J. Wysocki" , Dirk Brandewie , "linux-pm@vger.kernel.org" , LKML On 10/06/2014 08:29 =CF=80=CE=BC, Viresh Kumar wrote: > On 10 June 2014 02:30, Stratos Karafotis wrot= e: >> 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 >=20 > As a rule, header files for all the symbols directly used by a file m= ust > be included directly by the file and must not depend on indirect incl= usions. >=20 > So even if it compiles, its the wrong thing to do. Though you can obv= iously > remove the headers which aren't used. >=20 I didn't know this. I will drop this patch. I'm sorry for the noise. Thanks for your comments! Stratos