Re: [PATCH] phonet: fix building with clang

2019-02-21 Thread David Miller
From: Arnd Bergmann Date: Tue, 19 Feb 2019 22:53:50 +0100 > clang warns about overflowing the data[] member in the struct pnpipehdr: > > net/phonet/pep.c:295:8: warning: array index 4 is past the end of the array > (which contains 1 element) [-Warray-bounds] > if (hdr->d

[PATCH] phonet: fix building with clang

2019-02-19 Thread Arnd Bergmann
clang warns about overflowing the data[] member in the struct pnpipehdr: net/phonet/pep.c:295:8: warning: array index 4 is past the end of the array (which contains 1 element) [-Warray-bounds] if (hdr->data[4] == PEP_IND_READY) ^ ~ inclu