| To: | Julia Lawall <julia@diku.dk> |
|---|---|
| Subject: | Re: [Linux-fbdev-devel] [PATCH 3/3] drivers/video: Correct use of request_region/request_mem_region |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Mon, 12 Oct 2009 02:29:07 +0200 |
| Cc: | Geert Uytterhoeven <geert.uytterhoeven@gmail.com>, linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-mips@linux-mips.org |
| In-reply-to: | <Pine.LNX.4.64.0908091141150.13271@ask.diku.dk> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <Pine.LNX.4.64.0908090943560.13271@ask.diku.dk> <10f740e80908090224p13d2119do9e4f4d7730ed001e@mail.gmail.com> <Pine.LNX.4.64.0908091141150.13271@ask.diku.dk> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.19 (2009-01-05) |
On Sun, Aug 09, 2009 at 11:42:32AM +0200, Julia Lawall wrote: > From: Julia Lawall <julia@diku.dk> > > request_region should be used with release_region, not request_mem_region. > > Geert Uytterhoeven pointed out that in the case of drivers/video/gbefb.c, > the problem is actually the other way around; request_mem_region should be > used instead of request_region. > > The semantic patch that finds/fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // <smpl> > @r1@ > expression start; > @@ > > request_region(start,...) > > @b1@ > expression r1.start; > @@ > > request_mem_region(start,...) > > @depends on !b1@ > expression r1.start; > expression E; > @@ > > - release_mem_region > + release_region > (start,E) > // </smpl> > > Signed-off-by: Julia Lawall <julia@diku.dk> Any reason this still hasn't been applied? Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2/2] bcm63xx: only set the proper GPIO overlay settings, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH -v1] MIPS: add support for gzip/bzip2/lzma compressed kernel images, Ralf Baechle |
| Previous by Thread: | Re: [PATCH 2/2] bcm63xx: only set the proper GPIO overlay settings, Ralf Baechle |
| Next by Thread: | Re: [Linux-fbdev-devel] [PATCH 3/3] drivers/video: Correct use of request_region/request_mem_region, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |