From: Ben Dooks <ben@simtec.co.uk>
To: Andres Salomon <dilinger@collabora.co.uk>
Cc: linux-kernel@vger.kernel.org,
Vincent Sanders <vince@simtec.co.uk>,
Simtec Linux Team <linux@simtec.co.uk>,
akpm@linux-foundation.org, krzysztof.h1@wp.pl,
lethal@linux-sh.org
Subject: Re: SM501: Fix missing uses of resource_size()
Date: Tue, 10 Nov 2009 23:12:33 +0000 [thread overview]
Message-ID: <20091110231233.GI20341@fluff.org.uk> (raw)
In-Reply-To: <20091110131536.427b5caf@mycelium.queued.net>
On Tue, Nov 10, 2009 at 01:15:36PM -0500, Andres Salomon wrote:
> On Tue, 10 Nov 2009 17:17:34 +0000
> Ben Dooks <ben@simtec.co.uk> wrote:
>
> > There are several places in the SM501 fb driver that could do with
> > using resource_size() to calculate the size of a resource.
> >
>
> Yes, please! Also, as Thiago suggested, please submit this inline.
My mailer shows it in line. using quilt mail to send, and it says
that the content has been inlined.
> [...]
> > @@ -1363,7 +1363,7 @@ static int sm501fb_start(struct sm501fb_
> > }
> >
> > info->fbmem_res = request_mem_region(res->start,
> > - (res->end -
> > res->start)+1,
> > + resource_size(res),
> > pdev->name);
> > if (info->fbmem_res == NULL) {
> > dev_err(dev, "cannot claim framebuffer\n");
> > @@ -1377,7 +1377,7 @@ static int sm501fb_start(struct sm501fb_
>
> Looks like you missed one here; the ioremap on line 1374 should also
> use resource_size.
thanks, fixed.
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
prev parent reply other threads:[~2009-11-10 23:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 17:17 SM501: Fix missing uses of resource_size() Ben Dooks
2009-11-10 17:36 ` Thiago Farina
2009-11-10 23:11 ` Ben Dooks
2009-11-10 18:15 ` Andres Salomon
2009-11-10 23:12 ` Ben Dooks [this message]
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=20091110231233.GI20341@fluff.org.uk \
--to=ben@simtec.co.uk \
--cc=akpm@linux-foundation.org \
--cc=dilinger@collabora.co.uk \
--cc=krzysztof.h1@wp.pl \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@simtec.co.uk \
--cc=vince@simtec.co.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox