hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/scsi/ipr.h
....@@ -1,23 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * ipr.h -- driver for IBM Power Linux RAID adapters
34 *
45 * Written By: Brian King <brking@us.ibm.com>, IBM Corporation
56 *
67 * Copyright (C) 2003, 2004 IBM Corporation
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
218 *
229 * Alan Cox <alan@lxorguk.ukuu.org.uk> - Removed several careless u32/dma_addr_t errors
2310 * that broke 64bit platforms.
....@@ -464,12 +451,12 @@
464451
465452 struct ipr_config_table {
466453 struct ipr_config_table_hdr hdr;
467
- struct ipr_config_table_entry dev[0];
454
+ struct ipr_config_table_entry dev[];
468455 }__attribute__((packed, aligned (4)));
469456
470457 struct ipr_config_table64 {
471458 struct ipr_config_table_hdr64 hdr64;
472
- struct ipr_config_table_entry64 dev[0];
459
+ struct ipr_config_table_entry64 dev[];
473460 }__attribute__((packed, aligned (8)));
474461
475462 struct ipr_config_table_entry_wrapper {
....@@ -805,7 +792,7 @@
805792 struct ipr_mode_page_hdr hdr;
806793 u8 num_entries;
807794 u8 entry_length;
808
- struct ipr_dev_bus_entry bus[0];
795
+ struct ipr_dev_bus_entry bus[];
809796 }__attribute__((packed));
810797
811798 struct ipr_mode_page24 {
....@@ -1697,7 +1684,7 @@
16971684 struct ipr_dump_location_entry {
16981685 struct ipr_dump_entry_header hdr;
16991686 u8 location[20];
1700
-}__attribute__((packed));
1687
+}__attribute__((packed, aligned (4)));
17011688
17021689 struct ipr_dump_trace_entry {
17031690 struct ipr_dump_entry_header hdr;
....@@ -1721,7 +1708,7 @@
17211708 struct ipr_dump_location_entry location_entry;
17221709 struct ipr_dump_ioa_type_entry ioa_type_entry;
17231710 struct ipr_dump_trace_entry trace_entry;
1724
-}__attribute__((packed));
1711
+}__attribute__((packed, aligned (4)));
17251712
17261713 struct ipr_ioa_dump {
17271714 struct ipr_dump_entry_header hdr;