From: kernel test robot <lkp@intel.com>
To: Wayne Lin <Wayne.Lin@amd.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>
Subject: [linux-next:master 5607/7024] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5301:5: warning: no previous prototype for 'amdgpu_dm_crtc_atomic_set_property'
Date: Fri, 20 Nov 2020 08:01:23 +0800 [thread overview]
Message-ID: <202011200821.NM7YCoqv-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5134 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f8550c0d35df3d027724b250a8c5888dfb2fa749
commit: c920888c604d72799d057bbcd9e28a6c003ccfbe [5607/7024] drm/amd/display: Expose new CRC window property
config: microblaze-randconfig-r006-20201119 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c920888c604d72799d057bbcd9e28a6c003ccfbe
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout c920888c604d72799d057bbcd9e28a6c003ccfbe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'create_stream_for_sink':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5077:11: warning: variable 'link_bandwidth_kbps' set but not used [-Wunused-but-set-variable]
5077 | uint32_t link_bandwidth_kbps;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5301:5: warning: no previous prototype for 'amdgpu_dm_crtc_atomic_set_property' [-Wmissing-prototypes]
5301 | int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5325:5: warning: no previous prototype for 'amdgpu_dm_crtc_atomic_get_property' [-Wmissing-prototypes]
5325 | int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_commit_cursors':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7575:44: warning: variable 'new_plane_state' set but not used [-Wunused-but-set-variable]
7575 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
vim +/amdgpu_dm_crtc_atomic_set_property +5301 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
5299
5300 #ifdef CONFIG_DEBUG_FS
> 5301 int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc,
5302 struct drm_crtc_state *crtc_state,
5303 struct drm_property *property,
5304 uint64_t val)
5305 {
5306 struct drm_device *dev = crtc->dev;
5307 struct amdgpu_device *adev = drm_to_adev(dev);
5308 struct dm_crtc_state *dm_new_state =
5309 to_dm_crtc_state(crtc_state);
5310
5311 if (property == adev->dm.crc_win_x_start_property)
5312 dm_new_state->crc_window.x_start = val;
5313 else if (property == adev->dm.crc_win_y_start_property)
5314 dm_new_state->crc_window.y_start = val;
5315 else if (property == adev->dm.crc_win_x_end_property)
5316 dm_new_state->crc_window.x_end = val;
5317 else if (property == adev->dm.crc_win_y_end_property)
5318 dm_new_state->crc_window.y_end = val;
5319 else
5320 return -EINVAL;
5321
5322 return 0;
5323 }
5324
> 5325 int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc,
5326 const struct drm_crtc_state *state,
5327 struct drm_property *property,
5328 uint64_t *val)
5329 {
5330 struct drm_device *dev = crtc->dev;
5331 struct amdgpu_device *adev = drm_to_adev(dev);
5332 struct dm_crtc_state *dm_state =
5333 to_dm_crtc_state(state);
5334
5335 if (property == adev->dm.crc_win_x_start_property)
5336 *val = dm_state->crc_window.x_start;
5337 else if (property == adev->dm.crc_win_y_start_property)
5338 *val = dm_state->crc_window.y_start;
5339 else if (property == adev->dm.crc_win_x_end_property)
5340 *val = dm_state->crc_window.x_end;
5341 else if (property == adev->dm.crc_win_y_end_property)
5342 *val = dm_state->crc_window.y_end;
5343 else
5344 return -EINVAL;
5345
5346 return 0;
5347 }
5348 #endif
5349
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 22226 bytes --]
reply other threads:[~2020-11-20 0:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202011200821.NM7YCoqv-lkp@intel.com \
--to=lkp@intel.com \
--cc=Wayne.Lin@amd.com \
--cc=alexander.deucher@amd.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox