[PATCH v2 03/68] drm/encoder: Introduce drmm_encoder_init
kernel test robot
lkp at intel.com
Wed Jun 22 19:38:54 UTC 2022
Hi Maxime,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20220622]
[also build test WARNING on v5.19-rc3]
[cannot apply to drm-misc/drm-misc-next drm-intel/for-linux-next drm-tip/drm-tip linus/master anholt/for-next v5.19-rc3 v5.19-rc2 v5.19-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/intel-lab-lkp/linux/commits/Maxime-Ripard/drm-vc4-Fix-hotplug-for-vc4/20220622-223842
base: ac0ba5454ca85162c08dc429fef1999e077ca976
config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20220623/202206230352.n3jM0UCD-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/241f292ab7ccd70b2f6259d1155de8d1bfdd5c9c
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Maxime-Ripard/drm-vc4-Fix-hotplug-for-vc4/20220622-223842
git checkout 241f292ab7ccd70b2f6259d1155de8d1bfdd5c9c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/drm_encoder.c: In function 'drmm_encoder_init':
>> drivers/gpu/drm/drm_encoder.c:269:9: warning: function 'drmm_encoder_init' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
269 | ret = __drm_encoder_init(dev, encoder, funcs, encoder_type, name, ap);
| ^~~
vim +269 drivers/gpu/drm/drm_encoder.c
239
240 /**
241 * drmm_encoder_init - Initialize a preallocated encoder
242 * @dev: drm device
243 * @encoder: the encoder to init
244 * @funcs: callbacks for this encoder (optional)
245 * @encoder_type: user visible type of the encoder
246 * @name: printf style format string for the encoder name, or NULL for default name
247 *
248 * Initializes a preallocated encoder. Encoder should be subclassed as
249 * part of driver encoder objects. Cleanup is automatically handled
250 * through registering drm_encoder_cleanup() with drmm_add_action(). The
251 * encoder structure should be allocated with drmm_kzalloc().
252 *
253 * The @drm_encoder_funcs.destroy hook must be NULL.
254 *
255 * Returns:
256 * Zero on success, error code on failure.
257 */
258 int drmm_encoder_init(struct drm_device *dev, struct drm_encoder *encoder,
259 const struct drm_encoder_funcs *funcs,
260 int encoder_type, const char *name, ...)
261 {
262 va_list ap;
263 int ret;
264
265 if (WARN_ON(funcs && funcs->destroy))
266 return -EINVAL;
267
268 va_start(ap, name);
> 269 ret = __drm_encoder_init(dev, encoder, funcs, encoder_type, name, ap);
270 va_end(ap);
271 if (ret)
272 return ret;
273
274 ret = drmm_add_action_or_reset(dev, drmm_encoder_alloc_release, encoder);
275 if (ret)
276 return ret;
277
278 return 0;
279 }
280 EXPORT_SYMBOL(drmm_encoder_init);
281
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the dri-devel
mailing list