[PATCH 2/5] drm/debugfs: rework debugfs directory creation v3
kernel test robot
lkp at intel.com
Thu Apr 13 11:29:03 UTC 2023
Hi Christian,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on drm-intel/for-linux-next drm-intel/for-linux-next-fixes tegra/for-next linus/master v6.3-rc6 next-20230412]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Christian-K-nig/drm-debugfs-rework-debugfs-directory-creation-v3/20230412-235231
base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link: https://lore.kernel.org/r/20230412145206.2483-3-christian.koenig%40amd.com
patch subject: [PATCH 2/5] drm/debugfs: rework debugfs directory creation v3
config: arc-randconfig-r043-20230413 (https://download.01.org/0day-ci/archive/20230413/202304131935.9BjNzso4-lkp@intel.com/config)
compiler: arceb-elf-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
# https://github.com/intel-lab-lkp/linux/commit/92a7a4f0fd59d427c5827c323692b76095f90efc
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Christian-K-nig/drm-debugfs-rework-debugfs-directory-creation-v3/20230412-235231
git checkout 92a7a4f0fd59d427c5827c323692b76095f90efc
# 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=arc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304131935.9BjNzso4-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_drv.c: In function 'drm_dev_unregister':
>> drivers/gpu/drm/drm_drv.c:1011:9: error: implicit declaration of function 'drm_debugfs_dev_fini'; did you mean 'drm_debugfs_dev_init'? [-Werror=implicit-function-declaration]
1011 | drm_debugfs_dev_fini(dev);
| ^~~~~~~~~~~~~~~~~~~~
| drm_debugfs_dev_init
cc1: some warnings being treated as errors
vim +1011 drivers/gpu/drm/drm_drv.c
974
975 /**
976 * drm_dev_unregister - Unregister DRM device
977 * @dev: Device to unregister
978 *
979 * Unregister the DRM device from the system. This does the reverse of
980 * drm_dev_register() but does not deallocate the device. The caller must call
981 * drm_dev_put() to drop their final reference.
982 *
983 * A special form of unregistering for hotpluggable devices is drm_dev_unplug(),
984 * which can be called while there are still open users of @dev.
985 *
986 * This should be called first in the device teardown code to make sure
987 * userspace can't access the device instance any more.
988 */
989 void drm_dev_unregister(struct drm_device *dev)
990 {
991 if (drm_core_check_feature(dev, DRIVER_LEGACY))
992 drm_lastclose(dev);
993
994 dev->registered = false;
995
996 drm_client_dev_unregister(dev);
997
998 if (drm_core_check_feature(dev, DRIVER_MODESET))
999 drm_modeset_unregister_all(dev);
1000
1001 if (dev->driver->unload)
1002 dev->driver->unload(dev);
1003
1004 drm_legacy_pci_agp_destroy(dev);
1005 drm_legacy_rmmaps(dev);
1006
1007 remove_compat_control_link(dev);
1008 drm_minor_unregister(dev, DRM_MINOR_ACCEL);
1009 drm_minor_unregister(dev, DRM_MINOR_PRIMARY);
1010 drm_minor_unregister(dev, DRM_MINOR_RENDER);
> 1011 drm_debugfs_dev_fini(dev);
1012 }
1013 EXPORT_SYMBOL(drm_dev_unregister);
1014
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
More information about the dri-devel
mailing list