* [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
@ 2023-08-11 15:42 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-08-11 15:42 UTC (permalink / raw)
To: Maxime Ripard
Cc: oe-kbuild-all, Linux Memory Management List,
Javier Martinez Canillas, Maíra Canal
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@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230811/202308112307.TPmYbd3L-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/202308112307.TPmYbd3L-lkp@intel.com/
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [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
@ 2023-08-11 15:53 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-08-11 15:53 UTC (permalink / raw)
To: Maxime Ripard
Cc: llvm, oe-kbuild-all, Linux Memory Management List,
Javier Martinez Canillas, Maíra Canal
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: powerpc-randconfig-r031-20230811 (https://download.01.org/0day-ci/archive/20230811/202308112326.AJAVWCOC-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230811/202308112326.AJAVWCOC-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/202308112326.AJAVWCOC-lkp@intel.com/
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-11 15:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11 15:42 [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 kernel test robot
2023-08-11 15:53 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).