* include/rv/automata.h:64:22: sparse: sparse: unsigned value that used to be signed checked against zero?
@ 2026-10-05 23:52 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-05 23:52 UTC (permalink / raw)
To: Gabriele Monaco; +Cc: oe-kbuild-all, 0day robot, Nam Cao, Juri Lelli
tree: https://github.com/intel-lab-lkp/linux/commits/Gabriele-Monaco/rv-Force-environment-reset-action-on-HA-monitor-start/20260929-144859
head: 60a413bc9eebf1d4e479e739c52d33f743fd3fb2
commit: 0aa6649f45c580345633b42c1822dc00b25c81ed rv: Add dl_server specific monitors
date: 6 days ago
config: x86_64-randconfig-2301-20261005 (https://download.01.org/0day-ci/archive/20261006/202610060128.Sj0QiYiK-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261006/202610060128.Sj0QiYiK-lkp@intel.com/reproduce)
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/202610060128.Sj0QiYiK-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/trace/rv/monitors/boost/boost.c: note: in included file (through include/rv/ha_monitor.h):
>> include/rv/automata.h:64:22: sparse: sparse: unsigned value that used to be signed checked against zero?
kernel/trace/rv/monitors/boost/boost.c:173:65: sparse: signed value source
vim +64 include/rv/automata.h
30984ccf31b7f0 Gabriele Monaco 2025-11-26 51
30984ccf31b7f0 Gabriele Monaco 2025-11-26 52 /*
30984ccf31b7f0 Gabriele Monaco 2025-11-26 53 * model_get_next_state - process an automaton event occurrence
30984ccf31b7f0 Gabriele Monaco 2025-11-26 54 *
30984ccf31b7f0 Gabriele Monaco 2025-11-26 55 * Given the current state (curr_state) and the event (event), returns
30984ccf31b7f0 Gabriele Monaco 2025-11-26 56 * the next state, or INVALID_STATE in case of error.
30984ccf31b7f0 Gabriele Monaco 2025-11-26 57 */
fa9b26dfa172d1 Gabriele Monaco 2025-11-26 58 static inline enum states model_get_next_state(enum states curr_state,
30984ccf31b7f0 Gabriele Monaco 2025-11-26 59 enum events event)
30984ccf31b7f0 Gabriele Monaco 2025-11-26 60 {
30984ccf31b7f0 Gabriele Monaco 2025-11-26 61 if ((curr_state < 0) || (curr_state >= STATE_MAX))
30984ccf31b7f0 Gabriele Monaco 2025-11-26 62 return INVALID_STATE;
30984ccf31b7f0 Gabriele Monaco 2025-11-26 63
30984ccf31b7f0 Gabriele Monaco 2025-11-26 @64 if ((event < 0) || (event >= EVENT_MAX))
30984ccf31b7f0 Gabriele Monaco 2025-11-26 65 return INVALID_STATE;
30984ccf31b7f0 Gabriele Monaco 2025-11-26 66
30984ccf31b7f0 Gabriele Monaco 2025-11-26 67 return RV_AUTOMATON_NAME.function[curr_state][event];
30984ccf31b7f0 Gabriele Monaco 2025-11-26 68 }
30984ccf31b7f0 Gabriele Monaco 2025-11-26 69
--
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-05 23:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-05 23:52 include/rv/automata.h:64:22: sparse: sparse: unsigned value that used to be signed checked against zero? 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.