Re: [PATCH] mm: debug_page_alloc: fix type mismatch for debug_guardpage_minorder

Andrew Morton <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
Message-ID <[email protected]>
On Wed,  5 Aug 2026 17:31:07 +0800 Ye Liu <[email protected]> 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/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.