summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorJosh Law <objecting@objecting.org>2026-03-18 15:59:16 +0000
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-03-19 08:44:34 +0900
commit68f479de0e013d0c27432240f35bf2a3cc3260f6 (patch)
tree41e0a47c56419fd4a7b34970f2e41048c62d9757 /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent8f3e79397a980512c2329b3445ebe7258e2d3f01 (diff)
lib/bootconfig: use size_t for strlen result in xbc_node_match_prefix()
lib/bootconfig.c:198:19: warning: conversion from 'size_t' to 'int' may change value [-Wconversion] lib/bootconfig.c:200:33: warning: conversion to '__kernel_size_t' from 'int' may change the sign of the result [-Wsign-conversion] strlen() returns size_t but the result was stored in an int. The value is then passed back to strncmp() which expects size_t, causing a second sign-conversion warning on the round-trip. Use size_t throughout to match the API types. Link: https://lore.kernel.org/all/20260318155919.78168-11-objecting@objecting.org/ Signed-off-by: Josh Law <objecting@objecting.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions