summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2010-04-10 11:18:58 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-14 01:52:55 +0100
commit9ea5973883bbe26372f45d99eb3a500f08d966f9 (patch)
tree658c5a7401651de627f3dc4843dd56935dc59937 /include/linux/mtd
parent709c4efb68cccd2de9a7d63b1f90276b1617e613 (diff)
downloadtalos-op-linux-9ea5973883bbe26372f45d99eb3a500f08d966f9.tar.gz
talos-op-linux-9ea5973883bbe26372f45d99eb3a500f08d966f9.zip
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)
#endif
else if (map_bankwidth_is_large(map))
memcpy_fromio(r.x, map->virt+ofs, map->bankwidth);
+ else
+ BUG();
return r;
}
OpenPOWER on IntegriCloud