From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Thu, 26 Feb 2015 18:23:07 +0000 Subject: [PATCH v2] drivers: cpuidle: cpuidle-arm64: include asm/proc-fns.h explicitly In-Reply-To: <20150225131140.GC12377@arm.com> Message-ID: <20150226182307.GD17949@e104818-lin.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Feb 25, 2015 at 01:11:40PM +0000, Will Deacon wrote: > On Wed, Feb 25, 2015 at 12:59:42PM +0000, Lorenzo Pieralisi wrote: > > ARM64 CPUidle driver requires the cpu_do_idle function so that it can > > be used to enter the shallowest idle state, and it is declared in > > asm/proc-fns.h. > > > > The current ARM64 CPUidle driver does not include asm/proc-fns.h > > explicitly and it has so far relied on implicit inclusion from other > > header files. > > > > Owing to some header dependencies reshuffling this currently triggers > > build failures when CONFIG_ARM64_64K_PAGES=y: > > > > drivers/cpuidle/cpuidle-arm64.c: In function "arm64_enter_idle_state" > > drivers/cpuidle/cpuidle-arm64.c:42:3: error: implicit declaration of > > function "cpu_do_idle" [-Werror=implicit-function-declaration] > > cpu_do_idle(); > > ^ > > > > This patch adds the explicit inclusion of the asm/proc-fns.h header file > > to fix the build breakage and stop relying on implicit asm/proc-fns.h > > inclusion. > > > > Signed-off-by: Laura Abbott > > [lp: rewrote commit log] > > Signed-off-by: Lorenzo Pieralisi > > Tested-by: Mark Rutland > > --- > > v2 changes: > > Acked-by: Will Deacon > > Catalin will pick this up for -rc2, I suspect. I can merge this as long as Daniel or Rafael are fine with it. > > - Picked up > > http://lists.infradead.org/pipermail/linux-arm-kernel/2015-February/325523.html > > - Rebased against 4.0-rc1 and rewrote commit log > > > > drivers/cpuidle/cpuidle-arm64.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/cpuidle/cpuidle-arm64.c b/drivers/cpuidle/cpuidle-arm64.c > > index 39a2c62..c8bb6c5 100644 > > --- a/drivers/cpuidle/cpuidle-arm64.c > > +++ b/drivers/cpuidle/cpuidle-arm64.c > > @@ -19,6 +19,7 @@ > > #include > > > > #include > > +#include > > > > #include "dt_idle_states.h" > >