* [PATCH] cramfs: explicitly state type of unsigned int
@ 2009-02-03 23:18 Adrian McMenamin
0 siblings, 0 replies; only message in thread
From: Adrian McMenamin @ 2009-02-03 23:18 UTC (permalink / raw)
To: LKML
I was using cramfs as a model for a new filesystem and came across this,
rather confusing issue...
These variables are currently declared with only a type modifier, not a
type.
Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
---
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index a07338d..d9210bc 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -136,7 +136,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
{
struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
struct page *pages[BLKS_PER_BUF];
- unsigned i, blocknr, buffer;
+ unsigned int i, blocknr, buffer;
unsigned long devsize;
char *data;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-03 23:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 23:18 [PATCH] cramfs: explicitly state type of unsigned int Adrian McMenamin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox