aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2010-04-10 14:18:58 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-13 20:52:55 -0400
commit9ea5973883bbe26372f45d99eb3a500f08d966f9 (patch)
tree658c5a7401651de627f3dc4843dd56935dc59937 /include/linux/mtd
parent709c4efb68cccd2de9a7d63b1f90276b1617e613 (diff)
mtd: suppress warnings in inline_map_read()
With gcc 4.4.3 -O2 on MIPS32: drivers/mtd/chips/cfi_util.c: In function 'cfi_qry_present': include/linux/mtd/map.h:390: warning: 'r' may be used uninitialized in this function include/linux/mtd/map.h:375: note: 'r' was declared here include/linux/mtd/map.h:390: warning: 'r' may be used uninitialized in this function include/linux/mtd/map.h:375: note: 'r' was declared here Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
index 01703d425986..de89eca864ce 100644
--- a/include/linux/mtd/map.h
+++ b/include/linux/mtd/map.h
@@ -387,6 +387,8 @@ static inline map_word inline_map_read(struct map_info *map, unsigned long ofs)
387#endif 387#endif
388 else if (map_bankwidth_is_large(map)) 388 else if (map_bankwidth_is_large(map))
389 memcpy_fromio(r.x, map->virt+ofs, map->bankwidth); 389 memcpy_fromio(r.x, map->virt+ofs, map->bankwidth);
390 else
391 BUG();
390 392
391 return r; 393 return r;
392} 394}