All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Kill a sparse warning in binfmt_elf.c
@ 2004-10-06 22:45 Arun Sharma
  2004-10-07 18:11 ` Valdis.Kletnieks
  0 siblings, 1 reply; 9+ messages in thread
From: Arun Sharma @ 2004-10-06 22:45 UTC (permalink / raw)
  To: linux-kernel

[-- 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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-08  1:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 22:45 [PATCH] Kill a sparse warning in binfmt_elf.c Arun Sharma
2004-10-07 18:11 ` 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

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.