linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix type mismatch in jffs.
@ 2003-09-09 21:44 Stephen Hemminger
  2003-09-10  2:40 ` viro
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Hemminger @ 2003-09-09 21:44 UTC (permalink / raw)
  To: jffs-dev; +Cc: linux-kernel

On 2.6.0-test5 jffs generates a warning about type mismatch because it casting a short
to a pointer.  Look like an obvious typo.

Builds clean, not tested on real hardware.

diff -Nru a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c
--- a/fs/jffs/inode-v23.c	Tue Sep  9 14:41:53 2003
+++ b/fs/jffs/inode-v23.c	Tue Sep  9 14:41:53 2003
@@ -1734,7 +1734,7 @@
 		   the device should be read from the flash memory and then
 		   added to the inode's i_rdev member.  */
 		u16 val;
-		jffs_read_data(f, (char *)val, 0, 2);
+		jffs_read_data(f, (char *)&val, 0, 2);
 		init_special_inode(inode, inode->i_mode,
 			old_decode_dev(val));
 	}

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

end of thread, other threads:[~2003-09-11 16:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 21:44 [PATCH] fix type mismatch in jffs Stephen Hemminger
2003-09-10  2:40 ` viro
2003-09-10 17:14   ` Geert Uytterhoeven
2003-09-10 18:18     ` viro
2003-09-10 18:54       ` Linus Torvalds
2003-09-10 19:03         ` viro
2003-09-10 19:16           ` Russell King
2003-09-11 16:50             ` Jörn Engel

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