From: Jani Nikula <jani.nikula@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] agp/intel: Move intel_fake_agp_sizes into #ifdef block
Date: Mon, 23 Jan 2017 09:39:47 +0200 [thread overview]
Message-ID: <87efzu8bss.fsf@intel.com> (raw)
In-Reply-To: <20170121182233.30852-1-chris@chris-wilson.co.uk>
On Sat, 21 Jan 2017, Chris Wilson <chris@chris-wilson.co.uk> 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@chris-wilson.co.uk>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/char/agp/intel-gtt.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
> index 9702c78f458d..7fcc2a9d1d5a 100644
> --- a/drivers/char/agp/intel-gtt.c
> +++ b/drivers/char/agp/intel-gtt.c
> @@ -332,14 +332,6 @@ static void i810_write_entry(dma_addr_t addr, unsigned int entry,
> writel_relaxed(addr | pte_flags, intel_private.gtt + entry);
> }
>
> -static const struct aper_size_info_fixed intel_fake_agp_sizes[] = {
> - {32, 8192, 3},
> - {64, 16384, 4},
> - {128, 32768, 5},
> - {256, 65536, 6},
> - {512, 131072, 7},
> -};
> -
> static unsigned int intel_gtt_stolen_size(void)
> {
> u16 gmch_ctrl;
> @@ -670,6 +662,14 @@ static int intel_gtt_init(void)
> }
>
> #if IS_ENABLED(CONFIG_AGP_INTEL)
> +static const struct aper_size_info_fixed intel_fake_agp_sizes[] = {
> + {32, 8192, 3},
> + {64, 16384, 4},
> + {128, 32768, 5},
> + {256, 65536, 6},
> + {512, 131072, 7},
> +};
> +
> static int intel_fake_agp_fetch_size(void)
> {
> int num_sizes = ARRAY_SIZE(intel_fake_agp_sizes);
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-01-23 7:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-21 18:22 [PATCH] agp/intel: Move intel_fake_agp_sizes into #ifdef block Chris Wilson
2017-01-21 18:54 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-01-23 7:39 ` Jani Nikula [this message]
2017-01-23 8:06 ` [PATCH] " Joonas Lahtinen
2017-01-23 9:18 ` Chris Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efzu8bss.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.