From: Daniel Vetter Subject: Re: [PATCH 34.3/71] x86/gpu: Sprinkle const, __init and __initconst to stolen memory quirks Date: Mon, 12 May 2014 19:42:20 +0200 Message-ID: <20140512174220.GA25056@phenom.ffwll.local> References: <874n102kwb.fsf@intel.com> <1399576782-15256-1-git-send-email-ville.syrjala@linux.intel.com> <1399576782-15256-3-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by gabe.freedesktop.org (Postfix) with ESMTP id A72C86E70E for ; Mon, 12 May 2014 10:42:24 -0700 (PDT) Received: by mail-ee0-f51.google.com with SMTP id e51so4930288eek.24 for ; Mon, 12 May 2014 10:42:23 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1399576782-15256-3-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org, Ingo Molnar , "H. Peter Anvin" List-Id: intel-gfx@lists.freedesktop.org On Thu, May 08, 2014 at 10:19:42PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > gen8_stolen_size() is missing __init, so add it. > = > Also all the intel_stolen_funcs structures can be marked > __initconst. > = > intel_stolen_ids[] can also be made const if we replace the > __initdata with __initconst. > = > Cc: Ingo Molnar > Cc: H. Peter Anvin > Signed-off-by: Ville Syrj=E4l=E4 All three patches in the chv stolen reservation series merged to drm-intel-next queue, thanks. -Daniel > --- > arch/x86/kernel/early-quirks.c | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > = > diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirk= s.c > index 8323575..f96098f 100644 > --- a/arch/x86/kernel/early-quirks.c > +++ b/arch/x86/kernel/early-quirks.c > @@ -418,7 +418,7 @@ static size_t __init gen6_stolen_size(int num, int sl= ot, int func) > return gmch_ctrl << 25; /* 32 MB units */ > } > = > -static size_t gen8_stolen_size(int num, int slot, int func) > +static size_t __init gen8_stolen_size(int num, int slot, int func) > { > u16 gmch_ctrl; > = > @@ -454,47 +454,47 @@ struct intel_stolen_funcs { > u32 (*base)(int num, int slot, int func, size_t size); > }; > = > -static const struct intel_stolen_funcs i830_stolen_funcs =3D { > +static const struct intel_stolen_funcs i830_stolen_funcs __initconst =3D= { > .base =3D i830_stolen_base, > .size =3D i830_stolen_size, > }; > = > -static const struct intel_stolen_funcs i845_stolen_funcs =3D { > +static const struct intel_stolen_funcs i845_stolen_funcs __initconst =3D= { > .base =3D i845_stolen_base, > .size =3D i830_stolen_size, > }; > = > -static const struct intel_stolen_funcs i85x_stolen_funcs =3D { > +static const struct intel_stolen_funcs i85x_stolen_funcs __initconst =3D= { > .base =3D i85x_stolen_base, > .size =3D gen3_stolen_size, > }; > = > -static const struct intel_stolen_funcs i865_stolen_funcs =3D { > +static const struct intel_stolen_funcs i865_stolen_funcs __initconst =3D= { > .base =3D i865_stolen_base, > .size =3D gen3_stolen_size, > }; > = > -static const struct intel_stolen_funcs gen3_stolen_funcs =3D { > +static const struct intel_stolen_funcs gen3_stolen_funcs __initconst =3D= { > .base =3D intel_stolen_base, > .size =3D gen3_stolen_size, > }; > = > -static const struct intel_stolen_funcs gen6_stolen_funcs =3D { > +static const struct intel_stolen_funcs gen6_stolen_funcs __initconst =3D= { > .base =3D intel_stolen_base, > .size =3D gen6_stolen_size, > }; > = > -static const struct intel_stolen_funcs gen8_stolen_funcs =3D { > +static const struct intel_stolen_funcs gen8_stolen_funcs __initconst =3D= { > .base =3D intel_stolen_base, > .size =3D gen8_stolen_size, > }; > = > -static const struct intel_stolen_funcs chv_stolen_funcs =3D { > +static const struct intel_stolen_funcs chv_stolen_funcs __initconst =3D { > .base =3D intel_stolen_base, > .size =3D chv_stolen_size, > }; > = > -static struct pci_device_id intel_stolen_ids[] __initdata =3D { > +static const struct pci_device_id intel_stolen_ids[] __initconst =3D { > INTEL_I830_IDS(&i830_stolen_funcs), > INTEL_I845G_IDS(&i845_stolen_funcs), > INTEL_I85X_IDS(&i85x_stolen_funcs), > -- = > 1.8.3.2 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch