hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/rio.h
....@@ -1,14 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * RapidIO interconnect services
34 * (RapidIO Interconnect Specification, http://www.rapidio.org)
45 *
56 * Copyright 2005 MontaVista Software, Inc.
67 * Matt Porter <mporter@kernel.crashing.org>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #ifndef LINUX_RIO_H
....@@ -104,7 +100,7 @@
104100 u32 port_ok;
105101 struct rio_switch_ops *ops;
106102 spinlock_t lock;
107
- struct rio_dev *nextdev[0];
103
+ struct rio_dev *nextdev[];
108104 };
109105
110106 /**
....@@ -205,7 +201,7 @@
205201 u8 hopcount;
206202 struct rio_dev *prev;
207203 atomic_t state;
208
- struct rio_switch rswitch[0]; /* RIO switch info */
204
+ struct rio_switch rswitch[]; /* RIO switch info */
209205 };
210206
211207 #define rio_dev_g(n) list_entry(n, struct rio_dev, global_list)