[PATCH][next] wifi: iwlwifi: mvm: d3: Avoid -Wflex-array-member-not-at-end warnings

2025-04-05 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. Use the `DEFINE_RAW_FLEX()` helper for on-stack definitions of a flexible structure where the size of the flexible-array member is known at compile-time, and refactor the rest of the code, acc

Re: [PATCH v4 1/2] string: Add load_unaligned_zeropad() code path to sized_strscpy()

2025-04-05 Thread Catalin Marinas
On Fri, Mar 28, 2025 at 05:03:36PM -0700, Peter Collingbourne wrote: > diff --git a/lib/string.c b/lib/string.c > index eb4486ed40d25..b632c71df1a50 100644 > --- a/lib/string.c > +++ b/lib/string.c > @@ -119,6 +119,7 @@ ssize_t sized_strscpy(char *dest, const char *src, size_t > count) > if

[PATCH AUTOSEL 6.14 36/54] ext4: ignore xattrs past end

2025-04-05 Thread Sasha Levin
From: Bhupesh [ Upstream commit c8e008b60492cf6fd31ef127aea6d02fd3d314cd ] Once inside 'ext4_xattr_inode_dec_ref_all' we should ignore xattrs entries past the 'end' entry. This fixes the following KASAN reported issue: == BUG: KAS

Re: [PATCH v1 6/6] vsnprintf: Mark va_format() with __printf() attribute

2025-04-05 Thread Andy Shevchenko
On Fri, Mar 21, 2025 at 03:09:20PM +0100, Rasmus Villemoes wrote: > On Thu, Mar 20 2025, Andy Shevchenko > wrote: ... > I'm sorry, but this is broken in so many ways I don't know where to > start. You shouldn't be sorry, my guts feeling was on the same page, I was sending it with the expectati

[PATCH v5 1/6] dt-bindings: gpio: add max77759 binding

2025-04-05 Thread André Draszik
The Maxim MAX77759 is a companion PMIC for USB Type-C applications and includes Battery Charger, Fuel Gauge, temperature sensors, USB Type-C Port Controller (TCPC), NVMEM, and a GPIO expander. This describes its GPIO module. Reviewed-by: Rob Herring (Arm) Acked-by: Bartosz Golaszewski Signed-of

[PATCH v2 0/6] vsprintf: Add __printf attribute to where it's required

2025-04-05 Thread Andy Shevchenko
This whole series started from a simple fix (see the last patch) to make GCC (Debian 14.2.0-17) happy when compiling with `make W=1` (note, that CONFIG_WERROR=y and all warnings break the build!) down to a rabbit hole. However starting from v2 the last patch doesn't require the first part, I prefe

[PATCH v3 1/2] include: Move typedefs in nls.h to their own header

2025-04-05 Thread Nathan Chancellor
In order to allow commonly included headers such as string.h to access typedefs such as wchar_t without running into issues with the rest of the NLS library, refactor the typedefs out into their own header that can be included in a much safer manner. Cc: sta...@vger.kernel.org Reviewed-by: Andy Sh

[PATCH net-next 02/10] virtchnl: add PTP virtchnl definitions

2025-04-05 Thread Tony Nguyen
From: Milena Olech PTP capabilities are negotiated using virtchnl commands. There are two available modes of the PTP support: direct and mailbox. When the direct access to PTP resources is negotiated, virtchnl messages returns a set of registers that allow read/write directly. When the mailbox ac

Re: [PATCH v3 1/2] ARM: dts: aspeed: Add device tree for Nvidia's GB200NVL BMC

