]> git.dujemihanovic.xyz Git - u-boot.git/commit
sh: Do not provide strncmp
authorTom Rini <trini@konsulko.com>
Sat, 17 Feb 2018 22:30:41 +0000 (17:30 -0500)
committerMarek Vasut <marex@denx.de>
Thu, 22 Feb 2018 23:06:05 +0000 (00:06 +0100)
commitb2a3372138c468c5c749c50c368dd6c11313e491
treedf1e27a1bbd99e7f4a2f9c4a767118342d33625f
parent036c9679d25cba87e7b82dc18d6f5f939d9806dd
sh: Do not provide strncmp

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>
arch/sh/include/asm/string.h