From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [intel-lts:6.18/linux 1/1] drivers/media/platform/intel/ipu-acpi.c:73:25: sparse: sparse: unsigned value that used to be signed checked against zero?
Date: Thu, 09 Jul 2026 13:46:58 +0800 [thread overview]
Message-ID: <202607091328.hDhinvap-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence static check first_new_problem: drivers/media/platform/intel/ipu-acpi.c:73:25: sparse: sparse: unsigned value that used to be signed checked against zero?"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: hepengpx <pengpengx.he@intel.com>
CC: "sys_oak" <sys_oak@intel.com>
tree: https://github.com/intel/linux-intel-lts.git 6.18/linux
head: 5100e1c74efeba843945492f8d5840e6166c0392
commit: d1a4a0a2fedfc816e1f7db99c4858dfc0b8fd300 [1/1] media: pci: intel: support PDATA in Kconfig/Makefile
:::::: branch date: 10 days ago
:::::: commit date: 3 months ago
config: i386-randconfig-r123-20260708 (https://download.01.org/0day-ci/archive/20260709/202607091328.hDhinvap-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/20260709/202607091328.hDhinvap-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/r/202607091328.hDhinvap-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/media/platform/intel/ipu-acpi.c:73:25: sparse: sparse: unsigned value that used to be signed checked against zero?
drivers/media/platform/intel/ipu-acpi.c:79:16: sparse: signed value source
--
>> drivers/media/platform/intel/ipu-acpi-pdata.c:36:30: sparse: sparse: symbol 'acpi_subdev_pdata' was not declared. Should it be static?
>> drivers/media/platform/intel/ipu-acpi-pdata.c:43:21: sparse: sparse: symbol 'serdes_info' was not declared. Should it be static?
vim +73 drivers/media/platform/intel/ipu-acpi.c
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 68
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 69 static int get_table_index(const char *acpi_name)
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 70 {
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 71 int i;
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 72
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 @73 for (i = 0; i < ARRAY_SIZE(supported_devices); i++) {
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 74 if (!strncmp(supported_devices[i].hid_name, acpi_name,
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 75 strlen(supported_devices[i].hid_name)))
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 76 return i;
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 77 }
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 78
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 79 return -ENODEV;
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 80 }
02f6fe497a2baa Shahidan, Muhammad Shahmil 2026-04-08 81
:::::: The code at line 73 was first introduced by commit
:::::: 02f6fe497a2baa45f229a6c4039418e423e8ece6 Add IPU ACPI drivers
:::::: TO: Shahidan, Muhammad Shahmil <muhammad.shahmil.shahidan@intel.com>
:::::: CC: sys_oak <sys_oak@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-09 5:48 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=202607091328.hDhinvap-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@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.