.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* -*- mode: c; c-basic-offset: 8; -*- |
---|
2 | 3 | * vim: noexpandtab sw=8 ts=8 sts=0: |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Function prototypes |
---|
7 | 8 | * |
---|
8 | 9 | * 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 | | - * |
---|
25 | 10 | */ |
---|
26 | 11 | |
---|
27 | 12 | #ifndef O2CLUSTER_TCP_H |
---|
.. | .. |
---|
47 | 32 | __be32 status; |
---|
48 | 33 | __be32 key; |
---|
49 | 34 | __be32 msg_num; |
---|
50 | | - __u8 buf[0]; |
---|
| 35 | + __u8 buf[]; |
---|
51 | 36 | }; |
---|
52 | 37 | |
---|
53 | 38 | typedef int (o2net_msg_handler_func)(struct o2net_msg *msg, u32 len, void *data, |
---|
.. | .. |
---|
124 | 109 | struct o2net_sock_container; |
---|
125 | 110 | |
---|
126 | 111 | #ifdef CONFIG_DEBUG_FS |
---|
127 | | -int o2net_debugfs_init(void); |
---|
| 112 | +void o2net_debugfs_init(void); |
---|
128 | 113 | void o2net_debugfs_exit(void); |
---|
129 | 114 | void o2net_debug_add_nst(struct o2net_send_tracking *nst); |
---|
130 | 115 | void o2net_debug_del_nst(struct o2net_send_tracking *nst); |
---|
131 | 116 | void o2net_debug_add_sc(struct o2net_sock_container *sc); |
---|
132 | 117 | void o2net_debug_del_sc(struct o2net_sock_container *sc); |
---|
133 | 118 | #else |
---|
134 | | -static inline int o2net_debugfs_init(void) |
---|
| 119 | +static inline void o2net_debugfs_init(void) |
---|
135 | 120 | { |
---|
136 | | - return 0; |
---|
137 | 121 | } |
---|
138 | 122 | static inline void o2net_debugfs_exit(void) |
---|
139 | 123 | { |
---|