* [jpirko-mlxsw:wip_attestation_all_1 17/62] drivers/attestation/core/core.c:22 attestation_algorithm_valid() warn: always true condition '(algorithm >= 0) => (0-u32max >= 0)'
@ 2026-10-25 15:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-25 15:01 UTC (permalink / raw)
To: Jiri Pirko; +Cc: oe-kbuild-all
tree: https://github.com/jpirko/linux_mlxsw wip_attestation_all_1
head: e63637d55bc3ae7cbef988e3525c79b9381dba1b
commit: cae6b353cbd72ec9ffa91eae8788f9c7b742e22a [17/62] attestation: Add CTLV operation handling
config: xtensa-randconfig-r2202-20261025 (https://download.01.org/0day-ci/archive/20261025/202610251530.aCYKBFwj-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 8.5.0
smatch: v0.5.0-9187-g5189e3fb
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610251530.aCYKBFwj-lkp@intel.com/
New smatch warnings:
drivers/attestation/core/core.c:22 attestation_algorithm_valid() warn: always true condition '(algorithm >= 0) => (0-u32max >= 0)'
Old smatch warnings:
arch/xtensa/include/asm/thread_info.h:97 current_thread_info() warn: inconsistent indenting
vim +22 drivers/attestation/core/core.c
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 19
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 20 static bool attestation_algorithm_valid(enum hash_algo algorithm)
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 21 {
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 @22 return algorithm >= 0 && algorithm < HASH_ALGO__LAST && hash_digest_size[algorithm] &&
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 23 hash_digest_size[algorithm] <= HASH_MAX_DIGESTSIZE;
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 24 }
16a5aa0ea7bdc1 Jiri Pirko 2026-10-14 25
:::::: The code at line 22 was first introduced by commit
:::::: 16a5aa0ea7bdc17fc63eb251a8fcb0dc356e501c attestation: Prepare provider and instance core
:::::: TO: Jiri Pirko <jiri@nvidia.com>
:::::: CC: Jiri Pirko <jiri@nvidia.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-25 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-25 15:01 [jpirko-mlxsw:wip_attestation_all_1 17/62] drivers/attestation/core/core.c:22 attestation_algorithm_valid() warn: always true condition '(algorithm >= 0) => (0-u32max >= 0)' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.