1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 2 /* Copyright (c) 2023 Imagination Technologies Ltd. */ 3 4 #ifndef PVR_DEBUGFS_H 5 #define PVR_DEBUGFS_H 6 7 /* Forward declaration from <drm/drm_drv.h>. */ 8 struct drm_minor; 9 10 #if defined(CONFIG_DEBUG_FS) 11 /* Forward declaration from "pvr_device.h". */ 12 struct pvr_device; 13 14 /* Forward declaration from <linux/dcache.h>. */ 15 struct dentry; 16 17 struct pvr_debugfs_entry { 18 const char *name; 19 void (*init)(struct pvr_device *pvr_dev, struct dentry *dir); 20 }; 21 22 void pvr_debugfs_init(struct drm_minor *minor); 23 #else /* defined(CONFIG_DEBUG_FS) */ 24 #include <linux/compiler_attributes.h> 25 pvr_debugfs_init(struct drm_minor * minor)26static __always_inline void pvr_debugfs_init(struct drm_minor *minor) {} 27 #endif /* defined(CONFIG_DEBUG_FS) */ 28 29 #endif /* PVR_DEBUGFS_H */ 30