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/202206230238.d3tmklmq-...@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/46edccc8b6046ecee2de71b23c941dc23514f522
        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 46edccc8b6046ecee2de71b23c941dc23514f522
        # 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 <l...@intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_crtc.c: In function 'drmm_crtc_init_with_planes':
>> drivers/gpu/drm/drm_crtc.c:421:43: warning: function 
>> 'drmm_crtc_init_with_planes' might be a candidate for 'gnu_printf' format 
>> attribute [-Wsuggest-attribute=format]
     421 |                                           name, ap);
         |                                           ^~~~


vim +421 drivers/gpu/drm/drm_crtc.c

   379  
   380  /**
   381   * drmm_crtc_init_with_planes - Initialise a new CRTC object with
   382   *    specified primary and cursor planes.
   383   * @dev: DRM device
   384   * @crtc: CRTC object to init
   385   * @primary: Primary plane for CRTC
   386   * @cursor: Cursor plane for CRTC
   387   * @funcs: callbacks for the new CRTC
   388   * @name: printf style format string for the CRTC name, or NULL for 
default name
   389   *
   390   * Inits a new object created as base part of a driver crtc object. 
Drivers
   391   * should use this function instead of drm_crtc_init(), which is only 
provided
   392   * for backwards compatibility with drivers which do not yet support 
universal
   393   * planes). For really simple hardware which has only 1 plane look at
   394   * drm_simple_display_pipe_init() instead.
   395   *
   396   * Cleanup is automatically handled through registering
   397   * drmm_crtc_cleanup() with drmm_add_action(). The crtc structure should
   398   * be allocated with drmm_kzalloc().
   399   *
   400   * The @drm_crtc_funcs.destroy hook must be NULL.
   401   *
   402   * The @primary and @cursor planes are only relevant for legacy uAPI, 
see
   403   * &drm_crtc.primary and &drm_crtc.cursor.
   404   *
   405   * Returns:
   406   * Zero on success, error code on failure.
   407   */
   408  int drmm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc 
*crtc,
   409                                 struct drm_plane *primary,
   410                                 struct drm_plane *cursor,
   411                                 const struct drm_crtc_funcs *funcs,
   412                                 const char *name, ...)
   413  {
   414          va_list ap;
   415          int ret;
   416  
   417          WARN_ON(funcs && funcs->destroy);
   418  
   419          va_start(ap, name);
   420          ret = __drm_crtc_init_with_planes(dev, crtc, primary, cursor, 
funcs,
 > 421                                            name, ap);
   422          va_end(ap);
   423          if (ret)
   424                  return ret;
   425  
   426          ret = drmm_add_action_or_reset(dev, 
drmm_crtc_init_with_planes_cleanup,
   427                                         crtc);
   428          if (ret)
   429                  return ret;
   430  
   431          return 0;
   432  }
   433  EXPORT_SYMBOL(drmm_crtc_init_with_planes);
   434  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Reply via email to