With modern GCC, we get warnings such as:
cmd/jffs2.c: In function 'mtdparts_init':
arch/sh/include/asm/string.h:110:38:
warning: array subscript is above array bounds [-Warray-bounds]
: "0" (__cs), "1" (__ct), "r" (__cs+__n)
~~~~^~~~
This results in a small size reduction as well.
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
|
||
|---|---|---|
| .. | ||
| bitops.h | ||
| byteorder.h | ||
| cache.h | ||
| config.h | ||
| cpu_sh2.h | ||
| cpu_sh3.h | ||
| cpu_sh4.h | ||
| cpu_sh7203.h | ||
| cpu_sh7264.h | ||
| cpu_sh7269.h | ||
| cpu_sh7706.h | ||
| cpu_sh7710.h | ||
| cpu_sh7720.h | ||
| cpu_sh7722.h | ||
| cpu_sh7723.h | ||
| cpu_sh7724.h | ||
| cpu_sh7734.h | ||
| cpu_sh7750.h | ||
| cpu_sh7752.h | ||
| cpu_sh7753.h | ||
| cpu_sh7757.h | ||
| cpu_sh7763.h | ||
| cpu_sh7780.h | ||
| cpu_sh7785.h | ||
| global_data.h | ||
| io.h | ||
| irqflags.h | ||
| linkage.h | ||
| macro.h | ||
| mmc.h | ||
| pci.h | ||
| posix_types.h | ||
| processor.h | ||
| ptrace.h | ||
| sections.h | ||
| string.h | ||
| system.h | ||
| types.h | ||
| u-boot.h | ||
| unaligned-sh4a.h | ||
| unaligned.h | ||
| zimage.h | ||