| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * RapidIO interconnect services |
|---|
| 3 | 4 | * (RapidIO Interconnect Specification, http://www.rapidio.org) |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright 2005 MontaVista Software, Inc. |
|---|
| 6 | 7 | * 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. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #ifndef LINUX_RIO_H |
|---|
| .. | .. |
|---|
| 104 | 100 | u32 port_ok; |
|---|
| 105 | 101 | struct rio_switch_ops *ops; |
|---|
| 106 | 102 | spinlock_t lock; |
|---|
| 107 | | - struct rio_dev *nextdev[0]; |
|---|
| 103 | + struct rio_dev *nextdev[]; |
|---|
| 108 | 104 | }; |
|---|
| 109 | 105 | |
|---|
| 110 | 106 | /** |
|---|
| .. | .. |
|---|
| 205 | 201 | u8 hopcount; |
|---|
| 206 | 202 | struct rio_dev *prev; |
|---|
| 207 | 203 | atomic_t state; |
|---|
| 208 | | - struct rio_switch rswitch[0]; /* RIO switch info */ |
|---|
| 204 | + struct rio_switch rswitch[]; /* RIO switch info */ |
|---|
| 209 | 205 | }; |
|---|
| 210 | 206 | |
|---|
| 211 | 207 | #define rio_dev_g(n) list_entry(n, struct rio_dev, global_list) |
|---|