Re: Clang warnings in net/phonet

2019-02-19 Thread Arnd Bergmann
On Tue, Jan 8, 2019 at 3:55 AM Nathan Chancellor wrote: > > Hi all, > > When building the kernel with Clang, this warning comes up in net/phonet. > > net/phonet/pep.c:224:16: warning: array index 1 is past the end of the array > (which contains 1 element) [-Warray-bounds] > ph->data[0] =

Re: Clang warnings in net/phonet

2019-01-26 Thread Nathan Chancellor
On Mon, Jan 07, 2019 at 07:54:20PM -0700, Nathan Chancellor wrote: > Hi all, > > When building the kernel with Clang, this warning comes up in net/phonet. > > net/phonet/pep.c:224:16: warning: array index 1 is past the end of the array > (which contains 1 element) [-Warray-bounds] > ph->

Clang warnings in net/phonet

2019-01-07 Thread Nathan Chancellor
Hi all, When building the kernel with Clang, this warning comes up in net/phonet. net/phonet/pep.c:224:16: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds] ph->data[0] = oph->data[1]; /* CTRL id */ ^ ~ include/n