lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c:399:5: warning: no previous prototype for 'amdgpu_vkms_output_init'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ab774587903771821b59471cc723bba6d893942
commit: 733ee71ae0d03a8b03711dca8bc94c8ac05a6bc3 drm/amdgpu: replace dce_virtual with amdgpu_vkms (v3)
date: 3 months ago
config: arc-randconfig-r043-20210927 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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/torvalds/linux.git/commit/?id=733ee71ae0d03a8b03711dca8bc94c8ac05a6bc3
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 733ee71ae0d03a8b03711dca8bc94c8ac05a6bc3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc

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/amdgpu_vkms.c:399:5: warning: no previous prototype for 'amdgpu_vkms_output_init' [-Wmissing-prototypes]
399 | int amdgpu_vkms_output_init(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~


vim +/amdgpu_vkms_output_init +399 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

84ec374bd58036 Ryan Taylor 2021-06-07 398
84ec374bd58036 Ryan Taylor 2021-06-07 @399 int amdgpu_vkms_output_init(struct drm_device *dev,
84ec374bd58036 Ryan Taylor 2021-06-07 400 struct amdgpu_vkms_output *output, int index)
84ec374bd58036 Ryan Taylor 2021-06-07 401 {
84ec374bd58036 Ryan Taylor 2021-06-07 402 struct drm_connector *connector = &output->connector;
84ec374bd58036 Ryan Taylor 2021-06-07 403 struct drm_encoder *encoder = &output->encoder;
84ec374bd58036 Ryan Taylor 2021-06-07 404 struct drm_crtc *crtc = &output->crtc;
84ec374bd58036 Ryan Taylor 2021-06-07 405 struct drm_plane *primary, *cursor = NULL;
84ec374bd58036 Ryan Taylor 2021-06-07 406 int ret;
84ec374bd58036 Ryan Taylor 2021-06-07 407
84ec374bd58036 Ryan Taylor 2021-06-07 408 primary = amdgpu_vkms_plane_init(dev, DRM_PLANE_TYPE_PRIMARY, index);
84ec374bd58036 Ryan Taylor 2021-06-07 409 if (IS_ERR(primary))
84ec374bd58036 Ryan Taylor 2021-06-07 410 return PTR_ERR(primary);
84ec374bd58036 Ryan Taylor 2021-06-07 411
84ec374bd58036 Ryan Taylor 2021-06-07 412 ret = amdgpu_vkms_crtc_init(dev, crtc, primary, cursor);
84ec374bd58036 Ryan Taylor 2021-06-07 413 if (ret)
84ec374bd58036 Ryan Taylor 2021-06-07 414 goto err_crtc;
84ec374bd58036 Ryan Taylor 2021-06-07 415
84ec374bd58036 Ryan Taylor 2021-06-07 416 ret = drm_connector_init(dev, connector, &amdgpu_vkms_connector_funcs,
84ec374bd58036 Ryan Taylor 2021-06-07 417 DRM_MODE_CONNECTOR_VIRTUAL);
84ec374bd58036 Ryan Taylor 2021-06-07 418 if (ret) {
84ec374bd58036 Ryan Taylor 2021-06-07 419 DRM_ERROR("Failed to init connector\n");
84ec374bd58036 Ryan Taylor 2021-06-07 420 goto err_connector;
84ec374bd58036 Ryan Taylor 2021-06-07 421 }
84ec374bd58036 Ryan Taylor 2021-06-07 422
84ec374bd58036 Ryan Taylor 2021-06-07 423 drm_connector_helper_add(connector, &amdgpu_vkms_conn_helper_funcs);
84ec374bd58036 Ryan Taylor 2021-06-07 424
84ec374bd58036 Ryan Taylor 2021-06-07 425 ret = drm_simple_encoder_init(dev, encoder, DRM_MODE_ENCODER_VIRTUAL);
84ec374bd58036 Ryan Taylor 2021-06-07 426 if (ret) {
84ec374bd58036 Ryan Taylor 2021-06-07 427 DRM_ERROR("Failed to init encoder\n");
84ec374bd58036 Ryan Taylor 2021-06-07 428 goto err_encoder;
84ec374bd58036 Ryan Taylor 2021-06-07 429 }
84ec374bd58036 Ryan Taylor 2021-06-07 430 encoder->possible_crtcs = 1 << index;
84ec374bd58036 Ryan Taylor 2021-06-07 431
84ec374bd58036 Ryan Taylor 2021-06-07 432 ret = drm_connector_attach_encoder(connector, encoder);
84ec374bd58036 Ryan Taylor 2021-06-07 433 if (ret) {
84ec374bd58036 Ryan Taylor 2021-06-07 434 DRM_ERROR("Failed to attach connector to encoder\n");
84ec374bd58036 Ryan Taylor 2021-06-07 435 goto err_attach;
84ec374bd58036 Ryan Taylor 2021-06-07 436 }
84ec374bd58036 Ryan Taylor 2021-06-07 437
84ec374bd58036 Ryan Taylor 2021-06-07 438 drm_mode_config_reset(dev);
84ec374bd58036 Ryan Taylor 2021-06-07 439
84ec374bd58036 Ryan Taylor 2021-06-07 440 return 0;
84ec374bd58036 Ryan Taylor 2021-06-07 441
84ec374bd58036 Ryan Taylor 2021-06-07 442 err_attach:
84ec374bd58036 Ryan Taylor 2021-06-07 443 drm_encoder_cleanup(encoder);
84ec374bd58036 Ryan Taylor 2021-06-07 444
84ec374bd58036 Ryan Taylor 2021-06-07 445 err_encoder:
84ec374bd58036 Ryan Taylor 2021-06-07 446 drm_connector_cleanup(connector);
84ec374bd58036 Ryan Taylor 2021-06-07 447
84ec374bd58036 Ryan Taylor 2021-06-07 448 err_connector:
84ec374bd58036 Ryan Taylor 2021-06-07 449 drm_crtc_cleanup(crtc);
84ec374bd58036 Ryan Taylor 2021-06-07 450
84ec374bd58036 Ryan Taylor 2021-06-07 451 err_crtc:
84ec374bd58036 Ryan Taylor 2021-06-07 452 drm_plane_cleanup(primary);
84ec374bd58036 Ryan Taylor 2021-06-07 453
84ec374bd58036 Ryan Taylor 2021-06-07 454 return ret;
84ec374bd58036 Ryan Taylor 2021-06-07 455 }
733ee71ae0d03a Ryan Taylor 2021-06-18 456

:::::: The code at line 399 was first introduced by commit
:::::: 84ec374bd580364a32818c9fc269c19d6e931cab drm/amdgpu: create amdgpu_vkms (v4)

:::::: TO: Ryan Taylor <Ryan.Taylor@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-15 16:24    [W:0.051 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site