Re: [PATCH 5/8] octeontx2-pf: Use ALIGN() on a DMA address

From: Ratheesh Kannoth

Date: Sun Nov 29 2026 - 23:15:14 EST


On 2026-11-29 at 14:26:07, Jack Wallner (jackwallner@xxxxxxxxx) wrote:
> PTR_ALIGN() is meant for pointers. cn10k_outb_cptlf_iq_alloc() passes it
> a dma_addr_t. That compiles because PTR_ALIGN() casts its argument to
> unsigned long and back.
>
> A later patch in this series makes PTR_ALIGN() do pointer arithmetic on
> its argument so that the compiler can keep track of the object size,
> and documents that the argument has to be a pointer. Use ALIGN() for
> this address, which works in the type of its argument.
>
> No functional change: the driver depends on 64BIT, where both macros
> give the same value.
>
> Compile tested only.
>
> The change and this changelog were written by an AI coding assistant
> (Claude, run in Claude Code) at my direction. See the cover letter for
> how it was used and tested.
>
> Signed-off-by: Jack Wallner <jackwallner@xxxxxxxxx>

Acked-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>