diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-11-06 22:55:28 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-16 10:57:39 +0200 |
commit | 5d27aa5af04f58f3020de1c224dcf8a62151fd58 (patch) | |
tree | c265c30efaee94dff5641076fb04eb3eb2328825 /virt/kvm | |
parent | d611d41b46c96195b9a168a21992782458826e07 (diff) | |
download | lwn-5d27aa5af04f58f3020de1c224dcf8a62151fd58.tar.gz lwn-5d27aa5af04f58f3020de1c224dcf8a62151fd58.zip |
mtd: uninitialized variable warning in map.h
The map_word_load() function initializes exactly
as many words in the buffer as required, but gcc
cannot figure this out and gives a misleading
warning. Marking the local variable as
uninitialized_var shuts up that warning.
Without this patch, building acs5k_defconfig results in:
drivers/mtd/chips/cfi_cmdset_0002.c: In function 'cfi_amdstd_panic_write':
include/linux/mtd/map.h:331:11: warning: 'r.x[0]' may be used uninitialized in this function [-Wuninitialized]
drivers/mtd/chips/cfi_cmdset_0002.c: In function 'cfi_amdstd_write_words':
include/linux/mtd/map.h:331:11: warning: 'r.x[0]' may be used uninitialized in this function [-Wuninitialized]
drivers/mtd/chips/cfi_cmdset_0001.c: In function 'cfi_intelext_write_words':
include/linux/mtd/map.h:331:11: warning: 'r.x[0]' may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions