Re: [PATCH][next] nfp: Avoid -Wflex-array-member-not-at-end warnings

2024-04-01 Thread Jakub Kicinski
On Thu, 28 Mar 2024 19:17:10 -0600 Gustavo A. R. Silva wrote: > --- a/drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c > +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c > @@ -34,8 +34,11 @@ enum nfp_dumpspec_type { > > /* generic type plus length */ > struct nfp_dump_tl { >

Re: [PATCH v6 RESEND 0/4] arm64: qcom: add AIM300 AIoT board support

2024-04-01 Thread Tengfei Fan
On 4/1/2024 11:54 PM, Trilok Soni wrote: On 4/1/2024 2:38 AM, Tengfei Fan wrote: Here is a diagram of AIM300 AIoT Carrie Board and SoM +--+ | AIM300 AIOT Carrie Board | spellcheck s/Carrie/Carrier ? Thanks

Re: [PATCH v6 RESEND 4/4] arm64: dts: qcom: aim300: add AIM300 AIoT

2024-04-01 Thread Tengfei Fan
On 4/2/2024 3:22 AM, Dmitry Baryshkov wrote: On Mon, 1 Apr 2024 at 12:40, Tengfei Fan wrote: Add AIM300 AIoT Carrier board DTS support, including usb, UART, PCIe, I2C functions support. Here is a diagram of AIM300 AIoT Carrie Board and SoM

[PATCH] trace: events: cleanup deprecated strncpy uses

2024-04-01 Thread Justin Stitt
E(prot->sysctl_mem[0]); __entry->sysctl_mem[1] = READ_ONCE(prot->sysctl_mem[1]); __entry->sysctl_mem[2] = READ_ONCE(prot->sysctl_mem[2]); --- base-commit: 928a87efa42302a23bb9554be081a28058495f22 change-id: 20240401-strncpy-include-trace-events-mdio-h-0a325676b468 Best regards, -- Justin Stitt

[PATCH] xfs: cleanup deprecated uses of strncpy

2024-04-01 Thread Justin Stitt
intf(offset, prefix_len + namelen + 1, "%s%s", prefix, name); compute_size: context->count += prefix_len + namelen + 1; --- base-commit: 928a87efa42302a23bb9554be081a28058495f22 change-id: 20240401-strncpy-fs-xfs-xfs_ioctl-c-8af7a895bff0 Best regards, -- Justin Stitt

Re: [PATCH v2 0/3] Add sy7802 flash led driver

2024-04-01 Thread André Apitzsch
Am Montag, dem 01.04.2024 um 14:45 -0700 schrieb Trilok Soni: > On 4/1/2024 2:23 PM, André Apitzsch via B4 Relay wrote: > > This series introduces a driver for the Silergy SY7802 charge pump > > used > > in the BQ Aquaris M5 and X5 smartphones. > > > > The implementation is based on information

Re: [PATCH v2 0/3] Add sy7802 flash led driver

2024-04-01 Thread Trilok Soni
On 4/1/2024 2:23 PM, André Apitzsch via B4 Relay wrote: > This series introduces a driver for the Silergy SY7802 charge pump used > in the BQ Aquaris M5 and X5 smartphones. > > The implementation is based on information extracted from downstream as > the datasheet provided by a distributor of the

[PATCH v2 2/3] leds: sy7802: Add support for Silergy SY7802 flash LED controller

2024-04-01 Thread André Apitzsch via B4 Relay
From: André Apitzsch Add support for SY7802 flash LED controller. It can support up to 1.8A flash current. Signed-off-by: André Apitzsch --- drivers/leds/flash/Kconfig | 11 + drivers/leds/flash/Makefile | 1 + drivers/leds/flash/leds-sy7802.c | 532

[PATCH v2 3/3] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash

2024-04-01 Thread André Apitzsch via B4 Relay
From: André Apitzsch The phone has a Silergy SY7802 flash LED controller. Signed-off-by: André Apitzsch --- .../boot/dts/qcom/msm8939-longcheer-l9100.dts | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts

[PATCH v2 0/3] Add sy7802 flash led driver

2024-04-01 Thread André Apitzsch via B4 Relay
This series introduces a driver for the Silergy SY7802 charge pump used in the BQ Aquaris M5 and X5 smartphones. The implementation is based on information extracted from downstream as the datasheet provided by a distributor of the hardware didn't include any information about the i2c register

[PATCH v2 1/3] dt-bindings: leds: Add Silergy SY7802 flash LED

2024-04-01 Thread André Apitzsch via B4 Relay
From: André Apitzsch Document Silergy SY7802 flash LED driver devicetree bindings. Signed-off-by: André Apitzsch --- .../devicetree/bindings/leds/silergy,sy7802.yaml | 100 + 1 file changed, 100 insertions(+) diff --git

[PATCH] udf: replace deprecated strncpy/strcpy with strscpy

2024-04-01 Thread Justin Stitt
} udf_debug("volIdent[] = '%s'\n", UDF_SB(sb)->s_volume_ident); --- base-commit: 928a87efa42302a23bb9554be081a28058495f22 change-id: 20240401-strncpy-fs-udf-super-c-983457eb4ac3 Best regards, -- Justin Stitt

Re: [PATCH v6 RESEND 4/4] arm64: dts: qcom: aim300: add AIM300 AIoT

2024-04-01 Thread Dmitry Baryshkov
On Mon, 1 Apr 2024 at 12:40, Tengfei Fan wrote: > > Add AIM300 AIoT Carrier board DTS support, including usb, UART, PCIe, > I2C functions support. > Here is a diagram of AIM300 AIoT Carrie Board and SoM > +--+ > | AIM300 AIOT Carrie

Re: [PATCH v6 RESEND 2/4] arm64: dts: qcom: qcs8550: introduce qcs8550 dtsi

2024-04-01 Thread Dmitry Baryshkov
On Mon, 1 Apr 2024 at 12:40, Tengfei Fan wrote: > > QCS8550 is derived from SM8550. The differnece between SM8550 and > QCS8550 is QCS8550 doesn't have modem RF system. QCS8550 is mainly used > in IoT scenarios. > QCS8550 firmware has different memory map with SM8550 firmware. The > memory map

[PATCH v4][next] integrity: Avoid -Wflex-array-member-not-at-end warnings

2024-04-01 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end is coming in GCC-14, and we are getting ready to enable it globally. There is currently an object (`hdr)` in `struct ima_max_digest_data` that contains a flexible structure (`struct ima_digest_data`): struct ima_max_digest_data { struct ima_digest_data

[PATCH v2] hfsplus: refactor copy_name to not use strncpy

2024-04-01 Thread Justin Stitt
strncpy() is deprecated with NUL-terminated destination strings [1]. The copy_name() method does a lot of manual buffer manipulation to eventually arrive with its desired string. If we don't know the namespace this attr has or belongs to we want to prepend "osx." to our final string. Following

Re: [PATCH v6 RESEND 0/4] arm64: qcom: add AIM300 AIoT board support

2024-04-01 Thread Trilok Soni
On 4/1/2024 2:38 AM, Tengfei Fan wrote: > Here is a diagram of AIM300 AIoT Carrie Board and SoM > +--+ > | AIM300 AIOT Carrie Board | spellcheck s/Carrie/Carrier ? -- ---Trilok Soni

[PATCH v2] RDMA/mana_ib: Add flex array to struct mana_cfg_rx_steer_req_v2

2024-04-01 Thread Erick Archer
The "struct mana_cfg_rx_steer_req_v2" uses a dynamically sized set of trailing elements. Specifically, it uses a "mana_handle_t" array. So, use the preferred way in the kernel declaring a flexible array [1]. At the same time, prepare for the coming implementation by GCC and Clang of the

Re: [PATCH] RDMA/mana_ib: Add flex array to struct mana_cfg_rx_steer_req_v2

2024-04-01 Thread Erick Archer
Hi Gustavo, On Sun, Mar 31, 2024 at 08:53:07PM -0600, Gustavo A. R. Silva wrote: > > > On 31/03/24 09:04, Erick Archer wrote: > > The "struct mana_cfg_rx_steer_req_v2" uses a dynamically sized set of > > trailing elements. Specifically, it uses a "mana_handle_t" array. So, > > use the preferred

[PATCH v6 RESEND 4/4] arm64: dts: qcom: aim300: add AIM300 AIoT

2024-04-01 Thread Tengfei Fan
Add AIM300 AIoT Carrier board DTS support, including usb, UART, PCIe, I2C functions support. Here is a diagram of AIM300 AIoT Carrie Board and SoM +--+ | AIM300 AIOT Carrie Board | |

[PATCH v6 RESEND 3/4] arm64: dts: qcom: add base AIM300 dtsi

2024-04-01 Thread Tengfei Fan
AIM300 Series is a highly optimized family of modules designed to support AIoT applications. It integrates QCS8550 SoC, UFS and PMIC chip etc. Here is a diagram of AIM300 SoM: ++ |AIM300 SoM | |

[PATCH v6 RESEND 2/4] arm64: dts: qcom: qcs8550: introduce qcs8550 dtsi

2024-04-01 Thread Tengfei Fan
QCS8550 is derived from SM8550. The differnece between SM8550 and QCS8550 is QCS8550 doesn't have modem RF system. QCS8550 is mainly used in IoT scenarios. QCS8550 firmware has different memory map with SM8550 firmware. The memory map will be runtime added through bootloader. There are 3 types of

[PATCH v6 RESEND 1/4] dt-bindings: arm: qcom: Document QCS8550 SoC and the AIM300 AIoT board

2024-04-01 Thread Tengfei Fan
Document QCS8550 SoC and the AIM300 AIoT board bindings. QCS8550 is derived from SM8550. The difference between SM8550 and QCS8550 is QCS8550 doesn't have modem RF system. QCS8550 is mainly used in IoT scenarios. AIM300 Series is a highly optimized family of modules designed to support AIoT

[PATCH v6 RESEND 0/4] arm64: qcom: add AIM300 AIoT board support

2024-04-01 Thread Tengfei Fan
Add AIM300 AIoT support along with usb, ufs, regulators, serial, PCIe, and PMIC functions. AIM300 Series is a highly optimized family of modules designed to support AIoT applications. It integrates QCS8550 SoC, UFS and PMIC chip etc. Here is a diagram of AIM300 AIoT Carrie Board and SoM

Re: [PATCH] orangefs: cleanup uses of strncpy

2024-04-01 Thread Christian Brauner
On Fri, 22 Mar 2024 21:41:18 +, Justin Stitt wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > There is some care taken to ensure these destination buffers are >