Hi Guido,

kernel test robot noticed the following build warnings:

[auto build test WARNING on b320789d6883cc00ac78ce83bccbfe7ed58afcf0]

url:    
https://github.com/intel-lab-lkp/linux/commits/Guido-G-nther/drm-panel-visionox-rm69299-Fix-clock-frequency-for-SHIFT6mq/20250901-222400
base:   b320789d6883cc00ac78ce83bccbfe7ed58afcf0
patch link:    
https://lore.kernel.org/r/20250901-shift6mq-panel-v1-3-444b4abbfaea%40sigxcpu.org
patch subject: [PATCH 3/3] drm/panel: visionox-rm69299: Add backlight support
config: x86_64-randconfig-123-20250902 
(https://download.01.org/0day-ci/archive/20250902/202509021907.mzz38htr-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250902/202509021907.mzz38htr-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202509021907.mzz38htr-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/panel/panel-visionox-rm69299.c:341:24: sparse: sparse: Using 
>> plain integer as NULL pointer
   drivers/gpu/drm/panel/panel-visionox-rm69299.c:411:42: sparse: sparse: 
symbol 'visionox_rm69299_1080p_display_desc' was not declared. Should it be 
static?
   drivers/gpu/drm/panel/panel-visionox-rm69299.c:417:42: sparse: sparse: 
symbol 'visionox_rm69299_shift_desc' was not declared. Should it be static?

vim +341 drivers/gpu/drm/panel/panel-visionox-rm69299.c

   329  
   330  static struct backlight_device *
   331  visionox_rm69299_create_backlight(struct visionox_rm69299 *ctx)
   332  {
   333          struct device *dev = &ctx->dsi->dev;
   334          const struct backlight_properties props = {
   335                  .type = BACKLIGHT_RAW,
   336                  .brightness = ctx->desc->initial_brightness,
   337                  .max_brightness = ctx->desc->max_brightness,
   338          };
   339  
   340          if (!ctx->desc->max_brightness)
 > 341                  return 0;
   342  
   343          return devm_backlight_device_register(dev, dev_name(dev), dev, 
ctx->dsi,
   344                                                &visionox_rm69299_bl_ops,
   345                                                &props);
   346  }
   347  

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

Reply via email to