1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
2 /* Copyright (c) 2023 Imagination Technologies Ltd. */
7 /* Forward declaration from <drm/drm_drv.h>. */
10 #if defined(CONFIG_DEBUG_FS)
11 /* Forward declaration from "pvr_device.h". */
14 /* Forward declaration from <linux/dcache.h>. */
17 struct pvr_debugfs_entry {
19 void (*init)(struct pvr_device *pvr_dev, struct dentry *dir);
22 void pvr_debugfs_init(struct drm_minor *minor);
23 #else /* defined(CONFIG_DEBUG_FS) */
24 #include <linux/compiler_attributes.h>
26 static __always_inline void pvr_debugfs_init(struct drm_minor *minor) {}
27 #endif /* defined(CONFIG_DEBUG_FS) */
29 #endif /* PVR_DEBUGFS_H */