Re: [PATCH 0/3] UAPI: ethtool: Avoid flex-array in struct ethtool_link_settings

2024-11-18 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 15 Nov 2024 12:43:02 -0800 you wrote: > Hi, > > This reverts the tagged struct group in struct ethtool_link_settings and > instead just removes the flexible array member from Linux's view as it > is entirely

[PATCH v2 linux-next 2/2] lib/string_choices: Add str_locked_unlocked()/str_unlocked_locked() helper

2024-11-18 Thread R Sundar
Add str_locked_unlocked()/str_unlocked_locked() helper to return "locked" or "unlocked" string literal. Suggested-by: Przemek Kitszel Signed-off-by: R Sundar --- include/linux/string_choices.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/string_choices.h b/include/lin

[PATCH v2 linux-next 1/2] lib/string_choices: Rearrange functions in sorted order

2024-11-18 Thread R Sundar
Rearrange misplaced functions in sorted order. Suggested-by: Andy Shevchenko Signed-off-by: R Sundar --- include/linux/string_choices.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/linux/string_choices.h b/include/linux/string_choices.h

[PATCH v2 linux-next 0/2] lib/string_choices: Sorting function order

2024-11-18 Thread R Sundar
This patch series rearrange misplaced functions in sorted order and add str_locked_unlocked() helper. Signed-off-by: R Sundar ---

Re: [PATCH] pinctrl: airoha: Use unsigned long for bit search

2024-11-18 Thread Linus Walleij
On Sun, Nov 17, 2024 at 12:45 PM Kees Cook wrote: > Instead of risking alignment problems and causing (false positive) array > bound warnings when casting a u32 to (64-bit) unsigned long, just use a > native unsigned long for doing bit searches. Avoids warning with GCC 15's > -Warray-bounds -fdia

Re: [PATCH] ovl: Check for NULL OVL_E() results

2024-11-18 Thread Amir Goldstein
On Sun, Nov 17, 2024 at 5:46 AM Kees Cook wrote: > > GCC notices that it is possible for OVL_E() to return NULL (which > implies that d_inode(dentry) may be NULL). I cannot follow this logic. Yes, OVL_E() can be NULL, but it does not imply that inode is NULL, so if you think that code should to

[PATCH][next] fs: nfs: acl: Avoid -Wflex-array-member-not-at-end warning

2024-11-18 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was 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 other structs, we use the `struct_group_tagged()` helper to create a new tagged `struct posix_acl_hdr`. This struc

Re: [PATCH] overflow: improve size_add/mul for 32bit systems

2024-11-18 Thread Dan Carpenter
On Mon, Nov 18, 2024 at 09:09:28AM +0300, Dan Carpenter wrote: > On 32bit systems, if you pass a long long to size_add()/mul() the top > 32 bits are truncated away so the function doesn't work as expected. > Add a test to prevent this. > > Signed-off-by: Dan Carpenter > --- Sorry, I thought I ha