diff options
| author | Arnd Bergmann <[email protected]> | 2018-01-02 11:00:22 +0000 |
|---|---|---|
| committer | Max Filippov <[email protected]> | 2018-01-02 11:25:41 +0000 |
| commit | 32bb954dbf6db98562cb4477608dc546421caaf6 (patch) | |
| tree | 300f1602fa9492e0ef10a1ef03c023a0fd742614 /net/unix/af_unix.c | |
| parent | xtensa: print kernel sections info in mem_init (diff) | |
| download | kernel-32bb954dbf6db98562cb4477608dc546421caaf6.tar.gz kernel-32bb954dbf6db98562cb4477608dc546421caaf6.zip | |
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 <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
