From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>
To: Andrew Morton <akpm@osdl.org>
Cc: James Simmons <jsimmons@infraded.org>,
linux-fbdev-devel <linux-fbdev-devel@lists.sourceforge.net>
Subject: [PATCH] - fix video/fbmem.c warning.
Date: Fri, 30 Apr 2004 15:10:15 -0300 [thread overview]
Message-ID: <20040430181015.GB3119@lorien.prodam> (raw)
Hi,
The patch bellow fix this warning:
drivers/video/fbmem.c: In function `fb_cursor':
drivers/video/fbmem.c:922: warning: passing arg 1 of `copy_from_user' discards qualifiers from pointer target type
It is only a cast (several other calls for copy_from_user() need that).
drivers/video/fbmem.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -X dontdiff -Nparu a/drivers/video/fbmem.c a~/drivers/video/fbmem.c
--- a/drivers/video/fbmem.c 2004-04-26 15:25:52.000000000 -0300
+++ a~/drivers/video/fbmem.c 2004-04-27 16:48:15.000000000 -0300
@@ -914,7 +914,7 @@ fb_cursor(struct fb_info *info, struct f
return -ENOMEM;
}
- if (copy_from_user(cursor.image.data, sprite->image.data, size) ||
+ if (copy_from_user((void *) cursor.image.data, sprite->image.data, size) ||
copy_from_user(cursor.mask, sprite->mask, size)) {
kfree(cursor.image.data);
kfree(cursor.mask);
--
Luiz Fernando N. Capitulino
<http://www.telecentros.sp.gov.br>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
next reply other threads:[~2004-04-30 18:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-30 18:10 Luiz Fernando N. Capitulino [this message]
2004-05-01 4:37 ` [PATCH] - fix video/fbmem.c warning Andrew Morton
2004-05-01 18:57 ` Geert Uytterhoeven
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=20040430181015.GB3119@lorien.prodam \
--to=lcapitulino@prefeitura.sp.gov.br \
--cc=akpm@osdl.org \
--cc=jsimmons@infraded.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).