[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1303281718490.1928@hadrien>
Date: Thu, 28 Mar 2013 17:19:59 +0100 (CET)
From: Julia Lawall <julia.lawall@...6.fr>
To: Jesse Barnes <jbarnes@...tuousgeek.org>
cc: "Luis R. Rodriguez" <mcgrof@...not-panic.com>,
FlorianSchandinat@....de, linux-fbdev@...r.kernel.org,
dri-devel@...ts.freedesktop.org, backports@...r.kernel.org,
cocci@...teme.lip6.fr, linux-kernel@...r.kernel.org,
julia.lawall@...6.fr, rodrigo.vivi@...il.com,
daniel.vetter@...ll.ch, rafael.j.wysocki@...el.com
Subject: Re: [PATCH] compat/compat-drivers/linux-next: fb skip_vt_switch
On Thu, 28 Mar 2013, Jesse Barnes wrote:
> On Thu, 28 Mar 2013 05:04:26 -0700
> "Luis R. Rodriguez" <mcgrof@...not-panic.com> wrote:
>
> > The new commit by Jesse that extended the fb_info with a skip_vt_switch
> > element is the simplest example of a data structure expansion. We'd backport
> > this by adding a static inline to compat so that new kernels muck with the
> > new element and for older kernels this would be a no-op. This reduces the
> > size of the backport and unclutters the required patch with #idefs, and
> > insteads leaves only a replacement of the usage of the new elements with
> > a static inline, this however would still be required on our end:
> >
> > - info->skip_vt_switch = true;
> > + fb_enable_skip_vt_switch(info);
> >
> > So we'd then have to just add this static inline change for each new driver...
> > There may be a way to get SmPL to do this for us...
@@
type of info *info;
@@
- info->skip_vt_switch = true;
+ fb_enable_skip_vt_switch(info);
for whatever the type of info is.
Then I guess there would be a similar rule for the false case?
julia
>
> Yeah I'm not attached to the direct structure reference; a couple of
> inlines are just as easy to read. So no argument from me.
>
> Thanks,
> --
> Jesse Barnes, Intel Open Source Technology Center
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists