* drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:213:24: sparse: sparse: not a function iter_start
@ 2026-09-19 1:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-19 1:09 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:213:24: sparse: sparse: not a function iter_start"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Imre Deak <imre.deak@intel.com>
CC: "Michał Grzelak" <michal.grzelak@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f259f446f5198d98e13756d2cd531812a0ad3064
commit: ee4c8f2e2a9ac8871a14c9a17e93d6647d5ff2c8 drm/i915/kunit: DP link: add baseline fixed table reference test
date: 2 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 2 months ago
config: i386-randconfig-1300-20260918 (https://download.01.org/0day-ci/archive/20260919/202609190910.AYvX7XC8-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260919/202609190910.AYvX7XC8-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
| Fixes: ee4c8f2e2a9a ("drm/i915/kunit: DP link: add baseline fixed table reference test")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202609190910.AYvX7XC8-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:213:24: sparse: sparse: not a function iter_start
>> drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:225:22: sparse: sparse: not a function iter_end
>> drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:236:20: sparse: sparse: not a function update
drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:278:59: sparse: sparse: not a function init
drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:289:36: sparse: sparse: not a function cleanup
vim +213 drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 195
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 196 /*
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 197 * TEST: Baseline with fixed reference table
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 198 * -----------------------------------------
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 199 * Verify the link_caps config iterator using fixed standard DP config tables.
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 200 */
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 201 static void baseline_test_for_order(struct kunit *test,
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 202 struct intel_dp_link_caps *link_caps,
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 203 struct intel_dp_link_caps_order config_order)
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 204 {
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 205 struct test_ctx *ctx = test->priv;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 206 const struct link_config_set *config_set =
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 207 link_caps_config_order_key_to_set(test, config_order.key);
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 208 const struct intel_dp_link_caps_test_ops *ops = ctx->link_caps_ops;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 209 struct intel_dp_link_config iter_config;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 210 struct intel_dp_link_caps_iter iter;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 211 int pos = 0;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 212
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 @213 ops->iter_start(&iter, link_caps, config_order, INTEL_DP_LINK_CAPS_FILTER_ALL);
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 214 for_each_dp_link_config(&iter, &iter_config) {
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 215 int idx = pos;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 216
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 217 if (config_order.dir == INTEL_DP_LINK_CAPS_ORDER_DIR_DESC)
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 218 idx = config_set->size - idx - 1;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 219
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 220 KUNIT_EXPECT_TRUE(test, link_configs_match(&iter_config,
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 221 &config_set->entries[idx]));
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 222
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 223 pos++;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 224 }
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 @225 ops->iter_end(&iter);
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 226 }
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 227
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 228 static void intel_dp_link_caps_test_baseline(struct kunit *test)
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 229 {
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 230 struct test_ctx *ctx = test->priv;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 231 struct intel_dp_link_caps *link_caps = ctx->dev.dig_port.dp.link.caps;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 232 const struct intel_dp_link_caps_test_ops *ops =
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 233 ctx->link_caps_ops;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 234 int i;
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 235
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 @236 ops->update(link_caps,
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 237 standard_dp_link_rates, LINK_TEST_NUM_STANDARD_RATES,
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 238 LINK_TEST_MAX_LANE_COUNT,
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 239 true);
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 240
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 241 for (i = 0; i < ARRAY_SIZE(config_orders); i++)
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 242 baseline_test_for_order(test, link_caps, config_orders[i]);
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 243 }
ee4c8f2e2a9ac8 Imre Deak 2026-07-07 244
--
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-09-19 1:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-19 1:09 drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c:213:24: sparse: sparse: not a function iter_start 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.