Hi Chu,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on linus/master v6.18 next-20251203]
[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#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Chu-Guangqing/gpu-drm-add-support-for-YHGCH-ZX1000-soc-chipset/20251202-102817
base:   https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next
patch link:    
https://lore.kernel.org/r/20251202022452.2636-2-chuguangqing%40inspur.com
patch subject: [PATCH v11 1/1] [DRIVER] gpu: drm: add support for YHGCH ZX1000 
soc chipset
config: i386-allmodconfig 
(https://download.01.org/0day-ci/archive/20251204/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20251204/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All error/warnings (new ones prefixed by >>):

>> drivers/gpu/drm/yhgch/yhgch_drm_drv.c:27:12: error: static declaration of 
>> 'yhgch_dumb_create' follows non-static declaration
      27 | static int yhgch_dumb_create(struct drm_file *file, struct 
drm_device *dev,
         |            ^~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/yhgch/yhgch_drm_drv.c:20:
   drivers/gpu/drm/yhgch/yhgch_drm_drv.h:48:5: note: previous declaration of 
'yhgch_dumb_create' with type 'int(struct drm_file *, struct drm_device *, 
struct drm_mode_create_dumb *)'
      48 | int yhgch_dumb_create(struct drm_file *file, struct drm_device *dev,
         |     ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/yhgch/yhgch_drm_drv.c: In function 'yhgch_dumb_create':
>> drivers/gpu/drm/yhgch/yhgch_drm_drv.c:32:15: error: implicit declaration of 
>> function 'drm_mode_size_dumb'; did you mean 'drm_mode_set_name'? 
>> [-Wimplicit-function-declaration]
      32 |         ret = drm_mode_size_dumb(dev, args, SZ_16, 0);
         |               ^~~~~~~~~~~~~~~~~~
         |               drm_mode_set_name
   drivers/gpu/drm/yhgch/yhgch_drm_drv.c: In function 'yhgch_kms_init':
>> drivers/gpu/drm/yhgch/yhgch_drm_drv.c:93:17: error: implicit declaration of 
>> function 'drm_err'; did you mean 'pr_err'? [-Wimplicit-function-declaration]
      93 |                 drm_err(dev, "failed to init de: %d\n", ret);
         |                 ^~~~~~~
         |                 pr_err
   drivers/gpu/drm/yhgch/yhgch_drm_drv.c: In function 'yhgch_pci_probe':
>> drivers/gpu/drm/yhgch/yhgch_drm_drv.c:262:17: error: implicit declaration of 
>> function 'drm_warn'; did you mean 'dev_warn'? 
>> [-Wimplicit-function-declaration]
     262 |                 drm_warn(dev, "enabling MSI failed: %d\n", ret);
         |                 ^~~~~~~~
         |                 dev_warn
--
   drivers/gpu/drm/yhgch/yhgch_drm_de.c: In function 
'yhgch_plane_atomic_update':
>> drivers/gpu/drm/yhgch/yhgch_drm_de.c:73:13: error: implicit declaration of 
>> function 'drm_gem_fb_begin_cpu_access'; did you mean 
>> 'dma_buf_begin_cpu_access'? [-Wimplicit-function-declaration]
      73 |         if (drm_gem_fb_begin_cpu_access(fb, DMA_FROM_DEVICE) == 0) {
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |             dma_buf_begin_cpu_access
>> drivers/gpu/drm/yhgch/yhgch_drm_de.c:78:17: error: implicit declaration of 
>> function 'drm_gem_fb_end_cpu_access'; did you mean 'dma_buf_end_cpu_access'? 
>> [-Wimplicit-function-declaration]
      78 |                 drm_gem_fb_end_cpu_access(fb, DMA_FROM_DEVICE);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                 dma_buf_end_cpu_access
>> drivers/gpu/drm/yhgch/yhgch_drm_de.c:68:24: warning: unused variable 'y' 
>> [-Wunused-variable]
      68 |         int offset, x, y;
         |                        ^
>> drivers/gpu/drm/yhgch/yhgch_drm_de.c:68:21: warning: unused variable 'x' 
>> [-Wunused-variable]
      68 |         int offset, x, y;
         |                     ^
>> drivers/gpu/drm/yhgch/yhgch_drm_de.c:68:13: warning: unused variable 
>> 'offset' [-Wunused-variable]
      68 |         int offset, x, y;
         |             ^~~~~~
   drivers/gpu/drm/yhgch/yhgch_drm_de.c: In function 'yhgch_de_init':
>> drivers/gpu/drm/yhgch/yhgch_drm_de.c:354:17: error: implicit declaration of 
>> function 'drm_err'; did you mean 'pr_err'? [-Wimplicit-function-declaration]
     354 |                 drm_err(dev, "failed to init plane: %d\n", ret);
         |                 ^~~~~~~
         |                 pr_err


vim +/yhgch_dumb_create +27 drivers/gpu/drm/yhgch/yhgch_drm_drv.c

    26  
  > 27  static int yhgch_dumb_create(struct drm_file *file, struct drm_device 
*dev,
    28                               struct drm_mode_create_dumb *args)
    29  {
    30          int ret;
    31  
  > 32          ret = drm_mode_size_dumb(dev, args, SZ_16, 0);
    33          if (ret)
    34                  return ret;
    35  
    36          return drm_gem_shmem_dumb_create(file, dev,  args);
    37  }
    38  
    39  static struct drm_driver yhgch_driver = {
    40          .driver_features        = DRIVER_ATOMIC | DRIVER_GEM | 
DRIVER_MODESET,
    41          .fops = &yhgch_fops,
    42          .name = "yhgch",
    43          .desc = "yhgch drm driver",
    44          .major = 3,
    45          .minor = 1,
    46          .dumb_create = yhgch_dumb_create,
    47          DRM_FBDEV_SHMEM_DRIVER_OPS,
    48  };
    49  
    50  static int __maybe_unused yhgch_pm_suspend(struct device *dev)
    51  {
    52          struct drm_device *drm_dev = dev_get_drvdata(dev);
    53  
    54          return drm_mode_config_helper_suspend(drm_dev);
    55  }
    56  
    57  static int __maybe_unused yhgch_pm_resume(struct device *dev)
    58  {
    59          struct drm_device *drm_dev = dev_get_drvdata(dev);
    60  
    61          return drm_mode_config_helper_resume(drm_dev);
    62  }
    63  
    64  static const struct dev_pm_ops yhgch_pm_ops = {
    65          SET_SYSTEM_SLEEP_PM_OPS(yhgch_pm_suspend,
    66                                  yhgch_pm_resume)
    67  };
    68  
    69  static const struct drm_mode_config_funcs yhgch_mode_funcs = {
    70          .atomic_check = drm_atomic_helper_check,
    71          .atomic_commit = drm_atomic_helper_commit,
    72          .fb_create = drm_gem_fb_create_with_dirty,
    73  };
    74  
    75  static int yhgch_kms_init(struct yhgch_drm_private *priv)
    76  {
    77          struct drm_device *dev = &priv->dev;
    78          int ret;
    79  
    80          ret = drmm_mode_config_init(dev);
    81          if (ret)
    82                  return ret;
    83  
    84          dev->mode_config.min_width = 0;
    85          dev->mode_config.min_height = 0;
    86          dev->mode_config.max_width = 1920;
    87          dev->mode_config.max_height = 1200;
    88          dev->mode_config.preferred_depth = 24;
    89          dev->mode_config.funcs = &yhgch_mode_funcs;
    90  
    91          ret = yhgch_de_init(priv);
    92          if (ret) {
  > 93                  drm_err(dev, "failed to init de: %d\n", ret);
    94                  return ret;
    95          }
    96  
    97          ret = yhgch_vdac_init(priv);
    98          if (ret) {
    99                  drm_err(dev, "failed to init vdac: %d\n", ret);
   100                  return ret;
   101          }
   102          drm_kms_helper_poll_init(dev);
   103  
   104          return 0;
   105  }
   106  

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

Reply via email to