LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [agd5f:drm-next 21/49] drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c:399:5: warning: no previous prototype for 'amdgpu_vkms_output_init'
@ 2021-08-04  0:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-04  0:14 UTC (permalink / raw)
  To: Ryan Taylor; +Cc: kbuild-all, linux-kernel, Alex Deucher

[-- Attachment #1: Type: text/plain, Size: 5584 bytes --]

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   6931dae816ce11a41099b923f25c0503842cc9cd
commit: 0d040c909b80e90138bc9823a014fb1c93ebadc9 [21/49] drm/amdgpu: replace dce_virtual with amdgpu_vkms (v3)
config: sparc64-randconfig-r011-20210803 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 10.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
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout 0d040c909b80e90138bc9823a014fb1c93ebadc9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=sparc64 

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

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

:::::: The code at line 399 was first introduced by commit
:::::: eeba0b9046fcfa7a01ae48a1402d4a8754a5521d 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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34112 bytes --]

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04  0:14 [agd5f:drm-next 21/49] drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c:399:5: warning: no previous prototype for 'amdgpu_vkms_output_init' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).