[linux-next:master 5284/8441] drivers/gpu/drm/tests/drm_kunit_helpers.c:171: warning: expecting prototype for drm_kunit_helper_context_alloc(). Prototype was for drm_kunit_helper_acquire_ctx_alloc() instead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   21ef7b1e17d039053edaeaf41142423810572741
commit: 6e193f9fbbb02e1bde88510a71823e5bf83c2010 [5284/8441] drm/tests: helpers: Create a helper to allocate a locking ctx
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230811/202308112307.TPmYbd3L-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230811/202308112307.TPmYbd3L-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308112307.TPmYbd3L-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/tests/drm_kunit_helpers.c:171: warning: expecting prototype for drm_kunit_helper_context_alloc(). Prototype was for drm_kunit_helper_acquire_ctx_alloc() instead


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

   156	
   157	/**
   158	 * drm_kunit_helper_context_alloc - Allocates an acquire context
   159	 * @test: The test context object
   160	 *
   161	 * Allocates and initializes a modeset acquire context.
   162	 *
   163	 * The context is tied to the kunit test context, so we must not call
   164	 * drm_modeset_acquire_fini() on it, it will be done so automatically.
   165	 *
   166	 * Returns:
   167	 * An ERR_PTR on error, a pointer to the newly allocated context otherwise
   168	 */
   169	struct drm_modeset_acquire_ctx *
   170	drm_kunit_helper_acquire_ctx_alloc(struct kunit *test)
 > 171	{
   172		struct drm_modeset_acquire_ctx *ctx;
   173		int ret;
   174	
   175		ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
   176		KUNIT_ASSERT_NOT_NULL(test, ctx);
   177	
   178		drm_modeset_acquire_init(ctx, 0);
   179	
   180		ret = kunit_add_action_or_reset(test,
   181						action_drm_release_context,
   182						ctx);
   183		if (ret)
   184			return ERR_PTR(ret);
   185	
   186		return ctx;
   187	}
   188	EXPORT_SYMBOL_GPL(drm_kunit_helper_acquire_ctx_alloc);
   189	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux