hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/enclosure.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Enclosure Services
34 *
....@@ -5,18 +6,6 @@
56 *
67 **-----------------------------------------------------------------------------
78 **
8
-** This program is free software; you can redistribute it and/or
9
-** modify it under the terms of the GNU General Public License
10
-** version 2 as published by the Free Software Foundation.
11
-**
12
-** This program is distributed in the hope that it will be useful,
13
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
14
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
-** GNU General Public License for more details.
16
-**
17
-** You should have received a copy of the GNU General Public License
18
-** along with this program; if not, write to the Free Software
19
-** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
209 **
2110 **-----------------------------------------------------------------------------
2211 */
....@@ -112,7 +101,7 @@
112101 struct device edev;
113102 struct enclosure_component_callbacks *cb;
114103 int components;
115
- struct enclosure_component component[0];
104
+ struct enclosure_component component[];
116105 };
117106
118107 static inline struct enclosure_device *