LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3650: warning: expecting prototype for amdgpu_device_fini(). Prototype was for amdgpu_device_fini_hw() instead
@ 2021-11-21 19:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-21 19:59 UTC (permalink / raw)
  To: Andrey Grodzovsky; +Cc: kbuild-all, linux-kernel, Alex Deucher

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   923dcc5eb0c111eccd51cc7ce1658537e3c38b25
commit: 72c8c97b1522ce7ed1789a42fc9828784ebb5e23 drm/amdgpu: Split amdgpu_device_fini into early and late
date:   6 months ago
config: x86_64-randconfig-m001-20211109 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=72c8c97b1522ce7ed1789a42fc9828784ebb5e23
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 72c8c97b1522ce7ed1789a42fc9828784ebb5e23
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ drivers/gpu/drm/amd/display/amdgpu_dm/ drivers/gpu/drm/amd/display/dc/ drivers/gpu/drm/amd/display/dmub/src/ drivers/gpu/drm/i915/ drivers/net/wwan/

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_device.c:3650: warning: expecting prototype for amdgpu_device_fini(). Prototype was for amdgpu_device_fini_hw() instead
--
>> drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:376: warning: expecting prototype for amdgpu_irq_fini(). Prototype was for amdgpu_irq_fini_sw() instead


vim +3650 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

d38ceaf99ed015 Alex Deucher      2015-04-20  3640  
d38ceaf99ed015 Alex Deucher      2015-04-20  3641  /**
d38ceaf99ed015 Alex Deucher      2015-04-20  3642   * amdgpu_device_fini - tear down the driver
d38ceaf99ed015 Alex Deucher      2015-04-20  3643   *
d38ceaf99ed015 Alex Deucher      2015-04-20  3644   * @adev: amdgpu_device pointer
d38ceaf99ed015 Alex Deucher      2015-04-20  3645   *
d38ceaf99ed015 Alex Deucher      2015-04-20  3646   * Tear down the driver info (all asics).
d38ceaf99ed015 Alex Deucher      2015-04-20  3647   * Called at driver shutdown.
d38ceaf99ed015 Alex Deucher      2015-04-20  3648   */
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3649  void amdgpu_device_fini_hw(struct amdgpu_device *adev)
d38ceaf99ed015 Alex Deucher      2015-04-20 @3650  {
aac891685da661 Dennis Li         2020-08-20  3651  	dev_info(adev->dev, "amdgpu: finishing device.\n");
9f87516764a9f2 Jesse Zhang       2019-11-08  3652  	flush_delayed_work(&adev->delayed_init_work);
bb0cd09be45ea4 Emily Deng        2021-03-04  3653  	ttm_bo_lock_delayed_workqueue(&adev->mman.bdev);
d0d13fe8749095 Yintian Tao       2019-11-18  3654  	adev->shutdown = true;
9f87516764a9f2 Jesse Zhang       2019-11-08  3655  
752c683dbb6559 Monk Liu          2020-02-20  3656  	/* make sure IB test finished before entering exclusive mode
752c683dbb6559 Monk Liu          2020-02-20  3657  	 * to avoid preemption on IB test
752c683dbb6559 Monk Liu          2020-02-20  3658  	 * */
519b8b76f0b62a Bokun Zhang       2020-07-28  3659  	if (amdgpu_sriov_vf(adev)) {
752c683dbb6559 Monk Liu          2020-02-20  3660  		amdgpu_virt_request_full_gpu(adev, false);
519b8b76f0b62a Bokun Zhang       2020-07-28  3661  		amdgpu_virt_fini_data_exchange(adev);
519b8b76f0b62a Bokun Zhang       2020-07-28  3662  	}
752c683dbb6559 Monk Liu          2020-02-20  3663  
e5b03032e34da8 Mikita Lipski     2018-03-15  3664  	/* disable all interrupts */
e5b03032e34da8 Mikita Lipski     2018-03-15  3665  	amdgpu_irq_disable_all(adev);
ff97cba8c1b24f Mikita Lipski     2018-03-14  3666  	if (adev->mode_info.mode_config_initialized){
ff97cba8c1b24f Mikita Lipski     2018-03-14  3667  		if (!amdgpu_device_has_dc_support(adev))
4a580877bdcb83 Luben Tuikov      2020-08-24  3668  			drm_helper_force_disable_all(adev_to_drm(adev));
ff97cba8c1b24f Mikita Lipski     2018-03-14  3669  		else
4a580877bdcb83 Luben Tuikov      2020-08-24  3670  			drm_atomic_helper_shutdown(adev_to_drm(adev));
ff97cba8c1b24f Mikita Lipski     2018-03-14  3671  	}
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3672  	amdgpu_fence_driver_fini_hw(adev);
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3673  
7c868b592d5c2c Yintian Tao       2019-11-29  3674  	if (adev->pm_sysfs_en)
58e955d9defad8 Emily Deng        2018-03-08  3675  		amdgpu_pm_sysfs_fini(adev);
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3676  	if (adev->ucode_sysfs_en)
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3677  		amdgpu_ucode_sysfs_fini(adev);
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3678  	sysfs_remove_files(&adev->dev->kobj, amdgpu_dev_attributes);
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3679  
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3680  
d38ceaf99ed015 Alex Deucher      2015-04-20  3681  	amdgpu_fbdev_fini(adev);
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3682  
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3683  	amdgpu_irq_fini_hw(adev);
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3684  }
72c8c97b1522ce Andrey Grodzovsky 2021-05-12  3685  

:::::: The code at line 3650 was first introduced by commit
:::::: d38ceaf99ed015f2a0b9af3499791bd3a3daae21 drm/amdgpu: add core driver (v4)

:::::: TO: Alex Deucher <alexander.deucher@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: 38315 bytes --]

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

only message in thread, other threads:[~2021-11-21 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-21 19:59 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3650: warning: expecting prototype for amdgpu_device_fini(). Prototype was for amdgpu_device_fini_hw() instead 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).