From: "Jesper Juhl" <jesper.juhl@gmail.com>
To: "Daniel Walker" <dwalker@mvista.com>
Cc: akpm@osdl.org, alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -mm] updated idetape gcc 4.1 warning fix
Date: Fri, 12 May 2006 13:48:48 +0200 [thread overview]
Message-ID: <9a8748490605120448i506ca5b9ra428bb460f0e94d0@mail.gmail.com> (raw)
In-Reply-To: <200605101759.k4AHxhUI005075@dwalker1.mvista.com>
On 5/10/06, Daniel Walker <dwalker@mvista.com> wrote:
> I added returns for failures .. I would hope that this doesn't break anything in
> userspace , but I'll confess that I have no way to determin that for certain .
>
> Hows that Alan?
>
> Fixes the following warning,
>
> drivers/ide/ide-tape.c: In function 'idetape_copy_stage_from_user':
> drivers/ide/ide-tape.c:2662: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result
> drivers/ide/ide-tape.c: In function 'idetape_copy_stage_to_user':
> drivers/ide/ide-tape.c:2689: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result
>
I've been down the road of trying to fix that code as well a while back.
Although my patches had flaws and didn't go in, perhaps your current
attempt could bennefit by looking at what I tried to do back then and
the feedback I recieved, so I thought I'd point them out to you.
Take a look at the two threads named "[PATCH] ide-tape: attempt to
handle copy_*_user() failures" and "[PATCH] ide-tape: attempt to
handle copy_*_user() failures [take two]"
Here's a link to them in the archives :
http://marc.theaimsgroup.com/?t=113796611500003&r=1&w=2
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
next prev parent reply other threads:[~2006-05-12 11:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-10 17:59 Daniel Walker
2006-05-12 11:48 ` Jesper Juhl [this message]
2006-05-10 18:10 Daniel Walker
2006-05-11 13:11 ` Alan Cox
2006-05-11 17:14 ` Daniel Walker
2006-05-11 20:30 ` Alan Cox
2006-05-16 20:23 Daniel Walker
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=9a8748490605120448i506ca5b9ra428bb460f0e94d0@mail.gmail.com \
--to=jesper.juhl@gmail.com \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®