[Intel-gfx] [PATCH] agp/intel: Move intel_fake_agp_sizes into #ifdef block
Chris Wilson
chris at chris-wilson.co.uk
Mon Jan 23 09:18:32 UTC 2017
On Mon, Jan 23, 2017 at 10:06:15AM +0200, Joonas Lahtinen wrote:
> On la, 2017-01-21 at 18:22 +0000, Chris Wilson wrote:
> > Move the intel_fake_agp_sizes array into the same #ifdef block as it is
> > used to avoid instantiation when not used, and so triggering a compiler
> > warning
> >
> > drivers/char/agp/intel-gtt.c:335:42: warning: ‘intel_fake_agp_sizes’
> > defined but not used [-Wunused-const-variable=]
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
>
> Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Applied, thanks for the review.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list