All of lore.kernel.org
 help / color / mirror / Atom feed
* [agd5f:drm-next 54/79] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1140:16: warning: no previous prototype for 'amdgpu_ras_debugfs_create_ctrl_node'
@ 2021-02-15 23:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-15 23:49 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   5c86a4a21df34ba7daf8fe361c26c7dd31333187
commit: eb14235668777baddfc77ce4f72ecfa2ea85ca55 [54/79] drm/amdgpu: do not keep debugfs dentry
config: alpha-randconfig-r034-20210215 (attached as .config)
compiler: alpha-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
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout eb14235668777baddfc77ce4f72ecfa2ea85ca55
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

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_ras.c:1140:16: warning: no previous prototype for 'amdgpu_ras_debugfs_create_ctrl_node' [-Wmissing-prototypes]
    1140 | struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/amdgpu_ras_debugfs_create_ctrl_node +1140 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

  1120	
  1121	/**
  1122	 * DOC: AMDGPU RAS Reboot Behavior for Unrecoverable Errors
  1123	 *
  1124	 * Normally when there is an uncorrectable error, the driver will reset
  1125	 * the GPU to recover.  However, in the event of an unrecoverable error,
  1126	 * the driver provides an interface to reboot the system automatically
  1127	 * in that event.
  1128	 *
  1129	 * The following file in debugfs provides that interface:
  1130	 * /sys/kernel/debug/dri/[0/1/2...]/ras/auto_reboot
  1131	 *
  1132	 * Usage:
  1133	 *
  1134	 * .. code-block:: bash
  1135	 *
  1136	 *	echo true > .../ras/auto_reboot
  1137	 *
  1138	 */
  1139	/* debugfs begin */
> 1140	struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
  1141	{
  1142		struct amdgpu_ras *con = amdgpu_ras_get_context(adev);
  1143		struct dentry *dir;
  1144		struct drm_minor *minor = adev_to_drm(adev)->primary;
  1145	
  1146		dir = debugfs_create_dir(RAS_FS_NAME, minor->debugfs_root);
  1147		debugfs_create_file("ras_ctrl", S_IWUGO | S_IRUGO, dir, adev,
  1148				    &amdgpu_ras_debugfs_ctrl_ops);
  1149		debugfs_create_file("ras_eeprom_reset", S_IWUGO | S_IRUGO, dir, adev,
  1150				    &amdgpu_ras_debugfs_eeprom_ops);
  1151	
  1152		/*
  1153		 * After one uncorrectable error happens, usually GPU recovery will
  1154		 * be scheduled. But due to the known problem in GPU recovery failing
  1155		 * to bring GPU back, below interface provides one direct way to
  1156		 * user to reboot system automatically in such case within
  1157		 * ERREVENT_ATHUB_INTERRUPT generated. Normal GPU recovery routine
  1158		 * will never be called.
  1159		 */
  1160		debugfs_create_bool("auto_reboot", S_IWUGO | S_IRUGO, dir, &con->reboot);
  1161	
  1162		/*
  1163		 * User could set this not to clean up hardware's error count register
  1164		 * of RAS IPs during ras recovery.
  1165		 */
  1166		debugfs_create_bool("disable_ras_err_cnt_harvest", 0644, dir,
  1167				    &con->disable_ras_err_cnt_harvest);
  1168		return dir;
  1169	}
  1170	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2021-02-15 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 23:49 [agd5f:drm-next 54/79] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1140:16: warning: no previous prototype for 'amdgpu_ras_debugfs_create_ctrl_node' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.