.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
8 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #ifndef _CXL_H_ |
---|
.. | .. |
---|
912 | 908 | |
---|
913 | 909 | #ifdef CONFIG_DEBUG_FS |
---|
914 | 910 | |
---|
915 | | -int cxl_debugfs_init(void); |
---|
| 911 | +void cxl_debugfs_init(void); |
---|
916 | 912 | void cxl_debugfs_exit(void); |
---|
917 | | -int cxl_debugfs_adapter_add(struct cxl *adapter); |
---|
| 913 | +void cxl_debugfs_adapter_add(struct cxl *adapter); |
---|
918 | 914 | 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); |
---|
920 | 916 | void cxl_debugfs_afu_remove(struct cxl_afu *afu); |
---|
921 | 917 | void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir); |
---|
922 | 918 | void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir); |
---|
.. | .. |
---|
925 | 921 | |
---|
926 | 922 | #else /* CONFIG_DEBUG_FS */ |
---|
927 | 923 | |
---|
928 | | -static inline int __init cxl_debugfs_init(void) |
---|
| 924 | +static inline void __init cxl_debugfs_init(void) |
---|
929 | 925 | { |
---|
930 | | - return 0; |
---|
931 | 926 | } |
---|
932 | 927 | |
---|
933 | 928 | static inline void cxl_debugfs_exit(void) |
---|
934 | 929 | { |
---|
935 | 930 | } |
---|
936 | 931 | |
---|
937 | | -static inline int cxl_debugfs_adapter_add(struct cxl *adapter) |
---|
| 932 | +static inline void cxl_debugfs_adapter_add(struct cxl *adapter) |
---|
938 | 933 | { |
---|
939 | | - return 0; |
---|
940 | 934 | } |
---|
941 | 935 | |
---|
942 | 936 | static inline void cxl_debugfs_adapter_remove(struct cxl *adapter) |
---|
943 | 937 | { |
---|
944 | 938 | } |
---|
945 | 939 | |
---|
946 | | -static inline int cxl_debugfs_afu_add(struct cxl_afu *afu) |
---|
| 940 | +static inline void cxl_debugfs_afu_add(struct cxl_afu *afu) |
---|
947 | 941 | { |
---|
948 | | - return 0; |
---|
949 | 942 | } |
---|
950 | 943 | |
---|
951 | 944 | static inline void cxl_debugfs_afu_remove(struct cxl_afu *afu) |
---|