summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-11-22 12:45:37 +0100
committerAndrew Morton <akpm@linux-foundation.org>2025-11-27 14:24:43 -0800
commitaf06a40474793ad9677d1771c0624ae8191f0892 (patch)
tree6515832ca34fc48affb6c063f1086ba578c8cacf /tools/lib/python/kdoc
parent40cd0e8dd283b11aff9628fe7fd810ea7cc53e32 (diff)
init: replace simple_strtoul with kstrtoul to improve lpj_setup
Replace simple_strtoul() with the recommended kstrtoul() for parsing the 'lpj=' boot parameter. Check the return value of kstrtoul() and reject invalid values. This adds error handling while preserving existing behavior for valid values, and removes use of the deprecated simple_strtoul() helper. Link: https://lkml.kernel.org/r/20251122114539.446937-2-thorsten.blum@linux.dev Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Cc: Christian Brauner <brauner@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions