mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
mei: hw: don't use one element arrays
Replace the single element arrays with a simple value type u8 reserved, even thought is is not used for dynamically sized trailing elements it confuses the effort of replacing one-element arrays with flexible arrays for that purpose. Link: https://github.com/KSPP/linux/issues/79 Cc: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20200723145927.882743-7-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c614970e3e
commit
92ca3dd486
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2003-2018, Intel Corporation. All rights reserved
|
||||
* Copyright (c) 2003-2020, Intel Corporation. All rights reserved
|
||||
* Intel Management Engine Interface (Intel MEI) Linux driver
|
||||
*/
|
||||
|
||||
@ -319,7 +319,7 @@ struct hbm_props_response {
|
||||
u8 hbm_cmd;
|
||||
u8 me_addr;
|
||||
u8 status;
|
||||
u8 reserved[1];
|
||||
u8 reserved;
|
||||
struct mei_client_properties client_properties;
|
||||
} __packed;
|
||||
|
||||
@ -352,7 +352,7 @@ struct hbm_add_client_response {
|
||||
u8 hbm_cmd;
|
||||
u8 me_addr;
|
||||
u8 status;
|
||||
u8 reserved[1];
|
||||
u8 reserved;
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
@ -461,7 +461,7 @@ struct hbm_notification {
|
||||
u8 hbm_cmd;
|
||||
u8 me_addr;
|
||||
u8 host_addr;
|
||||
u8 reserved[1];
|
||||
u8 reserved;
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user