forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.h
....@@ -1,7 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 /*
33 *
4
- * (C) COPYRIGHT 2014, 2016, 2020-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2014, 2016, 2020-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -20,7 +20,7 @@
2020 */
2121
2222 /**
23
- * Header file for register access history support via debugfs
23
+ * DOC: Header file for register access history support via debugfs
2424 *
2525 * This interface is made available via /sys/kernel/debug/mali#/regs_history*.
2626 *
....@@ -44,7 +44,7 @@
4444 * @h: The register history to initialize
4545 * @n: The number of register accesses that the buffer could hold
4646 *
47
- * @return 0 if successfully initialized, failure otherwise
47
+ * Return: 0 if successfully initialized, failure otherwise
4848 */
4949 int kbase_io_history_init(struct kbase_io_history *h, u16 n);
5050
....@@ -69,23 +69,15 @@
6969 */
7070 void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev);
7171
72
-#else /* defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */
73
-static inline int kbase_io_history_init(struct kbase_io_history *h, u16 n)
74
-{
75
- return 0;
76
-}
72
+#else /* !defined(CONFIG_DEBUG_FS) || IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */
7773
78
-static inline void kbase_io_history_term(struct kbase_io_history *h)
79
-{
80
-}
74
+#define kbase_io_history_init(...) (0)
8175
82
-static inline void kbase_io_history_dump(struct kbase_device *kbdev)
83
-{
84
-}
76
+#define kbase_io_history_term CSTD_NOP
8577
86
-static inline void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev)
87
-{
88
-}
78
+#define kbase_io_history_dump CSTD_NOP
79
+
80
+#define kbasep_regs_history_debugfs_init CSTD_NOP
8981
9082 #endif /* defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */
9183