| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ipr.h -- driver for IBM Power Linux RAID adapters |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Written By: Brian King <brking@us.ibm.com>, IBM Corporation |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 |
|---|
| 21 | 8 | * |
|---|
| 22 | 9 | * Alan Cox <alan@lxorguk.ukuu.org.uk> - Removed several careless u32/dma_addr_t errors |
|---|
| 23 | 10 | * that broke 64bit platforms. |
|---|
| .. | .. |
|---|
| 464 | 451 | |
|---|
| 465 | 452 | struct ipr_config_table { |
|---|
| 466 | 453 | struct ipr_config_table_hdr hdr; |
|---|
| 467 | | - struct ipr_config_table_entry dev[0]; |
|---|
| 454 | + struct ipr_config_table_entry dev[]; |
|---|
| 468 | 455 | }__attribute__((packed, aligned (4))); |
|---|
| 469 | 456 | |
|---|
| 470 | 457 | struct ipr_config_table64 { |
|---|
| 471 | 458 | struct ipr_config_table_hdr64 hdr64; |
|---|
| 472 | | - struct ipr_config_table_entry64 dev[0]; |
|---|
| 459 | + struct ipr_config_table_entry64 dev[]; |
|---|
| 473 | 460 | }__attribute__((packed, aligned (8))); |
|---|
| 474 | 461 | |
|---|
| 475 | 462 | struct ipr_config_table_entry_wrapper { |
|---|
| .. | .. |
|---|
| 805 | 792 | struct ipr_mode_page_hdr hdr; |
|---|
| 806 | 793 | u8 num_entries; |
|---|
| 807 | 794 | u8 entry_length; |
|---|
| 808 | | - struct ipr_dev_bus_entry bus[0]; |
|---|
| 795 | + struct ipr_dev_bus_entry bus[]; |
|---|
| 809 | 796 | }__attribute__((packed)); |
|---|
| 810 | 797 | |
|---|
| 811 | 798 | struct ipr_mode_page24 { |
|---|
| .. | .. |
|---|
| 1697 | 1684 | struct ipr_dump_location_entry { |
|---|
| 1698 | 1685 | struct ipr_dump_entry_header hdr; |
|---|
| 1699 | 1686 | u8 location[20]; |
|---|
| 1700 | | -}__attribute__((packed)); |
|---|
| 1687 | +}__attribute__((packed, aligned (4))); |
|---|
| 1701 | 1688 | |
|---|
| 1702 | 1689 | struct ipr_dump_trace_entry { |
|---|
| 1703 | 1690 | struct ipr_dump_entry_header hdr; |
|---|
| .. | .. |
|---|
| 1721 | 1708 | struct ipr_dump_location_entry location_entry; |
|---|
| 1722 | 1709 | struct ipr_dump_ioa_type_entry ioa_type_entry; |
|---|
| 1723 | 1710 | struct ipr_dump_trace_entry trace_entry; |
|---|
| 1724 | | -}__attribute__((packed)); |
|---|
| 1711 | +}__attribute__((packed, aligned (4))); |
|---|
| 1725 | 1712 | |
|---|
| 1726 | 1713 | struct ipr_ioa_dump { |
|---|
| 1727 | 1714 | struct ipr_dump_entry_header hdr; |
|---|