2025-04-05 Thread Krzysztof Kozlowski
On 20/03/2025 17:46, Willie Thai wrote: > + > + leds { > + compatible = "gpio-leds"; > + led-0 { > + label = "uid_led"; > + gpios = <&sgpiom0 27 GPIO_ACTIVE_LOW>; > + }; > + led-1 { > + l

Re: [PATCH RFC] KVM: arm64: PMU: Use multiple host PMUs

2025-04-05 Thread Oliver Upton
On Wed, Mar 19, 2025 at 06:38:38PM +, Marc Zyngier wrote: > On Wed, 19 Mar 2025 11:51:21 +, Akihiko Odaki > wrote: > > What about setting the flag automatically when a user fails to pin > > vCPUs to CPUs that are covered by one PMU? There would be no change if > > a user correctly pins vC

Re: [RFC PATCH] arm64/mm: Remove randomization of the linear map

2025-04-05 Thread Ard Biesheuvel
On Tue, 18 Mar 2025 at 14:50, Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > Since commit > > 97d6786e0669 ("arm64: mm: account for hotplug memory when randomizing the > linear region") > > the decision whether or not to randomize the placement of the system's > DRAM inside the linear map

Re: [PATCH] EISA: Increase length of device names

2025-04-05 Thread Maciej W. Rozycki
On Sat, 15 Mar 2025, Alejandro Colomar wrote: > > > GCC 15's -Wunterminated-string-initialization warned about truncated > > > name strings. Instead of marking them with the "nonstring" attribute[1], > > > increase their length to correctly include enough space for the > > > terminating NUL charac

[PATCH v2] ARM: dts: aspeed: Add device tree for Nvidia's GB200NVL BMC

2025-04-05 Thread Willie Thai
Hi Rob, Thanks for your comment. > My bot found new DTB warnings on the .dts files added or changed in this > series. > > Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings > are fixed by another series. Ultimately, it is up to the platform > maintainer whether these warnin

[PATCH v5 3/6] dt-bindings: mfd: add max77759 binding

2025-04-05 Thread André Draszik
The Maxim MAX77759 is a companion PMIC for USB Type-C applications and includes Battery Charger, Fuel Gauge, temperature sensors, USB Type-C Port Controller (TCPC), NVMEM, and a GPIO expander. This describes the top-level device. Reviewed-by: Rob Herring (Arm) Signed-off-by: André Draszik --- v

Re: [PATCH v5 0/2] string: Add load_unaligned_zeropad() code path to sized_strscpy()

2025-04-05 Thread Kees Cook
On Wed, 02 Apr 2025 17:06:58 -0700, Peter Collingbourne wrote: > This series fixes an issue where strscpy() would sometimes trigger > a false positive KASAN report with MTE. > > v5: > - add test for unreadable first byte of strscpy() source > > v4: > - clarify commit message > - improve comment >

Re: [PATCH v2 2/2] lib/string.c: Add wcslen()

2025-04-05 Thread Andy Shevchenko
On Wed, Mar 26, 2025 at 8:39 PM Andy Shevchenko wrote: > On Wed, Mar 26, 2025 at 7:19 PM Nathan Chancellor wrote: ... > > --- a/include/linux/string.h > > +++ b/include/linux/string.h > > @@ -7,6 +7,7 @@ > > #include /* for DEFINE_FREE() */ > > #include /* for inline */ > > #include

[PATCH][next] wifi: iwlwifi: mvm: Avoid -Wflex-array-member-not-at-end warning

2025-04-05 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. Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of a flexible structure where the size of the flexible-array member is known at compile-time, and refactor the rest of the code, a

Re: [PATCH v4 4/6] mfd: max77759: add Maxim MAX77759 core mfd driver

2025-04-05 Thread Lee Jones
On Fri, 14 Mar 2025, André Draszik wrote: > Hi Lee, > > Thanks for your review! > > On Fri, 2025-03-14 at 12:31 +, Lee Jones wrote: > > On Wed, 12 Mar 2025, André Draszik wrote: > > > > > The Maxim MAX77759 is a companion PMIC for USB Type-C applications and > > > includes Battery Charger,

[PATCH][next] usb: ehci-fsl: Avoid -Wflex-array-member-not-at-end warning

2025-04-05 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. Move the conflicting declaration to the end of the structure. Notice that `struct ehci_hcd` is a flexible structure --a structure that contains a flexible-array member. Fix the following warn