hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/misc/cxl/cxl.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright 2014 IBM Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #ifndef _CXL_H_
....@@ -912,11 +908,11 @@
912908
913909 #ifdef CONFIG_DEBUG_FS
914910
915
-int cxl_debugfs_init(void);
911
+void cxl_debugfs_init(void);
916912 void cxl_debugfs_exit(void);
917
-int cxl_debugfs_adapter_add(struct cxl *adapter);
913
+void cxl_debugfs_adapter_add(struct cxl *adapter);
918914 void cxl_debugfs_adapter_remove(struct cxl *adapter);
919
-int cxl_debugfs_afu_add(struct cxl_afu *afu);
915
+void cxl_debugfs_afu_add(struct cxl_afu *afu);
920916 void cxl_debugfs_afu_remove(struct cxl_afu *afu);
921917 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir);
922918 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir);
....@@ -925,27 +921,24 @@
925921
926922 #else /* CONFIG_DEBUG_FS */
927923
928
-static inline int __init cxl_debugfs_init(void)
924
+static inline void __init cxl_debugfs_init(void)
929925 {
930
- return 0;
931926 }
932927
933928 static inline void cxl_debugfs_exit(void)
934929 {
935930 }
936931
937
-static inline int cxl_debugfs_adapter_add(struct cxl *adapter)
932
+static inline void cxl_debugfs_adapter_add(struct cxl *adapter)
938933 {
939
- return 0;
940934 }
941935
942936 static inline void cxl_debugfs_adapter_remove(struct cxl *adapter)
943937 {
944938 }
945939
946
-static inline int cxl_debugfs_afu_add(struct cxl_afu *afu)
940
+static inline void cxl_debugfs_afu_add(struct cxl_afu *afu)
947941 {
948
- return 0;
949942 }
950943
951944 static inline void cxl_debugfs_afu_remove(struct cxl_afu *afu)