summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAnas Iqbal <mohd.abd.6602@gmail.com>2026-03-14 11:01:37 +0000
committerMathieu Poirier <mathieu.poirier@linaro.org>2026-03-24 10:33:29 -0600
commit943cfbca992f44e67a36779d94008d9080ca054f (patch)
tree58643cd5045e2afb613c700bac36741544dfc354 /scripts/patch-kernel
parent46fcbcaa72885e814fa0e4cc306f13af41d086e2 (diff)
remoteproc: use SIZE_MAX in rproc_u64_fit_in_size_t()
Smatch reports: drivers/remoteproc/remoteproc_elf_loader.c:221 warn: always true condition '(val <= -1)' The helper function rproc_u64_fit_in_size_t() compares the value against (size_t)-1, which is equivalent to SIZE_MAX but can confuse static analysis tools and lead to the above warning. Replace (size_t)-1 with SIZE_MAX to make the intent explicit and avoid the Smatch warning without changing the behavior. Signed-off-by: Anas Iqbal <mohd.abd.6602@gmail.com> Link: https://lore.kernel.org/r/20260314110137.178981-1-mohd.abd.6602@gmail.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions