commit | 32bb954dbf6db98562cb4477608dc546421caaf6 | [log] [tgz] |
---|---|---|
author | Arnd Bergmann <arnd@arndb.de> | Tue Jan 02 12:00:22 2018 +0100 |
committer | Max Filippov <jcmvbkbc@gmail.com> | Tue Jan 02 03:25:41 2018 -0800 |
tree | 300f1602fa9492e0ef10a1ef03c023a0fd742614 | |
parent | fed566ca44ce99ff4604e3af941049f9a6bba405 [diff] |
xtensa: shut up gcc-8 warnings Many uses of strncpy() on xtensa causes a warning like arch/xtensa/include/asm/string.h:56:42: warning: array subscript is above array bounds [-Warray-bounds] : "0" (__dest), "1" (__src), "r" (__src+__n) This avoids the warning by turning the pointer arithmetic into an integer operation that does not get checked the same way. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>