All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/tests/drm_kunit_helpers.c:324: warning: bad line: for a KUnit test
@ 2025-01-03 12:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-03 12:03 UTC (permalink / raw)
  To: Jinjie Ruan; +Cc: oe-kbuild-all, linux-kernel, Maxime Ripard

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/202501032001.O6WY1VCW-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250103/202501032001.O6WY1VCW-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/202501032001.O6WY1VCW-lkp@intel.com/

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	

-- 
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:[~2025-01-03 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03 12:03 drivers/gpu/drm/tests/drm_kunit_helpers.c:324: warning: bad line: for a KUnit test 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.