Re: [PATCH] mm: debug_page_alloc: fix type mismatch for debug_guardpage_minorder
From: Andrew Morton
Date: Wed Aug 05 2026 - 12:58:09 EST
On Wed, 5 Aug 2026 17:31:07 +0800 Ye Liu <ye.liu@xxxxxxxxx> wrote:
>
> The _debug_guardpage_minorder variable is declared as unsigned int,
> but the debug_guardpage_minorder_setup() function uses unsigned long
> and kstrtoul() to parse the value.
>
> Use kstrtouint() with unsigned int local variable to match the actual
> type of _debug_guardpage_minorder. Also fix the format specifier
> from %lu to %u accordingly.
Fair enough, thanks.
AI review seems to have found a little pre-existing bug in there,
https://sashiko.dev/#/patchset/20260805093108.2352900-1-ye.liu@xxxxxxxxx