All of lore.kernel.org
 help / color / mirror / Atom feed
* [agd5f:drm-next 12/67] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c:138:22: warning: variable 'feature_support' set but not used
@ 2023-04-19  0:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-19  0:08 UTC (permalink / raw)
  To: Leon Huang; +Cc: oe-kbuild-all, Alex Deucher, Rodrigo Siqueira

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   86b20703e4c5a3c39891def0a68e7438aeca9db9
commit: b8fe56375f78835db47565d91ea9d21767fe3c08 [12/67] drm/amd/display: Refactor ABM feature
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230419/202304190746.ViVd2eR5-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.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
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout b8fe56375f78835db47565d91ea9d21767fe3c08
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ drivers/gpu/drm/amd/display/dc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304190746.ViVd2eR5-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c: In function 'dmub_abm_set_event_ex':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c:138:22: warning: variable 'feature_support' set but not used [-Wunused-but-set-variable]
     138 |         unsigned int feature_support;
         |                      ^~~~~~~~~~~~~~~
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:83:6: warning: no previous prototype for 'dmub_abm_init' [-Wmissing-prototypes]
      83 | void dmub_abm_init(struct abm *abm, uint32_t backlight)
         |      ^~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:124:14: warning: no previous prototype for 'dmub_abm_get_current_backlight' [-Wmissing-prototypes]
     124 | unsigned int dmub_abm_get_current_backlight(struct abm *abm)
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:135:14: warning: no previous prototype for 'dmub_abm_get_target_backlight' [-Wmissing-prototypes]
     135 | unsigned int dmub_abm_get_target_backlight(struct abm *abm)
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:146:6: warning: no previous prototype for 'dmub_abm_set_level' [-Wmissing-prototypes]
     146 | bool dmub_abm_set_level(struct abm *abm, uint32_t level, uint8_t panel_mask)
         |      ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:167:6: warning: no previous prototype for 'dmub_abm_set_ambient_level' [-Wmissing-prototypes]
     167 | void dmub_abm_set_ambient_level(struct abm *abm, unsigned int ambient_lux, uint8_t panel_mask)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:189:6: warning: no previous prototype for 'dmub_abm_init_config' [-Wmissing-prototypes]
     189 | void dmub_abm_init_config(struct abm *abm,
         |      ^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:221:6: warning: no previous prototype for 'dmub_abm_set_pause' [-Wmissing-prototypes]
     221 | bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_inst)
         |      ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:241:6: warning: no previous prototype for 'dmub_abm_set_pipe' [-Wmissing-prototypes]
     241 | bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint32_t panel_inst)
         |      ^~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:263:6: warning: no previous prototype for 'dmub_abm_set_backlight_level' [-Wmissing-prototypes]
     263 | bool dmub_abm_set_backlight_level(struct abm *abm,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/feature_support +138 drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c

   133	
   134	static bool dmub_abm_set_event_ex(struct abm *abm, unsigned int full_screen, unsigned int video_mode,
   135			unsigned int hdr_mode, unsigned int panel_inst)
   136	{
   137		bool ret = false;
 > 138		unsigned int feature_support;
   139	
   140		feature_support = abm_feature_support(abm, panel_inst);
   141	
   142		return ret;
   143	}
   144	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-19  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-19  0:08 [agd5f:drm-next 12/67] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c:138:22: warning: variable 'feature_support' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.