From: kernel test robot <lkp@intel.com>
To: Jiri Pirko <jiri@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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)'
Date: Sun, 25 Oct 2026 16:01:54 +0100 [thread overview]
Message-ID: <202610251530.aCYKBFwj-lkp@intel.com> (raw)
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
reply other threads:[~2026-10-25 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610251530.aCYKBFwj-lkp@intel.com \
--to=lkp@intel.com \
--cc=jiri@nvidia.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.