From: Arun Sharma <arun.sharma@intel.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Kill a sparse warning in binfmt_elf.c
Date: Wed, 06 Oct 2004 15:45:02 -0700 [thread overview]
Message-ID: <4164756E.4010408@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 112 bytes --]
The attached patch kills a sparse warning in binfmt_elf.c:dump_write() by adding a __user annotation.
-Arun
[-- Attachment #2: sparse-binfmt.patch --]
[-- Type: text/plain, Size: 539 bytes --]
Kill a sparse warning in 2.6.9-rc3.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
===== fs/binfmt_elf.c 1.88 vs edited =====
--- 1.88/fs/binfmt_elf.c Wed Sep 22 13:34:05 2004
+++ edited/fs/binfmt_elf.c Wed Oct 6 13:16:37 2004
@@ -1032,7 +1032,7 @@
*/
static int dump_write(struct file *file, const void *addr, int nr)
{
- return file->f_op->write(file, addr, nr, &file->f_pos) == nr;
+ return file->f_op->write(file, (const char __user *) addr, nr, &file->f_pos) == nr;
}
static int dump_seek(struct file *file, off_t off)
next reply other threads:[~2004-10-06 22:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-06 22:45 Arun Sharma [this message]
2004-10-07 18:11 ` [PATCH] Kill a sparse warning in binfmt_elf.c Valdis.Kletnieks
2004-10-07 18:49 ` Arun Sharma
2004-10-07 18:54 ` Valdis.Kletnieks
2004-10-07 19:01 ` Arun Sharma
2004-10-07 19:16 ` Valdis.Kletnieks
2004-10-07 22:07 ` Arun Sharma
2004-10-07 19:16 ` David S. Miller
2004-10-07 19:27 ` Valdis.Kletnieks
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=4164756E.4010408@intel.com \
--to=arun.sharma@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.