From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralf Baechle Subject: Re: [Linux-fbdev-devel] [PATCH 3/3] drivers/video: Correct use of request_region/request_mem_region Date: Mon, 12 Oct 2009 02:29:07 +0200 Message-ID: <20091012002907.GA835@linux-mips.org> References: <10f740e80908090224p13d2119do9e4f4d7730ed001e@mail.gmail.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-Id: Cc: Geert Uytterhoeven , linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-mips@linux-mips.org On Sun, Aug 09, 2009 at 11:42:32AM +0200, Julia Lawall wrote: > From: Julia Lawall > > 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/) > > // > @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) > // > > Signed-off-by: Julia Lawall Any reason this still hasn't been applied? Ralf