Re: [PATCH 1/2] linux/bitfield.h: import FIELD_PREP_CONST macro from Linux Kernel

2025-06-04 Thread Quentin Schulz
Hi Christian, On 6/3/25 10:37 PM, Christian Marangi wrote: On Tue, Jun 03, 2025 at 05:08:13PM +0200, Quentin Schulz wrote: Hi Christian, On 6/3/25 10:51 AM, Christian Marangi wrote: Import FIELD_PREP_CONST macro from Linux Kernel to permit usage of FIELD_PREP with scenario where a constant va

Re: [PATCH 1/2] linux/bitfield.h: import FIELD_PREP_CONST macro from Linux Kernel

2025-06-03 Thread Tom Rini
On Tue, Jun 03, 2025 at 10:37:22PM +0200, Christian Marangi wrote: > On Tue, Jun 03, 2025 at 05:08:13PM +0200, Quentin Schulz wrote: > > Hi Christian, > > > > On 6/3/25 10:51 AM, Christian Marangi wrote: > > > Import FIELD_PREP_CONST macro from Linux Kernel to permit usage of > > > FIELD_PREP with

Re: [PATCH 1/2] linux/bitfield.h: import FIELD_PREP_CONST macro from Linux Kernel

2025-06-03 Thread Christian Marangi
On Tue, Jun 03, 2025 at 05:08:13PM +0200, Quentin Schulz wrote: > Hi Christian, > > On 6/3/25 10:51 AM, Christian Marangi wrote: > > Import FIELD_PREP_CONST macro from Linux Kernel to permit usage of > > FIELD_PREP with scenario where a constant value is needed. > > > > Refer to commit e2192de59e

Re: [PATCH 1/2] linux/bitfield.h: import FIELD_PREP_CONST macro from Linux Kernel

2025-06-03 Thread Quentin Schulz
Hi Christian, On 6/3/25 10:51 AM, Christian Marangi wrote: Import FIELD_PREP_CONST macro from Linux Kernel to permit usage of FIELD_PREP with scenario where a constant value is needed. Refer to commit e2192de59e45 ("bitfield: add FIELD_PREP_CONST()") in Linux kernel for extensive explaination o