Re: [PATCH v2][next] UAPI: net/sched: Avoid -Wflex-array-member-not-at-end warning

2024-08-09 Thread Stephen Hemminger
On Fri, 9 Aug 2024 09:27:51 -0600 "Gustavo A. R. Silva" wrote: > -Wflex-array-member-not-at-end has been introduced in GCC-14, and we > are getting ready to enable it, globally. > > So, in order to avoid ending up with a flexible-array member in the > middle of multiple other structs, we use the

Re: [PATCH] netem: Annotate struct disttable with __counted_by

2023-10-03 Thread Stephen Hemminger
ndexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct disttable. > > Cc: Stephen Hemminger > Cc: Jamal Hadi Salim > Cc: Cong Wang > Cc: Jiri Pirko > Cc: "David S. Miller"

Re: [PATCH] sky2: Make sure there is at least one frag_addr available

2023-09-21 Thread Stephen Hemminger
CONFIG_PAGE_SIZE_16KB=y, PAGE_SHIFT == 14, so: > > #define ETH_JUMBO_MTU 9000 > > causes "ETH_JUMBO_MTU >> PAGE_SHIFT" to be 0. Use "?: 1" to solve this build > warning. > > Cc: Mirko Lindner > Cc: Stephen Hemminger > Cc: "Dav

Re: include/linux/dma-mapping.h:416:36: warning: array subscript i is outside array bounds of 'dma_addr_t[0]' {aka 'long long unsigned int[]'}

2023-09-20 Thread Stephen Hemminger
On Wed, 20 Sep 2023 09:09:33 -0700 Kees Cook wrote: > On Tue, Sep 19, 2023 at 07:27:26PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: 2cf0f715623872823a72e451243bbf555d10d032 > > commit: df8fc4e934c12b906d08