Skip to contentSkip to conversation

drivers/gpu/drm/tests/drm_kunit_helpers.c:324: warning: bad line: for a KUnit test

DISCUSSION kernel test robot 1 participant 1 message Jan 3, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0bc21e701a6ffacfdde7f04f87d664d82e8a13bf
commit: caa714f86699bcfb01aa2d698db12d91af7d0d81 drm/tests: helpers: Add helper for drm_display_mode_from_cea_vic()
date:   9 weeks ago
config: csky-randconfig-051-20240716 (https://download.01.org/0day-ci/archive/20250103/[email protected]/config)
compiler: csky-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250103/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/tests/drm_kunit_helpers.c:324: warning: bad line:                                            for a KUnit test

vim +324 drivers/gpu/drm/tests/drm_kunit_helpers.c

321
322 /**
323 * drm_kunit_display_mode_from_cea_vic() - return a mode for CEA VIC

 > 324						   for a KUnit test

325 * @test: The test context object
326 * @dev: DRM device
327 * @video_code: CEA VIC of the mode
328 *
329 * Creates a new mode matching the specified CEA VIC for a KUnit test.
330 *
331 * Resources will be cleaned up automatically.
332 *
333 * Returns: A new drm_display_mode on success or NULL on failure
334 */
335 struct drm_display_mode *
336 drm_kunit_display_mode_from_cea_vic(struct kunit *test, struct drm_device *dev,
337 u8 video_code)
338 {
339 struct drm_display_mode *mode;
340 int ret;
341
342 mode = drm_display_mode_from_cea_vic(dev, video_code);
343 if (!mode)
344 return NULL;
345
346 ret = kunit_add_action_or_reset(test,
347 kunit_action_drm_mode_destroy,
348 mode);
349 if (ret)
350 return NULL;
351
352 return mode;
353 }
354 EXPORT_SYMBOL_GPL(drm_kunit_display_mode_from_cea_vic);
355

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki