de9234306b
ntosd2_init_i2c walks the ntosd2_i2c_info array, which it expects to be populated with at least one member. gcc correctly warns about the out-of-bounds access here. Since this can not possibly work, it's better to disable i2c support entirely on this board. Without this patch, building davinci_all_defconfig results in: arch/arm/mach-davinci/board-neuros-osd2.c: In function 'davinci_ntosd2_init': arch/arm/mach-davinci/board-neuros-osd2.c:187:20: warning: array subscript is above array bounds [-Warray-bounds] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Sekhar Nori <nsekhar@ti.com> Cc: Kevin Hilman <khilman@ti.com> Cc: Andrey Porodko <panda@chelcom.ru> |
||
---|---|---|
.. | ||
include/mach | ||
Kconfig | ||
Makefile | ||
Makefile.boot | ||
aemif.c | ||
board-da830-evm.c | ||
board-da850-evm.c | ||
board-dm355-evm.c | ||
board-dm355-leopard.c | ||
board-dm365-evm.c | ||
board-dm644x-evm.c | ||
board-dm646x-evm.c | ||
board-mityomapl138.c | ||
board-neuros-osd2.c | ||
board-omapl138-hawk.c | ||
board-sffsdr.c | ||
board-tnetv107x-evm.c | ||
cdce949.c | ||
clock.c | ||
clock.h | ||
common.c | ||
cp_intc.c | ||
cpufreq.c | ||
cpuidle.c | ||
da830.c | ||
da850.c | ||
davinci.h | ||
devices-da8xx.c | ||
devices-tnetv107x.c | ||
devices.c | ||
dm355.c | ||
dm365.c | ||
dm644x.c | ||
dm646x.c | ||
dma.c | ||
irq.c | ||
mux.c | ||
mux.h | ||
pm.c | ||
pm_domain.c | ||
psc.c | ||
serial.c | ||
sleep.S | ||
sram.c | ||
time.c | ||
tnetv107x.c | ||
usb.c |