hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/scsi/sas.h
....@@ -1,26 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * SAS structures and definitions header file
34 *
45 * Copyright (C) 2005 Adaptec, Inc. All rights reserved.
56 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
6
- *
7
- * This file is licensed under GPLv2.
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation; either version 2 of the
12
- * License, or (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful, but
15
- * WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22
- * USA
23
- *
247 */
258
269 #ifndef _SAS_H_
....@@ -341,7 +324,7 @@
341324 __be32 response_data_len;
342325
343326 u8 resp_data[0];
344
- u8 sense_data[0];
327
+ u8 sense_data[];
345328 } __attribute__ ((packed));
346329
347330 struct ssp_command_iu {
....@@ -363,7 +346,7 @@
363346 u8 add_cdb_len:6;
364347
365348 u8 cdb[16];
366
- u8 add_cdb[0];
349
+ u8 add_cdb[];
367350 } __attribute__ ((packed));
368351
369352 struct xfer_rdy_iu {
....@@ -572,7 +555,7 @@
572555 __be32 response_data_len;
573556
574557 u8 resp_data[0];
575
- u8 sense_data[0];
558
+ u8 sense_data[];
576559 } __attribute__ ((packed));
577560
578561 struct ssp_command_iu {
....@@ -594,7 +577,7 @@
594577 u8 _r_c:2;
595578
596579 u8 cdb[16];
597
- u8 add_cdb[0];
580
+ u8 add_cdb[];
598581 } __attribute__ ((packed));
599582
600583 struct xfer_rdy_iu {