Re: [PATCH 0/3] staging: rtl8723bs: clean up SIZE_PTR usage and remove custom macro

From: Dan Carpenter

Date: Mon Oct 19 2026 - 03:17:36 EST


On Sun, Oct 18, 2026 at 04:43:59PM +0000, Ashmit Kumar wrote:
> This patch series cleans up the custom macro SIZE_PTR (__kernel_size_t)
> across the rtl8723bs driver as part of addressing the TODO item to
> "convert any remaining unusual variable types".
>
> Instead of a mechanical substitution, each occurrence has been converted
> to its idiomatic kernel equivalent:
> 1. Replace open-coded pointer alignments with the standard PTR_ALIGN()
> macro, removing an unused variable left behind.
> 2. Remove redundant pointer-to-integer casts where pointer arithmetic or
> pointer arguments are already sufficient.
> 3. Replace the remaining pointer-to-integer address casts with uintptr_t,
> use size_t for alignment offsets, and delete the custom SIZE_PTR macro
> definition entirely.
>
> Ashmit Kumar (3):
> staging: rtl8723bs: use PTR_ALIGN() for pointer alignment
> staging: rtl8723bs: remove unnecessary pointer-to-integer casts
> staging: rtl8723bs: replace SIZE_PTR with uintptr_t and remove
> definition

This driver has been deleted in linux-next.

regards,
dan carpenter