]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/bootconfig: fix signed comparison in xbc_node_get_data()
authorJosh Law <objecting@objecting.org>
Wed, 18 Mar 2026 15:59:15 +0000 (15:59 +0000)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 18 Mar 2026 23:44:26 +0000 (08:44 +0900)
commit8f3e79397a980512c2329b3445ebe7258e2d3f01
tree2c73877d2110c44cd02c78c1d5d7ca4cdc56fb42
parent909bb3a6c53faf86e96694ed09e7f32cad11ba2e
lib/bootconfig: fix signed comparison in xbc_node_get_data()

  lib/bootconfig.c:188:28: warning: comparison of integer expressions
  of different signedness: 'int' and 'size_t' [-Wsign-compare]

The local variable 'offset' is declared as int, but xbc_data_size is
size_t.  Change the type to size_t to match and eliminate the warning.

Link: https://lore.kernel.org/all/20260318155919.78168-10-objecting@objecting.org/
Signed-off-by: Josh Law <objecting@objecting.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
lib/bootconfig.c