| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SAS structures and definitions header file |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2005 Adaptec, Inc. All rights reserved. |
|---|
| 5 | 6 | * 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 | | - * |
|---|
| 24 | 7 | */ |
|---|
| 25 | 8 | |
|---|
| 26 | 9 | #ifndef _SAS_H_ |
|---|
| .. | .. |
|---|
| 341 | 324 | __be32 response_data_len; |
|---|
| 342 | 325 | |
|---|
| 343 | 326 | u8 resp_data[0]; |
|---|
| 344 | | - u8 sense_data[0]; |
|---|
| 327 | + u8 sense_data[]; |
|---|
| 345 | 328 | } __attribute__ ((packed)); |
|---|
| 346 | 329 | |
|---|
| 347 | 330 | struct ssp_command_iu { |
|---|
| .. | .. |
|---|
| 363 | 346 | u8 add_cdb_len:6; |
|---|
| 364 | 347 | |
|---|
| 365 | 348 | u8 cdb[16]; |
|---|
| 366 | | - u8 add_cdb[0]; |
|---|
| 349 | + u8 add_cdb[]; |
|---|
| 367 | 350 | } __attribute__ ((packed)); |
|---|
| 368 | 351 | |
|---|
| 369 | 352 | struct xfer_rdy_iu { |
|---|
| .. | .. |
|---|
| 572 | 555 | __be32 response_data_len; |
|---|
| 573 | 556 | |
|---|
| 574 | 557 | u8 resp_data[0]; |
|---|
| 575 | | - u8 sense_data[0]; |
|---|
| 558 | + u8 sense_data[]; |
|---|
| 576 | 559 | } __attribute__ ((packed)); |
|---|
| 577 | 560 | |
|---|
| 578 | 561 | struct ssp_command_iu { |
|---|
| .. | .. |
|---|
| 594 | 577 | u8 _r_c:2; |
|---|
| 595 | 578 | |
|---|
| 596 | 579 | u8 cdb[16]; |
|---|
| 597 | | - u8 add_cdb[0]; |
|---|
| 580 | + u8 add_cdb[]; |
|---|
| 598 | 581 | } __attribute__ ((packed)); |
|---|
| 599 | 582 | |
|---|
| 600 | 583 | struct xfer_rdy_iu { |
|---|