hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/ocfs2/cluster/tcp.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* -*- mode: c; c-basic-offset: 8; -*-
23 * vim: noexpandtab sw=8 ts=8 sts=0:
34 *
....@@ -6,22 +7,6 @@
67 * Function prototypes
78 *
89 * Copyright (C) 2004 Oracle. All rights reserved.
9
- *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2 of the License, or (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public
21
- * License along with this program; if not, write to the
22
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23
- * Boston, MA 021110-1307, USA.
24
- *
2510 */
2611
2712 #ifndef O2CLUSTER_TCP_H
....@@ -47,7 +32,7 @@
4732 __be32 status;
4833 __be32 key;
4934 __be32 msg_num;
50
- __u8 buf[0];
35
+ __u8 buf[];
5136 };
5237
5338 typedef int (o2net_msg_handler_func)(struct o2net_msg *msg, u32 len, void *data,
....@@ -124,16 +109,15 @@
124109 struct o2net_sock_container;
125110
126111 #ifdef CONFIG_DEBUG_FS
127
-int o2net_debugfs_init(void);
112
+void o2net_debugfs_init(void);
128113 void o2net_debugfs_exit(void);
129114 void o2net_debug_add_nst(struct o2net_send_tracking *nst);
130115 void o2net_debug_del_nst(struct o2net_send_tracking *nst);
131116 void o2net_debug_add_sc(struct o2net_sock_container *sc);
132117 void o2net_debug_del_sc(struct o2net_sock_container *sc);
133118 #else
134
-static inline int o2net_debugfs_init(void)
119
+static inline void o2net_debugfs_init(void)
135120 {
136
- return 0;
137121 }
138122 static inline void o2net_debugfs_exit(void)
139123 {