Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flexible_array.cocci context
Please check for false positives in the output before submitting a patch.
When using "patch" mode, carefully review the patch before submitting it.
diff -u -p ./fs/erofs/erofs_fs.h /tmp/nothing/fs/erofs/erofs_fs.h
--- ./fs/erofs/erofs_fs.h
+++ /tmp/nothing/fs/erofs/erofs_fs.h
@@ -152,7 +152,6 @@ struct erofs_xattr_ibody_header {
__le32 h_reserved;
__u8 h_shared_count;
__u8 h_reserved2[7];
- __le32 h_shared_xattrs[0]; /* shared xattr id array */
};
/* Name indexes */
@@ -169,7 +168,6 @@ struct erofs_xattr_entry {
__u8 e_name_index; /* attribute name index */
__le16 e_value_size; /* size of attribute value */
/* followed by e_name and e_value */
- char e_name[0]; /* attribute name */
};
static inline unsigned int erofs_xattr_ibody_size(__le16 i_xattr_icount)
diff -u -p ./fs/hfsplus/hfsplus_fs.h /tmp/nothing/fs/hfsplus/hfsplus_fs.h
--- ./fs/hfsplus/hfsplus_fs.h
+++ /tmp/nothing/fs/hfsplus/hfsplus_fs.h
@@ -117,7 +117,6 @@ struct hfs_bnode {
wait_queue_head_t lock_wq;
atomic_t refcnt;
unsigned int page_offset;
- struct page *page[0];
};
#define HFS_BNODE_LOCK 0
diff -u -p ./fs/readdir.c /tmp/nothing/fs/readdir.c
--- ./fs/readdir.c
+++ /tmp/nothing/fs/readdir.c
@@ -131,7 +131,6 @@ struct old_linux_dirent {
unsigned long d_ino;
unsigned long d_offset;
unsigned short d_namlen;
- char d_name[1];
};
struct readdir_callback {
@@ -205,7 +204,6 @@ struct linux_dirent {
unsigned long d_ino;
unsigned long d_off;
unsigned short d_reclen;
- char d_name[1];
};
struct getdents_callback {
@@ -385,7 +383,6 @@ struct compat_old_linux_dirent {
compat_ulong_t d_ino;
compat_ulong_t d_offset;
unsigned short d_namlen;
- char d_name[1];
};
struct compat_readdir_callback {
@@ -454,7 +451,6 @@ struct compat_linux_dirent {
compat_ulong_t d_ino;
compat_ulong_t d_off;
unsigned short d_reclen;
- char d_name[1];
};
struct compat_getdents_callback {
diff -u -p ./include/linux/mlx5/mlx5_ifc.h /tmp/nothing/include/linux/mlx5/mlx5_ifc.h
--- ./include/linux/mlx5/mlx5_ifc.h
+++ /tmp/nothing/include/linux/mlx5/mlx5_ifc.h
@@ -387,7 +387,6 @@ struct mlx5_ifc_flow_table_fields_suppor
u8 metadata_reg_c_3[0x1];
u8 metadata_reg_c_2[0x1];
u8 metadata_reg_c_1[0x1];
- u8 metadata_reg_c_0[0x1];
};
struct mlx5_ifc_flow_table_prop_layout_bits {
@@ -1099,7 +1098,6 @@ struct mlx5_ifc_calc_op {
u8 op_or[0x1];
u8 op_and[0x1];
u8 op_max[0x1];
- u8 op_add[0x1];
};
struct mlx5_ifc_vector_calc_cap_bits {
@@ -3997,7 +3995,6 @@ struct mlx5_ifc_teardown_hca_out_bits {
u8 reserved_at_40[0x3f];
- u8 state[0x1];
};
enum {
@@ -5572,7 +5569,6 @@ struct mlx5_ifc_esw_vport_context_fields
u8 vport_cvlan_insert[0x1];
u8 vport_svlan_insert[0x1];
u8 vport_cvlan_strip[0x1];
- u8 vport_svlan_strip[0x1];
};
struct mlx5_ifc_modify_esw_vport_context_in_bits {
@@ -5821,7 +5817,6 @@ struct mlx5_ifc_alloc_modify_header_cont
u8 reserved_at_68[0x10];
u8 num_of_actions[0x8];
- union mlx5_ifc_set_add_copy_action_in_auto_bits actions[0];
};
struct mlx5_ifc_dealloc_modify_header_context_out_bits {
@@ -6151,7 +6146,6 @@ struct mlx5_ifc_modify_tis_bitmask_bits
u8 reserved_at_20[0x1d];
u8 lag_tx_port_affinity[0x1];
u8 strict_lag_tx_port_affinity[0x1];
- u8 prio[0x1];
};
struct mlx5_ifc_modify_tis_in_bits {
@@ -6181,7 +6175,6 @@ struct mlx5_ifc_modify_tir_bitmask_bits
u8 reserved_at_3c[0x1];
u8 hash[0x1];
u8 reserved_at_3e[0x1];
- u8 lro[0x1];
};
struct mlx5_ifc_modify_tir_out_bits {
@@ -6291,7 +6284,6 @@ struct mlx5_ifc_rqt_bitmask_bits {
u8 reserved_at_0[0x20];
u8 reserved_at_20[0x1f];
- u8 rqn_list[0x1];
};
struct mlx5_ifc_modify_rqt_in_bits {
@@ -6361,7 +6353,6 @@ struct mlx5_ifc_rmp_bitmask_bits {
u8 reserved_at_0[0x20];
u8 reserved_at_20[0x1f];
- u8 lwm[0x1];
};
struct mlx5_ifc_modify_rmp_in_bits {
@@ -6408,7 +6399,6 @@ struct mlx5_ifc_modify_nic_vport_field_s
u8 permanent_address[0x1];
u8 addresses_list[0x1];
u8 roce_en[0x1];
- u8 reserved_at_1f[0x1];
};
struct mlx5_ifc_modify_nic_vport_context_in_bits {
@@ -9050,7 +9040,6 @@ struct mlx5_ifc_pcam_enhanced_features_b
u8 ptys_connector_type[0x1];
u8 reserved_at_7d[0x1];
u8 ppcnt_discard_group[0x1];
- u8 ppcnt_statistical_group[0x1];
};
struct mlx5_ifc_pcam_regs_5000_to_507f_bits {
@@ -9104,7 +9093,6 @@ struct mlx5_ifc_mcam_enhanced_features_b
u8 tx_overflow_buffer_pkt[0x1];
u8 mtpps_enh_out_per_adj[0x1];
u8 mtpps_fs[0x1];
- u8 pcie_performance_group[0x1];
};
struct mlx5_ifc_mcam_access_reg_bits {
@@ -9177,12 +9165,10 @@ struct mlx5_ifc_qcam_access_reg_cap_mask
u8 qdpm[0x1];
u8 qpts[0x1];
u8 qcap[0x1];
- u8 qcam_access_reg_cap_mask_0[0x1];
};
struct mlx5_ifc_qcam_qos_feature_cap_mask {
u8 qcam_qos_feature_cap_mask_127_to_1[0x7F];
- u8 qpts_trust_both[0x1];
};
struct mlx5_ifc_qcam_reg_bits {
@@ -9271,7 +9257,6 @@ struct mlx5_ifc_pcmr_reg_bits {
u8 entropy_gre_calc[0x1];
u8 reserved_at_43[0x1b];
u8 fcs_chk[0x1];
- u8 reserved_at_5f[0x1];
};
struct mlx5_ifc_lane_2_module_mapping_bits {
@@ -9374,7 +9359,6 @@ struct mlx5_ifc_eqe_bits {
u8 reserved_at_1e0[0x10];
u8 signature[0x8];
u8 reserved_at_1f8[0x7];
- u8 owner[0x1];
};
enum {
@@ -9407,7 +9391,6 @@ struct mlx5_ifc_cmd_queue_entry_bits {
u8 signature[0x8];
u8 reserved_at_1f0[0x8];
u8 status[0x7];
- u8 ownership[0x1];
};
struct mlx5_ifc_cmd_out_bits {
@@ -9453,7 +9436,6 @@ struct mlx5_ifc_mtt_bits {
u8 ptag_31_8[0x18];
u8 reserved_at_38[0x6];
u8 wr_en[0x1];
- u8 rd_en[0x1];
};
struct mlx5_ifc_query_wol_rol_out_bits {
@@ -9759,7 +9741,6 @@ struct mlx5_ifc_mcda_reg_bits {
u8 reserved_at_60[0x20];
- u8 data[0][0x20];
};
enum {
diff -u -p ./drivers/hid/intel-ish-hid/ishtp-hid.h /tmp/nothing/drivers/hid/intel-ish-hid/ishtp-hid.h
--- ./drivers/hid/intel-ish-hid/ishtp-hid.h
+++ /tmp/nothing/drivers/hid/intel-ish-hid/ishtp-hid.h
@@ -62,10 +62,6 @@ struct report_list {
uint16_t total_size;
uint8_t num_of_reports;
uint8_t flags;
- struct {
- uint16_t size_of_report;
- uint8_t report[1];
- } __packed reports[1];
} __packed;
/* HOSTIF commands */
diff -u -p ./drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h /tmp/nothing/drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h
--- ./drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h
+++ /tmp/nothing/drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h
@@ -196,7 +196,6 @@ struct pm4__set_config_reg {
unsigned int ordinal2;
};
- unsigned int reg_data[1]; /*1..N of these fields */
};
#endif
diff -u -p ./drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c /tmp/nothing/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
--- ./drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
+++ /tmp/nothing/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
@@ -15,7 +15,6 @@ struct mlxsw_sp_mr {
struct list_head table_list;
struct mutex table_list_lock; /* Protects table_list */
#define MLXSW_SP_MR_ROUTES_COUNTER_UPDATE_INTERVAL 5000 /* ms */
- unsigned long priv[0];
/* priv has to be always the last item */
};
diff -u -p ./arch/parisc/kernel/irq.c /tmp/nothing/arch/parisc/kernel/irq.c
--- ./arch/parisc/kernel/irq.c
+++ /tmp/nothing/arch/parisc/kernel/irq.c
@@ -381,7 +381,6 @@ static inline int eirr_to_irq(unsigned l
union irq_stack_union {
unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];
volatile unsigned int slock[4];
- volatile unsigned int lock[1];
};
DEFINE_PER_CPU(union irq_stack_union, irq_stack_union) = {
diff -u -p ./sound/pci/hda/patch_realtek.c /tmp/nothing/sound/pci/hda/patch_realtek.c
--- ./sound/pci/hda/patch_realtek.c
+++ /tmp/nothing/sound/pci/hda/patch_realtek.c
@@ -125,7 +125,6 @@ struct alc_spec {
unsigned int pll_coef_idx, pll_coef_bit;
unsigned int coef0;
struct input_dev *kb_dev;
- u8 alc_mute_keycode_map[1];
};
/*
diff -u -p ./include/scsi/fc/fc_ms.h /tmp/nothing/include/scsi/fc/fc_ms.h
--- ./include/scsi/fc/fc_ms.h
+++ /tmp/nothing/include/scsi/fc/fc_ms.h
@@ -117,7 +117,6 @@ struct fc_fdmi_port_name {
struct fc_fdmi_attr_entry {
__be16 type;
__be16 len;
- __u8 value[1];
} __attribute__((__packed__));
/*
@@ -125,7 +124,6 @@ struct fc_fdmi_attr_entry {
*/
struct fs_fdmi_attrs {
__be32 numattrs;
- struct fc_fdmi_attr_entry attr[1];
} __attribute__((__packed__));
/*
@@ -133,7 +131,6 @@ struct fs_fdmi_attrs {
*/
struct fc_fdmi_rpl {
__be32 numport;
- struct fc_fdmi_port_name port[1];
} __attribute__((__packed__));
/*
diff -u -p ./ipc/msg.c /tmp/nothing/ipc/msg.c
--- ./ipc/msg.c
+++ /tmp/nothing/ipc/msg.c
@@ -970,7 +970,6 @@ SYSCALL_DEFINE4(msgsnd, int, msqid, stru
struct compat_msgbuf {
compat_long_t mtype;
- char mtext[1];
};
long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp,
diff -u -p ./drivers/media/platform/qcom/venus/hfi_msgs.h /tmp/nothing/drivers/media/platform/qcom/venus/hfi_msgs.h
--- ./drivers/media/platform/qcom/venus/hfi_msgs.h
+++ /tmp/nothing/drivers/media/platform/qcom/venus/hfi_msgs.h
@@ -50,7 +50,6 @@ struct hfi_msg_event_notify_pkt {
u32 event_id;
u32 event_data1;
u32 event_data2;
- u32 ext_event_data[1];
};
struct hfi_msg_event_release_buffer_ref_pkt {
@@ -63,7 +62,6 @@ struct hfi_msg_sys_init_done_pkt {
struct hfi_pkt_hdr hdr;
u32 error_type;
u32 num_properties;
- u32 data[1];
};
struct hfi_msg_sys_pc_prep_done_pkt {
@@ -81,7 +79,6 @@ struct hfi_msg_session_init_done_pkt {
struct hfi_session_hdr_pkt shdr;
u32 error_type;
u32 num_properties;
- u32 data[1];
};
struct hfi_msg_session_end_done_pkt {
@@ -113,7 +110,6 @@ struct hfi_msg_sys_ping_ack_pkt {
struct hfi_msg_sys_property_info_pkt {
struct hfi_pkt_hdr hdr;
u32 num_properties;
- u32 data[1];
};
struct hfi_msg_session_load_resources_done_pkt {
@@ -227,13 +223,11 @@ struct hfi_msg_session_parse_sequence_he
struct hfi_session_hdr_pkt shdr;
u32 error_type;
u32 num_properties;
- u32 data[1];
};
struct hfi_msg_session_property_info_pkt {
struct hfi_session_hdr_pkt shdr;
u32 num_properties;
- u32 data[1];
};
struct hfi_msg_session_release_resources_done_pkt {
@@ -245,7 +239,6 @@ struct hfi_msg_session_release_buffers_d
struct hfi_session_hdr_pkt shdr;
u32 error_type;
u32 num_buffers;
- u32 buffer_info[1];
};
struct hfi_msg_sys_debug_pkt {
@@ -254,7 +247,6 @@ struct hfi_msg_sys_debug_pkt {
u32 msg_size;
u32 time_stamp_hi;
u32 time_stamp_lo;
- u8 msg_data[1];
};
struct hfi_msg_sys_coverage_pkt {
@@ -262,7 +254,6 @@ struct hfi_msg_sys_coverage_pkt {
u32 msg_size;
u32 time_stamp_hi;
u32 time_stamp_lo;
- u8 msg_data[1];
};
struct venus_core;
diff -u -p ./drivers/misc/lkdtm/bugs.c /tmp/nothing/drivers/misc/lkdtm/bugs.c
--- ./drivers/misc/lkdtm/bugs.c
+++ /tmp/nothing/drivers/misc/lkdtm/bugs.c
@@ -210,7 +210,6 @@ void lkdtm_OVERFLOW_UNSIGNED(void)
struct array_bounds_flex_array {
int one;
int two;
- char data[1];
};
struct array_bounds {
diff -u -p ./drivers/staging/rtl8723bs/include/hal_intf.h /tmp/nothing/drivers/staging/rtl8723bs/include/hal_intf.h
--- ./drivers/staging/rtl8723bs/include/hal_intf.h
+++ /tmp/nothing/drivers/staging/rtl8723bs/include/hal_intf.h
@@ -301,7 +301,6 @@ struct wowlan_ioctl_param {
unsigned int subcode_value;
unsigned int wakeup_reason;
unsigned int len;
- unsigned char pattern[0];
};
#define Rx_Pairwisekey 0x01
diff -u -p ./drivers/staging/rtl8188eu/include/wlan_bssdef.h /tmp/nothing/drivers/staging/rtl8188eu/include/wlan_bssdef.h
--- ./drivers/staging/rtl8188eu/include/wlan_bssdef.h
+++ /tmp/nothing/drivers/staging/rtl8188eu/include/wlan_bssdef.h
@@ -64,7 +64,6 @@ struct ndis_802_11_fixed_ie {
struct ndis_802_11_var_ie {
u8 ElementID;
u8 Length;
- u8 data[1];
};
/*
diff -u -p ./drivers/net/wireless/intersil/p54/eeprom.h /tmp/nothing/drivers/net/wireless/intersil/p54/eeprom.h
--- ./drivers/net/wireless/intersil/p54/eeprom.h
+++ /tmp/nothing/drivers/net/wireless/intersil/p54/eeprom.h
@@ -108,10 +108,6 @@ struct pda_country {
} __packed;
struct pda_antenna_gain {
- struct {
- u8 gain_5GHz; /* 0.25 dBi units */
- u8 gain_2GHz; /* 0.25 dBi units */
- } __packed antenna[0];
} __packed;
struct pda_custom_wrapper {
diff -u -p ./drivers/scsi/qla2xxx/qla_fw.h /tmp/nothing/drivers/scsi/qla2xxx/qla_fw.h
--- ./drivers/scsi/qla2xxx/qla_fw.h
+++ /tmp/nothing/drivers/scsi/qla2xxx/qla_fw.h
@@ -1679,7 +1679,6 @@ struct qla_flt_header {
__le16 length;
__le16 checksum;
__le16 unused;
- struct qla_flt_region region[0];
};
#define FLT_REGION_SIZE 16
diff -u -p ./include/linux/hpet.h /tmp/nothing/include/linux/hpet.h
--- ./include/linux/hpet.h
+++ /tmp/nothing/include/linux/hpet.h
@@ -22,15 +22,6 @@ struct hpet {
unsigned long _hpet_mc;
} _u0;
u64 res3; /* reserved */
- struct hpet_timer {
- u64 hpet_config; /* configuration/cap */
- union { /* timer compare register */
- u64 _hpet_hc64;
- u32 _hpet_hc32;
- unsigned long _hpet_compare;
- } _u1;
- u64 hpet_fsb[2]; /* FSB route */
- } hpet_timers[1];
};
#define hpet_mc _u0._hpet_mc
diff -u -p ./drivers/staging/rtl8188eu/include/odm.h /tmp/nothing/drivers/staging/rtl8188eu/include/odm.h
--- ./drivers/staging/rtl8188eu/include/odm.h
+++ /tmp/nothing/drivers/staging/rtl8188eu/include/odm.h
@@ -567,7 +567,6 @@ struct odm_ra_info {
struct ijk_matrix_regs_set {
bool bIQKDone;
- s32 Value[1][IQK_Matrix_REG_NUM];
};
struct odm_rf_cal {
diff -u -p ./drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h /tmp/nothing/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
--- ./drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
+++ /tmp/nothing/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
@@ -591,7 +591,6 @@ I40E_CHECK_STRUCT_LEN(0x10, i40e_aqc_swi
*/
struct i40e_aqc_get_switch_config_resp {
struct i40e_aqc_get_switch_config_header_resp header;
- struct i40e_aqc_switch_config_element_resp element[1];
};
I40E_CHECK_STRUCT_LEN(0x20, i40e_aqc_get_switch_config_resp);
diff -u -p ./drivers/net/usb/gl620a.c /tmp/nothing/drivers/net/usb/gl620a.c
--- ./drivers/net/usb/gl620a.c
+++ /tmp/nothing/drivers/net/usb/gl620a.c
@@ -56,7 +56,6 @@
struct gl_packet {
__le32 packet_length;
- char packet_data [1];
};
struct gl_header {
diff -u -p ./drivers/net/wireless/ath/ath6kl/usb.c /tmp/nothing/drivers/net/wireless/ath/ath6kl/usb.c
--- ./drivers/net/wireless/ath/ath6kl/usb.c
+++ /tmp/nothing/drivers/net/wireless/ath/ath6kl/usb.c
@@ -105,7 +105,6 @@ struct ath6kl_usb_ctrl_diag_cmd_write {
__le32 cmd;
__le32 address;
__le32 value;
- __le32 _pad[1];
} __packed;
struct ath6kl_usb_ctrl_diag_cmd_read {
diff -u -p ./drivers/net/wireless/ath/ath11k/htc.h /tmp/nothing/drivers/net/wireless/ath/ath11k/htc.h
--- ./drivers/net/wireless/ath/ath11k/htc.h
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/htc.h
@@ -161,7 +161,6 @@ struct ath11k_htc_frame {
struct ath11k_htc_msg msg;
u8 payload[0];
};
- struct ath11k_htc_record trailer[0];
} __packed __aligned(4);
enum ath11k_htc_svc_gid {
diff -u -p ./drivers/scsi/3w-sas.h /tmp/nothing/drivers/scsi/3w-sas.h
--- ./drivers/scsi/3w-sas.h
+++ /tmp/nothing/drivers/scsi/3w-sas.h
@@ -319,7 +319,6 @@ typedef struct TAG_TW_Ioctl_Apache {
TW_Ioctl_Driver_Command driver_command;
char padding[488];
TW_Command_Full firmware_command;
- char data_buffer[1];
} TW_Ioctl_Buf_Apache;
/* GetParam descriptor */
diff -u -p ./drivers/mtd/nand/raw/tegra_nand.c /tmp/nothing/drivers/mtd/nand/raw/tegra_nand.c
--- ./drivers/mtd/nand/raw/tegra_nand.c
+++ /tmp/nothing/drivers/mtd/nand/raw/tegra_nand.c
@@ -183,7 +183,6 @@ struct tegra_nand_chip {
u32 config;
u32 config_ecc;
u32 bch_config;
- int cs[1];
};
static inline struct tegra_nand_controller *
diff -u -p ./fs/cifs/smb2pdu.h /tmp/nothing/fs/cifs/smb2pdu.h
--- ./fs/cifs/smb2pdu.h
+++ /tmp/nothing/fs/cifs/smb2pdu.h
@@ -196,7 +196,6 @@ struct smb2_err_rsp {
__le16 StructureSize;
__le16 Reserved; /* MBZ */
__le32 ByteCount; /* even if zero, at least one byte follows */
- __u8 ErrorData[1]; /* variable length */
} __packed;
#define SYMLINK_ERROR_TAG 0x4c4d5953
@@ -262,7 +261,6 @@ struct smb2_negotiate_req {
__le32 NegotiateContextOffset; /* SMB3.1.1 only. MBZ earlier */
__le16 NegotiateContextCount; /* SMB3.1.1 only. MBZ earlier */
__le16 Reserved2;
- __le16 Dialects[1]; /* One dialect (vers=) at a time for now */
} __packed;
/* Dialects */
@@ -393,7 +391,6 @@ struct smb2_negotiate_rsp {
__le16 SecurityBufferOffset;
__le16 SecurityBufferLength;
__le32 NegotiateContextOffset; /* Pre:SMB3.1.1 was reserved/ignored */
- __u8 Buffer[1]; /* variable length GSS security buffer */
} __packed;
/* Flags */
@@ -410,7 +407,6 @@ struct smb2_sess_setup_req {
__le16 SecurityBufferOffset;
__le16 SecurityBufferLength;
__u64 PreviousSessionId;
- __u8 Buffer[1]; /* variable length GSS security buffer */
} __packed;
/* Currently defined SessionFlags */
@@ -423,7 +419,6 @@ struct smb2_sess_setup_rsp {
__le16 SessionFlags;
__le16 SecurityBufferOffset;
__le16 SecurityBufferLength;
- __u8 Buffer[1]; /* variable length GSS security buffer */
} __packed;
struct smb2_logoff_req {
@@ -449,7 +444,6 @@ struct smb2_tree_connect_req {
__le16 Flags; /* Reserved MBZ for dialects prior to SMB3.1.1 */
__le16 PathOffset;
__le16 PathLength;
- __u8 Buffer[1]; /* variable length */
} __packed;
/* See MS-SMB2 section 2.2.9.2 */
@@ -757,7 +751,6 @@ struct smb2_create_rsp {
__u64 VolatileFileId; /* opaque endianness */
__le32 CreateContextsOffset;
__le32 CreateContextsLength;
- __u8 Buffer[1];
} __packed;
struct create_context {
@@ -1194,7 +1187,6 @@ struct smb2_read_plain_req {
__le32 RemainingBytes;
__le16 ReadChannelInfoOffset;
__le16 ReadChannelInfoLength;
- __u8 Buffer[1];
} __packed;
struct smb2_read_rsp {
@@ -1205,7 +1197,6 @@ struct smb2_read_rsp {
__le32 DataLength;
__le32 DataRemaining;
__u32 Reserved2;
- __u8 Buffer[1];
} __packed;
/* For write request Flags field below the following flags are defined: */
@@ -1225,7 +1216,6 @@ struct smb2_write_req {
__le16 WriteChannelInfoOffset;
__le16 WriteChannelInfoLength;
__le32 Flags;
- __u8 Buffer[1];
} __packed;
struct smb2_write_rsp {
@@ -1236,7 +1226,6 @@ struct smb2_write_rsp {
__le32 DataLength;
__le32 DataRemaining;
__u32 Reserved2;
- __u8 Buffer[1];
} __packed;
/* notify flags */
@@ -1272,7 +1261,6 @@ struct smb2_change_notify_rsp {
__le16 StructureSize; /* Must be 9 */
__le16 OutputBufferOffset;
__le32 OutputBufferLength;
- __u8 Buffer[1]; /* array of file notify structs */
} __packed;
#define SMB2_LOCKFLAG_SHARED_LOCK 0x0001
@@ -1295,7 +1283,6 @@ struct smb2_lock_req {
__u64 PersistentFileId; /* opaque endianness */
__u64 VolatileFileId; /* opaque endianness */
/* Followed by at least one */
- struct smb2_lock_element locks[1];
} __packed;
struct smb2_lock_rsp {
@@ -1335,7 +1322,6 @@ struct smb2_query_directory_req {
__le16 FileNameOffset;
__le16 FileNameLength;
__le32 OutputBufferLength;
- __u8 Buffer[1];
} __packed;
struct smb2_query_directory_rsp {
@@ -1343,7 +1329,6 @@ struct smb2_query_directory_rsp {
__le16 StructureSize; /* Must be 9 */
__le16 OutputBufferOffset;
__le32 OutputBufferLength;
- __u8 Buffer[1];
} __packed;
/* Possible InfoType values */
@@ -1384,7 +1369,6 @@ struct smb2_query_info_req {
__le32 Flags;
__u64 PersistentFileId; /* opaque endianness */
__u64 VolatileFileId; /* opaque endianness */
- __u8 Buffer[1];
} __packed;
struct smb2_query_info_rsp {
@@ -1392,7 +1376,6 @@ struct smb2_query_info_rsp {
__le16 StructureSize; /* Must be 9 */
__le16 OutputBufferOffset;
__le32 OutputBufferLength;
- __u8 Buffer[1];
} __packed;
/*
@@ -1415,7 +1398,6 @@ struct smb2_set_info_req {
__le32 AdditionalInformation;
__u64 PersistentFileId; /* opaque endianness */
__u64 VolatileFileId; /* opaque endianness */
- __u8 Buffer[1];
} __packed;
struct smb2_set_info_rsp {
@@ -1616,7 +1598,6 @@ struct smb2_file_all_info { /* data bloc
__le32 Mode;
__le32 AlignmentRequirement;
__le32 FileNameLength;
- char FileName[1];
} __packed; /* level 18 Query */
struct smb2_file_eof_info { /* encoding of request for level 10 */
diff -u -p ./include/sound/sof/topology.h /tmp/nothing/include/sound/sof/topology.h
--- ./include/sound/sof/topology.h
+++ /tmp/nothing/include/sound/sof/topology.h
@@ -58,7 +58,6 @@ struct sof_ipc_comp {
uint32_t core;
/* reserved for future use */
- uint32_t reserved[1];
} __packed;
/*
@@ -234,7 +233,6 @@ struct sof_ipc_comp_process {
/* reserved for future use */
uint32_t reserved[7];
- uint8_t data[0];
} __packed;
/* frees components, buffers and pipelines
diff -u -p ./include/asm-generic/tlb.h /tmp/nothing/include/asm-generic/tlb.h
--- ./include/asm-generic/tlb.h
+++ /tmp/nothing/include/asm-generic/tlb.h
@@ -178,7 +178,6 @@ struct mmu_table_batch {
struct rcu_head rcu;
#endif
unsigned int nr;
- void *tables[0];
};
#define MAX_TABLE_BATCH \
@@ -225,7 +224,6 @@ struct mmu_gather_batch {
struct mmu_gather_batch *next;
unsigned int nr;
unsigned int max;
- struct page *pages[0];
};
#define MAX_GATHER_BATCH \
diff -u -p ./tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c /tmp/nothing/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c
--- ./tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c
+++ /tmp/nothing/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c
@@ -93,7 +93,6 @@ struct padded_cache_line {
/* ------ END-EXPECTED-OUTPUT ------ */
struct zone_padding {
- char x[0];
} __attribute__((__aligned__(8)));
struct zone {
diff -u -p ./drivers/gpu/drm/amd/amdkfd/kfd_crat.h /tmp/nothing/drivers/gpu/drm/amd/amdkfd/kfd_crat.h
--- ./drivers/gpu/drm/amd/amdkfd/kfd_crat.h
+++ /tmp/nothing/drivers/gpu/drm/amd/amdkfd/kfd_crat.h
@@ -309,7 +309,6 @@ struct cdit_header {
uint32_t creator_revision;
uint32_t total_entries;
uint16_t num_domains;
- uint8_t entry[1];
};
#pragma pack()
diff -u -p ./drivers/staging/wfx/hif_api_general.h /tmp/nothing/drivers/staging/wfx/hif_api_general.h
--- ./drivers/staging/wfx/hif_api_general.h
+++ /tmp/nothing/drivers/staging/wfx/hif_api_general.h
@@ -236,7 +236,6 @@ struct hif_tx_power_loop_info {
union hif_indication_data {
struct hif_rx_stats rx_stats;
struct hif_tx_power_loop_info tx_power_loop_info;
- u8 raw_data[1];
};
struct hif_ind_generic {
diff -u -p ./drivers/net/wireless/ti/wlcore/cmd.h /tmp/nothing/drivers/net/wireless/ti/wlcore/cmd.h
--- ./drivers/net/wireless/ti/wlcore/cmd.h
+++ /tmp/nothing/drivers/net/wireless/ti/wlcore/cmd.h
@@ -548,7 +548,6 @@ struct wl12xx_cmd_set_peer_state {
* the add_peer command.
*/
u8 wmm;
- u8 padding[1];
} __packed;
struct wl12xx_cmd_roc {
diff -u -p ./drivers/scsi/3w-xxxx.h /tmp/nothing/drivers/scsi/3w-xxxx.h
--- ./drivers/scsi/3w-xxxx.h
+++ /tmp/nothing/drivers/scsi/3w-xxxx.h
@@ -329,7 +329,6 @@ typedef struct TAG_TW_Ioctl {
unsigned char parameter_id;
unsigned char parameter_size_bytes;
unsigned char unit_index;
- unsigned char data[1];
} TW_Ioctl;
#pragma pack(1)
@@ -339,7 +338,6 @@ typedef struct TAG_TW_New_Ioctl {
unsigned int data_buffer_length;
unsigned char padding [508];
TW_Command firmware_command;
- char data_buffer[1];
} TW_New_Ioctl;
/* GetParam descriptor */
diff -u -p ./arch/s390/include/asm/sysinfo.h /tmp/nothing/arch/s390/include/asm/sysinfo.h
--- ./arch/s390/include/asm/sysinfo.h
+++ /tmp/nothing/arch/s390/include/asm/sysinfo.h
@@ -67,12 +67,10 @@ struct sysinfo_1_2_2 {
unsigned short cpus_configured;
unsigned short cpus_standby;
unsigned short cpus_reserved;
- unsigned short adjustment[0];
};
struct sysinfo_1_2_2_extension {
unsigned int alt_capability;
- unsigned short alt_adjustment[0];
};
struct sysinfo_2_2_1 {
@@ -181,7 +179,6 @@ struct sysinfo_15_1_x {
unsigned char reserved1;
unsigned char mnest;
unsigned char reserved2[4];
- union topology_entry tle[0];
};
int stsi(void *sysinfo, int fc, int sel1, int sel2);
diff -u -p ./arch/sparc/include/asm/vio.h /tmp/nothing/arch/sparc/include/asm/vio.h
--- ./arch/sparc/include/asm/vio.h
+++ /tmp/nothing/arch/sparc/include/asm/vio.h
@@ -70,7 +70,6 @@ struct vio_dring_register {
#define VIO_RX_DRING_DATA 0x0004
u16 resv;
u32 num_cookies;
- struct ldc_trans_cookie cookies[0];
};
struct vio_dring_unregister {
@@ -134,7 +133,6 @@ struct vio_disk_attr_info {
u64 max_xfer_size;
u32 phys_block_size; /* v1.2 */
u32 resv2;
- u64 resv3[1];
};
struct vio_disk_desc {
@@ -161,7 +159,6 @@ struct vio_disk_desc {
u64 size;
u32 ncookies;
u32 resv2;
- struct ldc_trans_cookie cookies[0];
};
#define VIO_DISK_VNAME_LEN 8
@@ -200,13 +197,11 @@ struct vio_disk_devid {
u16 resv;
u16 type;
u32 len;
- char id[0];
};
struct vio_disk_efi {
u64 lba;
u64 len;
- char data[0];
};
/* VIO net specific structures and defines */
@@ -246,7 +241,6 @@ struct vio_net_desc {
struct vio_dring_hdr hdr;
u32 size;
u32 ncookies;
- struct ldc_trans_cookie cookies[0];
};
struct vio_net_dext {
diff -u -p ./fs/ufs/ufs_fs.h /tmp/nothing/fs/ufs/ufs_fs.h
--- ./fs/ufs/ufs_fs.h
+++ /tmp/nothing/fs/ufs/ufs_fs.h
@@ -571,7 +571,6 @@ struct ufs_cylinder_group {
} cg_u2;
__fs32 cg_sparecon[16]; /* reserved for future use */
} cg_u;
- __u8 cg_space[1]; /* space for cylinder group maps */
/* actually longer */
};
@@ -593,7 +592,6 @@ struct ufs_old_cylinder_group {
__fs16 cg_b[32][8]; /* positions of free blocks */
__u8 cg_iused[256]; /* used inode map */
__fs32 cg_magic; /* magic number */
- __u8 cg_free[1]; /* free block map */
/* actually longer */
};
@@ -956,7 +954,6 @@ struct ufs_super_block_third {
__fs32 fs_postbloff;
__fs32 fs_rotbloff;
__fs32 fs_magic;
- __u8 fs_space[1];
};
#endif /* __LINUX_UFS_FS_H */
diff -u -p ./drivers/staging/gdm724x/hci_packet.h /tmp/nothing/drivers/staging/gdm724x/hci_packet.h
--- ./drivers/staging/gdm724x/hci_packet.h
+++ /tmp/nothing/drivers/staging/gdm724x/hci_packet.h
@@ -34,7 +34,6 @@ struct hci_packet {
struct tlv {
u8 type;
u8 len;
- u8 *data[1];
} __packed;
struct sdu_header {
diff -u -p ./drivers/acpi/acpica/amlresrc.h /tmp/nothing/drivers/acpi/acpica/amlresrc.h
--- ./drivers/acpi/acpica/amlresrc.h
+++ /tmp/nothing/drivers/acpi/acpica/amlresrc.h
@@ -257,7 +257,6 @@ struct aml_resource_address16 {
struct aml_resource_extended_irq {
AML_RESOURCE_LARGE_HEADER_COMMON u8 flags;
u8 interrupt_count;
- u32 interrupts[1];
/* res_source_index, res_source optional fields follow */
};
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/scan.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/scan.h
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/scan.h
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/scan.h
@@ -1162,7 +1162,6 @@ struct iwl_scan_offload_profiles_query_v
u8 resume_while_scanning;
u8 self_recovery;
__le16 reserved;
- struct iwl_scan_offload_profile_match_v1 matches[0];
} __packed; /* SCAN_OFFLOAD_PROFILES_QUERY_RSP_S_VER_2 */
/**
@@ -1206,7 +1205,6 @@ struct iwl_scan_offload_profiles_query {
u8 resume_while_scanning;
u8 self_recovery;
__le16 reserved;
- struct iwl_scan_offload_profile_match matches[0];
} __packed; /* SCAN_OFFLOAD_PROFILES_QUERY_RSP_S_VER_3 */
/**
diff -u -p ./drivers/net/wireless/ath/wil6210/wmi.h /tmp/nothing/drivers/net/wireless/ath/wil6210/wmi.h
--- ./drivers/net/wireless/ath/wil6210/wmi.h
+++ /tmp/nothing/drivers/net/wireless/ath/wil6210/wmi.h
@@ -2763,7 +2763,6 @@ struct wmi_rf_xpm_write_result_event {
/* WMI_TX_MGMT_PACKET_EVENTID */
struct wmi_tx_mgmt_packet_event {
- u8 payload[0];
} __packed;
/* WMI_RX_MGMT_PACKET_EVENTID */
@@ -3086,7 +3085,6 @@ struct wmi_scheduling_scheme_event {
/* wmi_sched_scheme_failure_type */
u8 failure_type;
/* alignment to 32b */
- u8 reserved[1];
} __packed;
/* WMI_RS_CFG_CMDID - deprecated */
diff -u -p ./drivers/scsi/mpt3sas/mpi/mpi2_ioc.h /tmp/nothing/drivers/scsi/mpt3sas/mpi/mpi2_ioc.h
--- ./drivers/scsi/mpt3sas/mpi/mpi2_ioc.h
+++ /tmp/nothing/drivers/scsi/mpt3sas/mpi/mpi2_ioc.h
@@ -537,7 +537,6 @@ typedef struct _MPI2_EVENT_NOTIFICATION_
U16 Event; /*0x14 */
U16 Reserved4; /*0x16 */
U32 EventContext; /*0x18 */
- U32 EventData[1]; /*0x1C */
} MPI2_EVENT_NOTIFICATION_REPLY, *PTR_MPI2_EVENT_NOTIFICATION_REPLY,
Mpi2EventNotificationReply_t,
*pMpi2EventNotificationReply_t;
@@ -639,7 +638,6 @@ typedef struct _MPI2_EVENT_DATA_HOST_MES
U8 Reserved1; /*0x01 */
U16 Reserved2; /*0x02 */
U32 Reserved3; /*0x04 */
- U32 HostData[1]; /*0x08 */
} MPI2_EVENT_DATA_HOST_MESSAGE, *PTR_MPI2_EVENT_DATA_HOST_MESSAGE,
Mpi2EventDataHostMessage_t, *pMpi2EventDataHostMessage_t;
@@ -1397,7 +1395,6 @@ typedef struct _MPI2_SEND_HOST_MESSAGE_R
U32 Reserved8; /*0x18 */
U32 Reserved9; /*0x1C */
U32 Reserved10; /*0x20 */
- U32 HostData[1]; /*0x24 */
} MPI2_SEND_HOST_MESSAGE_REQUEST,
*PTR_MPI2_SEND_HOST_MESSAGE_REQUEST,
Mpi2SendHostMessageRequest_t,
diff -u -p ./arch/powerpc/include/asm/rtas-types.h /tmp/nothing/arch/powerpc/include/asm/rtas-types.h
--- ./arch/powerpc/include/asm/rtas-types.h
+++ /tmp/nothing/arch/powerpc/include/asm/rtas-types.h
@@ -52,7 +52,6 @@ struct rtas_error_log {
*/
u8 byte3; /* General event or error*/
__be32 extended_log_length; /* length in bytes */
- unsigned char buffer[1]; /* Start of extended log */
/* Variable length. */
};
@@ -93,7 +92,6 @@ struct rtas_ext_event_log_v6 {
/* that defines the format for */
/* the vendor specific log type */
/* Byte 16-end of log */
- u8 vendor_log[1]; /* Start of vendor specific log */
/* Variable length. */
};
diff -u -p ./fs/xfs/libxfs/xfs_log_format.h /tmp/nothing/fs/xfs/libxfs/xfs_log_format.h
--- ./fs/xfs/libxfs/xfs_log_format.h
+++ /tmp/nothing/fs/xfs/libxfs/xfs_log_format.h
@@ -571,7 +571,6 @@ typedef struct xfs_efi_log_format {
uint16_t efi_size; /* size of this item */
uint32_t efi_nextents; /* # extents to free */
uint64_t efi_id; /* efi identifier */
- xfs_extent_t efi_extents[1]; /* array of extents to free */
} xfs_efi_log_format_t;
typedef struct xfs_efi_log_format_32 {
@@ -579,7 +578,6 @@ typedef struct xfs_efi_log_format_32 {
uint16_t efi_size; /* size of this item */
uint32_t efi_nextents; /* # extents to free */
uint64_t efi_id; /* efi identifier */
- xfs_extent_32_t efi_extents[1]; /* array of extents to free */
} __attribute__((packed)) xfs_efi_log_format_32_t;
typedef struct xfs_efi_log_format_64 {
@@ -587,7 +585,6 @@ typedef struct xfs_efi_log_format_64 {
uint16_t efi_size; /* size of this item */
uint32_t efi_nextents; /* # extents to free */
uint64_t efi_id; /* efi identifier */
- xfs_extent_64_t efi_extents[1]; /* array of extents to free */
} xfs_efi_log_format_64_t;
/*
@@ -600,7 +597,6 @@ typedef struct xfs_efd_log_format {
uint16_t efd_size; /* size of this item */
uint32_t efd_nextents; /* # of extents freed */
uint64_t efd_efi_id; /* id of corresponding efi */
- xfs_extent_t efd_extents[1]; /* array of extents freed */
} xfs_efd_log_format_t;
typedef struct xfs_efd_log_format_32 {
@@ -608,7 +604,6 @@ typedef struct xfs_efd_log_format_32 {
uint16_t efd_size; /* size of this item */
uint32_t efd_nextents; /* # of extents freed */
uint64_t efd_efi_id; /* id of corresponding efi */
- xfs_extent_32_t efd_extents[1]; /* array of extents freed */
} __attribute__((packed)) xfs_efd_log_format_32_t;
typedef struct xfs_efd_log_format_64 {
@@ -616,7 +611,6 @@ typedef struct xfs_efd_log_format_64 {
uint16_t efd_size; /* size of this item */
uint32_t efd_nextents; /* # of extents freed */
uint64_t efd_efi_id; /* id of corresponding efi */
- xfs_extent_64_t efd_extents[1]; /* array of extents freed */
} xfs_efd_log_format_64_t;
/*
diff -u -p ./include/acpi/acrestyp.h /tmp/nothing/include/acpi/acrestyp.h
--- ./include/acpi/acrestyp.h
+++ /tmp/nothing/include/acpi/acrestyp.h
@@ -142,7 +142,6 @@ struct acpi_resource_irq {
u8 shareable;
u8 wake_capable;
u8 interrupt_count;
- u8 interrupts[1];
};
struct acpi_resource_dma {
@@ -150,7 +149,6 @@ struct acpi_resource_dma {
u8 bus_master;
u8 transfer;
u8 channel_count;
- u8 channels[1];
};
struct acpi_resource_start_dependent {
@@ -194,7 +192,6 @@ struct acpi_resource_fixed_dma {
struct acpi_resource_vendor {
u16 byte_length;
- u8 byte_data[1];
};
/* Vendor resource with UUID info (introduced in ACPI 3.0) */
@@ -203,7 +200,6 @@ struct acpi_resource_vendor_typed {
u16 byte_length;
u8 uuid_subtype;
u8 uuid[ACPI_UUID_LENGTH];
- u8 byte_data[1];
};
struct acpi_resource_end_tag {
@@ -332,7 +328,6 @@ struct acpi_resource_extended_irq {
u8 wake_capable;
u8 interrupt_count;
struct acpi_resource_source resource_source;
- u32 interrupts[1];
};
struct acpi_resource_generic_register {
diff -u -p ./include/scsi/scsi_bsg_iscsi.h /tmp/nothing/include/scsi/scsi_bsg_iscsi.h
--- ./include/scsi/scsi_bsg_iscsi.h
+++ /tmp/nothing/include/scsi/scsi_bsg_iscsi.h
@@ -59,7 +59,6 @@ struct iscsi_bsg_host_vendor {
*/
struct iscsi_bsg_host_vendor_reply {
/* start of vendor response area */
- uint32_t vendor_rsp[0];
};
diff -u -p ./include/linux/firewire.h /tmp/nothing/include/linux/firewire.h
--- ./include/linux/firewire.h
+++ /tmp/nothing/include/linux/firewire.h
@@ -398,7 +398,6 @@ struct fw_iso_packet {
u32 tag:2; /* tx: Tag in packet header */
u32 sy:4; /* tx: Sy in packet header */
u32 header_length:8; /* Length of immediate header */
- u32 header[0]; /* tx: Top of 1394 isoch. data_block */
};
#define FW_ISO_CONTEXT_TRANSMIT 0
diff -u -p ./drivers/misc/habanalabs/include/common/armcp_if.h /tmp/nothing/drivers/misc/habanalabs/include/common/armcp_if.h
--- ./drivers/misc/habanalabs/include/common/armcp_if.h
+++ /tmp/nothing/drivers/misc/habanalabs/include/common/armcp_if.h
@@ -293,7 +293,6 @@ struct armcp_packet {
struct armcp_unmask_irq_arr_packet {
struct armcp_packet armcp_pkt;
__le32 length;
- __le32 irqs[0];
};
enum armcp_packet_rc {
diff -u -p ./drivers/misc/mei/hw.h /tmp/nothing/drivers/misc/mei/hw.h
--- ./drivers/misc/mei/hw.h
+++ /tmp/nothing/drivers/misc/mei/hw.h
@@ -206,7 +206,6 @@ struct mei_msg_hdr {
u32 dma_ring:1;
u32 internal:1;
u32 msg_complete:1;
- u32 extension[0];
} __packed;
/* The length is up to 9 bits */
diff -u -p ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h /tmp/nothing/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h
--- ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h
+++ /tmp/nothing/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h
@@ -291,7 +291,6 @@ struct dsaf_int_stat {
struct dsaf_int_xge_src dsaf_int_xge_stat[DSAF_COMM_CHN];
struct dsaf_int_ppe_src dsaf_int_ppe_stat[DSAF_COMM_CHN];
struct dsaf_int_rocee_src dsaf_int_rocee_stat[DSAF_COMM_CHN];
- struct dsaf_int_tbl_src dsaf_int_tbl_stat[1];
};
diff -u -p ./drivers/net/ethernet/netronome/nfp/crypto/fw.h /tmp/nothing/drivers/net/ethernet/netronome/nfp/crypto/fw.h
--- ./drivers/net/ethernet/netronome/nfp/crypto/fw.h
+++ /tmp/nothing/drivers/net/ethernet/netronome/nfp/crypto/fw.h
@@ -40,7 +40,6 @@ struct nfp_crypto_req_add_front {
__be16 ipver_vlan __packed;
u8 l4_proto;
#define NFP_NET_TLS_NON_ADDR_KEY_LEN 8
- u8 l3_addrs[0];
};
struct nfp_crypto_req_add_back {
diff -u -p ./drivers/net/ethernet/brocade/bna/bfi_enet.h /tmp/nothing/drivers/net/ethernet/brocade/bna/bfi_enet.h
--- ./drivers/net/ethernet/brocade/bna/bfi_enet.h
+++ /tmp/nothing/drivers/net/ethernet/brocade/bna/bfi_enet.h
@@ -410,7 +410,6 @@ struct bfi_enet_tx_cfg {
u8 admit_tagged_frame;
u8 apply_vlan_filter;
u8 add_to_vswitch;
- u8 rsvd1[1];
} __packed;
struct bfi_enet_tx_cfg_req {
diff -u -p ./drivers/net/ethernet/intel/iavf/iavf_client.h /tmp/nothing/drivers/net/ethernet/intel/iavf/iavf_client.h
--- ./drivers/net/ethernet/intel/iavf/iavf_client.h
+++ /tmp/nothing/drivers/net/ethernet/intel/iavf/iavf_client.h
@@ -53,7 +53,6 @@ struct iavf_qv_info {
struct iavf_qvlist_info {
u32 num_vectors;
- struct iavf_qv_info qv_info[1];
};
#define IAVF_CLIENT_MSIX_ALL 0xFFFFFFFF
diff -u -p ./drivers/net/ethernet/freescale/enetc/enetc_hw.h /tmp/nothing/drivers/net/ethernet/freescale/enetc/enetc_hw.h
--- ./drivers/net/ethernet/freescale/enetc/enetc_hw.h
+++ /tmp/nothing/drivers/net/ethernet/freescale/enetc/enetc_hw.h
@@ -743,7 +743,6 @@ struct sgcl_data {
u32 bth;
u32 ct;
u32 cte;
- struct sgce sgcl[0];
};
#define ENETC_CBDR_FMI_MR BIT(0)
diff -u -p ./drivers/net/fddi/skfp/h/smc.h /tmp/nothing/drivers/net/fddi/skfp/h/smc.h
--- ./drivers/net/fddi/skfp/h/smc.h
+++ /tmp/nothing/drivers/net/fddi/skfp/h/smc.h
@@ -122,7 +122,6 @@ struct s_rmt {
u_char timer1_exp ; /* flag : timer 1 expired */
u_char timer2_exp ; /* flag : timer 2 expired */
- u_char rm_pad1[1] ;
} ;
/*
diff -u -p ./drivers/net/wireless/microchip/wilc1000/fw.h /tmp/nothing/drivers/net/wireless/microchip/wilc1000/fw.h
--- ./drivers/net/wireless/microchip/wilc1000/fw.h
+++ /tmp/nothing/drivers/net/wireless/microchip/wilc1000/fw.h
@@ -44,20 +44,17 @@ struct wilc_drv_handler {
struct wilc_wep_key {
u8 index;
u8 key_len;
- u8 key[0];
} __packed;
struct wilc_sta_wpa_ptk {
u8 mac_addr[ETH_ALEN];
u8 key_len;
- u8 key[0];
} __packed;
struct wilc_ap_wpa_ptk {
u8 mac_addr[ETH_ALEN];
u8 index;
u8 key_len;
- u8 key[0];
} __packed;
struct wilc_gtk_key {
@@ -65,7 +62,6 @@ struct wilc_gtk_key {
u8 rsc[8];
u8 index;
u8 key_len;
- u8 key[0];
} __packed;
struct wilc_op_mode {
diff -u -p ./drivers/net/wireless/marvell/mwifiex/ioctl.h /tmp/nothing/drivers/net/wireless/marvell/mwifiex/ioctl.h
--- ./drivers/net/wireless/marvell/mwifiex/ioctl.h
+++ /tmp/nothing/drivers/net/wireless/marvell/mwifiex/ioctl.h
@@ -30,7 +30,6 @@ enum {
struct mwifiex_user_scan {
u32 scan_cfg_len;
- u8 scan_cfg_buf[1];
};
#define MWIFIEX_PROMISC_MODE 1
diff -u -p ./net/bluetooth/msft.c /tmp/nothing/net/bluetooth/msft.c
--- ./net/bluetooth/msft.c
+++ /tmp/nothing/net/bluetooth/msft.c
@@ -17,7 +17,6 @@ struct msft_rp_read_supported_features {
__u8 sub_opcode;
__le64 features;
__u8 evt_prefix_len;
- __u8 evt_prefix[0];
} __packed;
struct msft_data {
diff -u -p ./include/acpi/actbl2.h /tmp/nothing/include/acpi/actbl2.h
--- ./include/acpi/actbl2.h
+++ /tmp/nothing/include/acpi/actbl2.h
@@ -89,7 +89,6 @@ struct acpi_iort_node {
u32 reserved;
u32 mapping_count;
u32 mapping_offset;
- char node_data[1];
};
/* Values for subtable Type above */
@@ -144,14 +143,12 @@ struct acpi_iort_memory_access {
*/
struct acpi_iort_its_group {
u32 its_count;
- u32 identifiers[1]; /* GIC ITS identifier array */
};
struct acpi_iort_named_component {
u32 node_flags;
u64 memory_properties; /* Memory access properties */
u8 memory_address_limit; /* Memory address size limit */
- char device_name[1]; /* Path of namespace object */
};
/* Masks for Flags field above */
@@ -182,7 +179,6 @@ struct acpi_iort_smmu {
u32 context_interrupt_offset;
u32 pmu_interrupt_count;
u32 pmu_interrupt_offset;
- u64 interrupts[1]; /* Interrupt array */
};
/* Values for Model field above */
@@ -598,7 +594,6 @@ struct acpi_madt_local_sapic {
u8 reserved[3]; /* Reserved, must be zero */
u32 lapic_flags;
u32 uid; /* Numeric UID - ACPI 3.0 */
- char uid_string[1]; /* String UID - ACPI 3.0 */
};
/* 8: Platform Interrupt Source */
@@ -1052,7 +1047,6 @@ struct acpi_nfit_interleave {
u16 reserved; /* Reserved, must be zero */
u32 line_count;
u32 line_size;
- u32 line_offset[1]; /* Variable length */
};
/* 3: SMBIOS Management Information Structure */
@@ -1060,7 +1054,6 @@ struct acpi_nfit_interleave {
struct acpi_nfit_smbios {
struct acpi_nfit_header header;
u32 reserved; /* Reserved, must be zero */
- u8 data[1]; /* Variable length */
};
/* 4: NVDIMM Control Region Structure */
@@ -1117,7 +1110,6 @@ struct acpi_nfit_flush_address {
u32 device_handle;
u16 hint_count;
u8 reserved[6]; /* Reserved, must be zero */
- u64 hint_address[1]; /* Variable length */
};
/* 7: Platform Capabilities Structure */
diff -u -p ./tools/testing/selftests/bpf/progs/core_reloc_types.h /tmp/nothing/tools/testing/selftests/bpf/progs/core_reloc_types.h
--- ./tools/testing/selftests/bpf/progs/core_reloc_types.h
+++ /tmp/nothing/tools/testing/selftests/bpf/progs/core_reloc_types.h
@@ -349,7 +349,6 @@ struct core_reloc_arrays___diff_arr_dim
char b[3][4][5];
struct core_reloc_arrays_substruct c[4];
struct core_reloc_arrays_substruct d[2][3];
- struct core_reloc_arrays_substruct f[1][3];
};
/* different size of array's value (struct) */
@@ -388,7 +387,6 @@ struct core_reloc_arrays___fixed_arr {
struct core_reloc_arrays_substruct c[3];
struct core_reloc_arrays_substruct d[1][2];
/* not a flexible array anymore, but within access bounds */
- struct core_reloc_arrays_substruct f[1][2];
};
struct core_reloc_arrays___err_too_small {
@@ -429,7 +427,6 @@ struct core_reloc_arrays___err_bad_zero_
int a[5];
char b[2][3][4];
struct core_reloc_arrays_substruct c[3];
- struct core_reloc_arrays_substruct d[1][2];
};
/*
@@ -683,7 +680,6 @@ struct core_reloc_existence___err_wrong_
};
struct core_reloc_existence___err_wrong_int_type {
- int b[1];
};
struct core_reloc_existence___err_wrong_int_kind {
@@ -695,7 +691,6 @@ struct core_reloc_existence___err_wrong_
};
struct core_reloc_existence___err_wrong_arr_value_type {
- short arr[1];
};
struct core_reloc_existence___err_wrong_struct_type {
diff -u -p ./tools/lib/perf/include/perf/event.h /tmp/nothing/tools/lib/perf/include/perf/event.h
--- ./tools/lib/perf/include/perf/event.h
+++ /tmp/nothing/tools/lib/perf/include/perf/event.h
@@ -210,7 +210,6 @@ struct id_index_entry {
struct perf_record_id_index {
struct perf_event_header header;
__u64 nr;
- struct id_index_entry entries[0];
};
struct perf_record_auxtrace_info {
diff -u -p ./tools/perf/util/sort.h /tmp/nothing/tools/perf/util/sort.h
--- ./tools/perf/util/sort.h
+++ /tmp/nothing/tools/perf/util/sort.h
@@ -157,7 +157,6 @@ struct hist_entry {
}; /* non-leaf entries */
struct rb_root sorted_chain; /* leaf entry has callchains */
};
- struct callchain_root callchain[0]; /* must be last member */
};
static __pure inline bool hist_entry__has_callchains(struct hist_entry *he)
diff -u -p ./drivers/s390/char/sclp.h /tmp/nothing/drivers/s390/char/sclp.h
--- ./drivers/s390/char/sclp.h
+++ /tmp/nothing/drivers/s390/char/sclp.h
@@ -208,7 +208,6 @@ struct read_storage_sccb {
u16 assigned;
u16 standby;
u16 :16;
- u32 entries[0];
} __packed;
static inline void sclp_fill_core_info(struct sclp_core_info *info,
diff -u -p ./drivers/gpu/drm/i915/gvt/firmware.c /tmp/nothing/drivers/gpu/drm/i915/gvt/firmware.c
--- ./drivers/gpu/drm/i915/gvt/firmware.c
+++ /tmp/nothing/drivers/gpu/drm/i915/gvt/firmware.c
@@ -45,7 +45,6 @@ struct gvt_firmware_header {
u64 cfg_space_offset; /* offset in the file */
u64 mmio_size;
u64 mmio_offset; /* offset in the file */
- unsigned char data[1];
};
#define dev_to_drm_minor(d) dev_get_drvdata((d))
diff -u -p ./drivers/gpu/drm/vmwgfx/device_include/svga_overlay.h /tmp/nothing/drivers/gpu/drm/vmwgfx/device_include/svga_overlay.h
--- ./drivers/gpu/drm/vmwgfx/device_include/svga_overlay.h
+++ /tmp/nothing/drivers/gpu/drm/vmwgfx/device_include/svga_overlay.h
@@ -70,10 +70,6 @@ struct SVGAEscapeVideoSetRegs {
} header;
/* May include zero or more items. */
- struct {
- uint32 registerId;
- uint32 value;
- } items[1];
} SVGAEscapeVideoSetRegs;
typedef
diff -u -p ./drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h /tmp/nothing/drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h
--- ./drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h
+++ /tmp/nothing/drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h
@@ -475,7 +475,6 @@ struct mlx5_ifc_ste_mpls_bits {
u8 mpls1_s_bit[0x1];
u8 mpls1_qualifier[0x1];
u8 mpls0_s_bit[0x1];
- u8 mpls0_qualifier[0x1];
};
struct mlx5_ifc_ste_register_0_bits {
diff -u -p ./drivers/net/wireless/marvell/mwifiex/usb.h /tmp/nothing/drivers/net/wireless/marvell/mwifiex/usb.h
--- ./drivers/net/wireless/marvell/mwifiex/usb.h
+++ /tmp/nothing/drivers/net/wireless/marvell/mwifiex/usb.h
@@ -134,7 +134,6 @@ struct fw_sync_header {
struct fw_data {
struct fw_header fw_hdr;
__le32 seq_num;
- u8 data[1];
} __packed;
#endif /*_MWIFIEX_USB_H */
diff -u -p ./drivers/net/wireless/ath/ath10k/wmi.h /tmp/nothing/drivers/net/wireless/ath/ath10k/wmi.h
--- ./drivers/net/wireless/ath/ath10k/wmi.h
+++ /tmp/nothing/drivers/net/wireless/ath/ath10k/wmi.h
@@ -3052,7 +3052,6 @@ struct host_memory_chunk {
struct wmi_host_mem_chunks {
__le32 count;
/* some fw revisions require at least 1 chunk regardless of count */
- struct host_memory_chunk items[1];
} __packed;
struct wmi_init_cmd {
@@ -3202,7 +3201,6 @@ struct wmi_start_scan_tlvs {
/* TLV parameters. These includes channel list, ssid list, bssid list,
* extra ies.
*/
- u8 tlvs[0];
} __packed;
struct wmi_start_scan_cmd {
@@ -4245,7 +4243,6 @@ struct wmi_pdev_chanlist_update_event {
/* number of channels */
__le32 num_chan;
/* array of channels */
- struct wmi_channel channel_list[1];
} __packed;
#define WMI_MAX_DEBUG_MESG (sizeof(u32) * 32)
@@ -5784,7 +5781,6 @@ struct wmi_bcn_tmpl_cmd {
/* beacon buffer length */
__le32 buf_len;
/* variable length data */
- u8 data[1];
} __packed;
struct wmi_prb_tmpl_cmd {
@@ -5795,7 +5791,6 @@ struct wmi_prb_tmpl_cmd {
/* beacon buffer length */
__le32 buf_len;
/* Variable length data */
- u8 data[1];
} __packed;
enum wmi_sta_ps_mode {
@@ -7177,7 +7172,6 @@ struct wmi_tdls_peer_capabilities {
__le32 is_peer_responder;
__le32 pref_offchan_num;
__le32 pref_offchan_bw;
- struct wmi_channel peer_chan_list[1];
} __packed;
struct wmi_10_4_tdls_peer_update_cmd {
diff -u -p ./drivers/scsi/bfa/bfa_fc.h /tmp/nothing/drivers/scsi/bfa/bfa_fc.h
--- ./drivers/scsi/bfa/bfa_fc.h
+++ /tmp/nothing/drivers/scsi/bfa/bfa_fc.h
@@ -582,7 +582,6 @@ struct fc_prlo_s {
u32 command:8;
u32 page_len:8;
u32 payload_len:16;
- struct fc_prlo_params_page_s prlo_params[1];
};
/*
@@ -614,7 +613,6 @@ struct fc_prlo_acc_s {
u32 command:8;
u32 page_len:8;
u32 payload_len:16;
- struct fc_prlo_acc_params_page_s prlo_acc_params[1];
};
/*
@@ -774,7 +772,6 @@ struct fc_tprlo_s {
u32 page_len:8;
u32 payload_len:16;
- struct fc_tprlo_params_page_s tprlo_params[1];
};
enum fc_tprlo_type {
@@ -789,7 +786,6 @@ struct fc_tprlo_acc_s {
u32 command:8;
u32 page_len:8;
u32 payload_len:16;
- struct fc_prlo_acc_params_page_s tprlo_acc_params[1];
};
/*
@@ -815,7 +811,6 @@ struct fc_rscn_pl_s {
u8 command;
u8 pagelen;
__be16 payldlen;
- struct fc_rscn_event_s event[1];
};
/*
@@ -944,7 +939,6 @@ struct fc_rpsc_acc_s {
u32 rsvd:8;
u32 num_entries:16;
- struct fc_rpsc_speed_info_s speed_info[1];
};
/*
@@ -957,10 +951,6 @@ struct fc_rpsc2_cmd_s {
__be32 token;
u16 resvd;
__be16 num_pids; /* Number of pids in the request */
- struct {
- u32 rsvd1:8;
- u32 pid:24; /* port identifier */
- } pid_list[1];
};
enum fc_rpsc2_port_type {
@@ -990,7 +980,6 @@ struct fc_rpsc2_acc_s {
u8 els_cmd;
u8 resvd;
__be16 num_pids; /* Number of pids in the request */
- struct fc_rpsc2_port_info_s port_info[1]; /* port information */
};
/*
@@ -1563,7 +1552,6 @@ enum fdmi_port_attribute_type {
struct fdmi_attr_s {
__be16 type;
__be16 len;
- u8 value[1];
};
/*
diff -u -p ./security/integrity/ima/ima.h /tmp/nothing/security/integrity/ima/ima.h
--- ./security/integrity/ima/ima.h
+++ /tmp/nothing/security/integrity/ima/ima.h
@@ -101,7 +101,6 @@ struct ima_template_entry {
struct tpm_digest *digests;
struct ima_template_desc *template_desc; /* template descriptor */
u32 template_data_len;
- struct ima_field_data template_data[0]; /* template related data */
};
struct ima_queue_entry {
diff -u -p ./kernel/sched/sched.h /tmp/nothing/kernel/sched/sched.h
--- ./kernel/sched/sched.h
+++ /tmp/nothing/kernel/sched/sched.h
@@ -1471,7 +1471,6 @@ struct sched_group_capacity {
int id;
#endif
- unsigned long cpumask[0]; /* Balance mask */
};
struct sched_group {
diff -u -p ./drivers/gpu/drm/vmwgfx/vmwgfx_so.c /tmp/nothing/drivers/gpu/drm/vmwgfx/vmwgfx_so.c
--- ./drivers/gpu/drm/vmwgfx/vmwgfx_so.c
+++ /tmp/nothing/drivers/gpu/drm/vmwgfx/vmwgfx_so.c
@@ -69,7 +69,6 @@ struct vmw_view {
unsigned view_id; /* Immutable */
u32 cmd_size; /* Immutable */
bool committed; /* Protected by binding_mutex */
- u32 cmd[1]; /* Immutable */
};
static int vmw_view_create(struct vmw_resource *res);
diff -u -p ./drivers/infiniband/hw/i40iw/i40iw_virtchnl.h /tmp/nothing/drivers/infiniband/hw/i40iw/i40iw_virtchnl.h
--- ./drivers/infiniband/hw/i40iw/i40iw_virtchnl.h
+++ /tmp/nothing/drivers/infiniband/hw/i40iw/i40iw_virtchnl.h
@@ -46,7 +46,6 @@ struct i40iw_virtchnl_op_buf {
u16 rsvd;
u64 iw_chnl_op_ctx;
/* Member alignment MUST be maintained above this location */
- u8 iw_chnl_buf[1];
};
struct i40iw_virtchnl_resp_buf {
@@ -55,7 +54,6 @@ struct i40iw_virtchnl_resp_buf {
s16 iw_op_ret_code;
/* Member alignment MUST be maintained above this location */
u16 rsvd[2];
- u8 iw_chnl_buf[1];
};
enum i40iw_virtchnl_ops {
diff -u -p ./arch/s390/net/bpf_jit_comp.c /tmp/nothing/arch/s390/net/bpf_jit_comp.c
--- ./arch/s390/net/bpf_jit_comp.c
+++ /tmp/nothing/arch/s390/net/bpf_jit_comp.c
@@ -50,7 +50,6 @@ struct bpf_jit {
int r14_thunk_ip; /* Address of expoline thunk for 'br %r14' */
int tail_call_start; /* Tail call start offset */
int excnt; /* Number of exception table entries */
- int labels[1]; /* Labels for local jumps */
};
#define SEEN_MEM BIT(0) /* use mem[] for temporary storage */
diff -u -p ./arch/x86/platform/uv/uv_time.c /tmp/nothing/arch/x86/platform/uv/uv_time.c
--- ./arch/x86/platform/uv/uv_time.c
+++ /tmp/nothing/arch/x86/platform/uv/uv_time.c
@@ -49,10 +49,6 @@ struct uv_rtc_timer_head {
int next_cpu;
/* number of cpus on this node: */
int ncpus;
- struct {
- int lcpu; /* systemwide logical cpu number */
- u64 expires; /* next timer expiration for this cpu */
- } cpu[1];
};
/*
diff -u -p ./arch/x86/include/asm/pci.h /tmp/nothing/arch/x86/include/asm/pci.h
--- ./arch/x86/include/asm/pci.h
+++ /tmp/nothing/arch/x86/include/asm/pci.h
@@ -146,7 +146,6 @@ struct pci_setup_rom {
unsigned long bus;
unsigned long device;
unsigned long function;
- uint8_t romdata[0];
};
#endif /* _ASM_X86_PCI_H */
diff -u -p ./fs/adfs/dir_fplus.h /tmp/nothing/fs/adfs/dir_fplus.h
--- ./fs/adfs/dir_fplus.h
+++ /tmp/nothing/fs/adfs/dir_fplus.h
@@ -21,7 +21,6 @@ struct adfs_bigdirheader {
__le32 bigdirentries;
__le32 bigdirnamesize;
__le32 bigdirparent;
- char bigdirname[1];
} __attribute__((packed, aligned(4)));
struct adfs_bigdirentry {
diff -u -p ./include/linux/dma/ti-cppi5.h /tmp/nothing/include/linux/dma/ti-cppi5.h
--- ./include/linux/dma/ti-cppi5.h
+++ /tmp/nothing/include/linux/dma/ti-cppi5.h
@@ -47,7 +47,6 @@ struct cppi5_host_desc_t {
u32 buf_info1;
u32 org_buf_len;
u64 org_buf_ptr;
- u32 epib[0];
} __packed;
#define CPPI5_DESC_MIN_ALIGN (16U)
@@ -139,7 +138,6 @@ struct cppi5_desc_epib_t {
*/
struct cppi5_monolithic_desc_t {
struct cppi5_desc_hdr_t hdr;
- u32 epib[0];
};
#define CPPI5_INFO2_MDESC_DATA_OFFSET_SHIFT (18U)
diff -u -p ./drivers/s390/char/sclp_cmd.c /tmp/nothing/drivers/s390/char/sclp_cmd.c
--- ./drivers/s390/char/sclp_cmd.c
+++ /tmp/nothing/drivers/s390/char/sclp_cmd.c
@@ -240,7 +240,6 @@ struct attach_storage_sccb {
u16 :16;
u16 assigned;
u32 :32;
- u32 entries[0];
} __packed;
static int sclp_attach_storage(u8 id)
diff -u -p ./drivers/media/pci/cx18/cx18-scb.h /tmp/nothing/drivers/media/pci/cx18/cx18-scb.h
--- ./drivers/media/pci/cx18/cx18-scb.h
+++ /tmp/nothing/drivers/media/pci/cx18/cx18-scb.h
@@ -258,7 +258,6 @@ struct cx18_scb {
struct cx18_mailbox ppu2epu_mb;
struct cx18_mdl_ack cpu_mdl_ack[CX18_MAX_STREAMS][CX18_MAX_MDL_ACKS];
- struct cx18_mdl_ent cpu_mdl[1];
};
void cx18_init_scb(struct cx18 *cx);
diff -u -p ./drivers/staging/rtl8723bs/include/ieee80211.h /tmp/nothing/drivers/staging/rtl8723bs/include/ieee80211.h
--- ./drivers/staging/rtl8723bs/include/ieee80211.h
+++ /tmp/nothing/drivers/staging/rtl8723bs/include/ieee80211.h
@@ -244,7 +244,6 @@ struct ieee_param {
struct ieee_param_ex {
u32 cmd;
u8 sta_addr[ETH_ALEN];
- u8 data[0];
};
struct sta_data {
@@ -690,7 +689,6 @@ struct ieee80211_info_element_hdr {
struct ieee80211_info_element {
u8 id;
u8 len;
- u8 data[0];
} __attribute__ ((packed));
/*
@@ -757,7 +755,6 @@ struct ieee80211_txb {
u16 reserved;
u16 frag_size;
u16 payload_size;
- struct sk_buff *fragments[0];
};
diff -u -p ./drivers/net/ethernet/intel/i40e/i40e_type.h /tmp/nothing/drivers/net/ethernet/intel/i40e/i40e_type.h
--- ./drivers/net/ethernet/intel/i40e/i40e_type.h
+++ /tmp/nothing/drivers/net/ethernet/intel/i40e/i40e_type.h
@@ -403,7 +403,6 @@ struct i40e_nvm_access {
u32 config;
u32 offset; /* in bytes */
u32 data_size; /* in bytes */
- u8 data[1];
};
/* (Q)SFP module access definitions */
@@ -1448,7 +1447,6 @@ struct i40e_ddp_version {
struct i40e_package_header {
struct i40e_ddp_version version;
u32 segment_count;
- u32 segment_offset[1];
};
/* Generic segment header */
@@ -1479,12 +1477,10 @@ struct i40e_profile_segment {
struct i40e_ddp_version version;
char name[I40E_DDP_NAME_SIZE];
u32 device_table_count;
- struct i40e_device_id_entry device_table[1];
};
struct i40e_section_table {
u32 section_count;
- u32 section_offset[1];
};
struct i40e_profile_section_header {
@@ -1516,7 +1512,6 @@ struct i40e_profile_aq_section {
u16 flags;
u8 param[16];
u16 datalen;
- u8 data[1];
};
struct i40e_profile_info {
diff -u -p ./drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c /tmp/nothing/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c
--- ./drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c
+++ /tmp/nothing/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c
@@ -133,10 +133,6 @@ mlxsw_afk_key_info_find(struct mlxsw_afk
}
struct mlxsw_afk_picker {
- struct {
- DECLARE_BITMAP(element, MLXSW_AFK_ELEMENT_MAX);
- unsigned int total;
- } hits[0];
};
static void mlxsw_afk_picker_count_hits(struct mlxsw_afk *mlxsw_afk,
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
@@ -77,7 +77,6 @@ struct iwl_fw_ini_hcmd {
u8 id;
u8 group;
__le16 reserved;
- u8 data[0];
} __packed; /* FW_DEBUG_TLV_HCMD_DATA_API_S_VER_1 */
/**
diff -u -p ./drivers/net/hyperv/hyperv_net.h /tmp/nothing/drivers/net/hyperv/hyperv_net.h
--- ./drivers/net/hyperv/hyperv_net.h
+++ /tmp/nothing/drivers/net/hyperv/hyperv_net.h
@@ -422,7 +422,6 @@ struct nvsp_1_message_send_receive_buffe
* LargeOffset SmallOffset
*/
- struct nvsp_1_receive_buffer_section sections[1];
} __packed;
/*
@@ -782,7 +781,6 @@ struct nvsp_6_pd_batch_msg {
u16 guest2host:1;
u16 is_recv:1;
u16 reserved:14;
- struct nvsp_6_pd_buf pd_buf[0];
} __packed;
union nvsp_6_message_uber {
diff -u -p ./drivers/scsi/esas2r/atvda.h /tmp/nothing/drivers/scsi/esas2r/atvda.h
--- ./drivers/scsi/esas2r/atvda.h
+++ /tmp/nothing/drivers/scsi/esas2r/atvda.h
@@ -53,7 +53,6 @@ struct __packed atto_dev_addr {
#define VDA_DEVADDRF_SATA 0x01
#define VDA_DEVADDRF_SSD 0x02
u8 link_speed; /* VDALINKSPEED_xxx */
- u8 pad[1];
};
/* dev_addr2 was added for 64-bit alignment */
@@ -501,7 +500,6 @@ struct __packed atto_vda_dh_info {
#define VDADH_SMARTSTAT_ERR 0x01
u8 reserved[35];
- struct atto_vda_sge sge[1];
};
@@ -554,7 +552,6 @@ struct __packed atto_vda_metrics_info {
u16 dev_indexes[32];
u8 reserved[12];
- struct atto_vda_sge sge[1];
};
@@ -1117,7 +1114,6 @@ struct __packed atto_vda_diag_req {
u32 handle;
u32 rsvd;
u64 local_addr;
- struct atto_vda_sge sge[1];
};
@@ -1144,7 +1140,6 @@ struct __packed atto_vda_cli_req {
u8 sg_list_offset;
u32 handle;
u32 cmd_rsp_len;
- struct atto_vda_sge sge[1];
};
@@ -1210,7 +1205,6 @@ struct __packed atto_vda_mgmt_req {
struct atto_vda_sge sge[2];
struct atto_physical_region_description prde[2];
};
- struct atto_vda_sge payld_sge[1];
};
diff -u -p ./drivers/scsi/qla2xxx/qla_bsg.h /tmp/nothing/drivers/scsi/qla2xxx/qla_bsg.h
--- ./drivers/scsi/qla2xxx/qla_bsg.h
+++ /tmp/nothing/drivers/scsi/qla2xxx/qla_bsg.h
@@ -151,7 +151,6 @@ struct qla84_msg_mgmt {
uint16_t rsrvd;
struct qla84_mgmt_param mgmtp;/* parameters for cmd */
uint32_t len; /* bytes in payload following this struct */
- uint8_t payload[0]; /* payload for cmd */
};
struct qla_bsg_a84_mgmt {
@@ -204,7 +203,6 @@ struct qla_image_version {
struct qla_image_version_list {
uint32_t count;
- struct qla_image_version version[0];
} __packed;
struct qla_status_reg {
diff -u -p ./arch/sh/include/asm/thread_info.h /tmp/nothing/arch/sh/include/asm/thread_info.h
--- ./arch/sh/include/asm/thread_info.h
+++ /tmp/nothing/arch/sh/include/asm/thread_info.h
@@ -35,7 +35,6 @@ struct thread_info {
mm_segment_t addr_limit; /* thread address space */
unsigned long previous_sp; /* sp of previous stack in case
of nested IRQ stacks */
- __u8 supervisor_stack[0];
};
#endif
diff -u -p ./sound/soc/intel/skylake/skl-topology.h /tmp/nothing/sound/soc/intel/skylake/skl-topology.h
--- ./sound/soc/intel/skylake/skl-topology.h
+++ /tmp/nothing/sound/soc/intel/skylake/skl-topology.h
@@ -113,7 +113,6 @@ struct skl_cpr_gtw_cfg {
u32 dma_buffer_size;
u32 config_length;
/* not mandatory; required only for DMIC/I2S */
- u32 config_data[1];
} __packed;
struct skl_dma_control {
diff -u -p ./fs/isofs/rock.h /tmp/nothing/fs/isofs/rock.h
--- ./fs/isofs/rock.h
+++ /tmp/nothing/fs/isofs/rock.h
@@ -22,11 +22,9 @@ struct SU_ER_s {
__u8 len_des;
__u8 len_src;
__u8 ext_ver;
- __u8 data[0];
} __attribute__ ((packed));
struct RR_RR_s {
- __u8 flags[1];
} __attribute__ ((packed));
struct RR_PX_s {
@@ -44,7 +42,6 @@ struct RR_PN_s {
struct SL_component {
__u8 flags;
__u8 len;
- __u8 text[0];
} __attribute__ ((packed));
struct RR_SL_s {
@@ -54,7 +51,6 @@ struct RR_SL_s {
struct RR_NM_s {
__u8 flags;
- char name[0];
} __attribute__ ((packed));
struct RR_CL_s {
@@ -71,7 +67,6 @@ struct stamp {
struct RR_TF_s {
__u8 flags;
- struct stamp times[0]; /* Variable number of these beasts */
} __attribute__ ((packed));
/* Linux-specific extension for transparent decompression */
diff -u -p ./include/linux/avf/virtchnl.h /tmp/nothing/include/linux/avf/virtchnl.h
--- ./include/linux/avf/virtchnl.h
+++ /tmp/nothing/include/linux/avf/virtchnl.h
@@ -264,7 +264,6 @@ struct virtchnl_vf_resource {
u32 rss_key_size;
u32 rss_lut_size;
- struct virtchnl_vsi_resource vsi_res[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(36, virtchnl_vf_resource);
@@ -329,7 +328,6 @@ struct virtchnl_vsi_queue_config_info {
u16 vsi_id;
u16 num_queue_pairs;
u32 pad;
- struct virtchnl_queue_pair_info qpair[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_vsi_queue_config_info);
@@ -369,7 +367,6 @@ VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_v
struct virtchnl_irq_map_info {
u16 num_vectors;
- struct virtchnl_vector_map vecmap[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(14, virtchnl_irq_map_info);
@@ -413,7 +410,6 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_et
struct virtchnl_ether_addr_list {
u16 vsi_id;
u16 num_elements;
- struct virtchnl_ether_addr list[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_ether_addr_list);
@@ -435,7 +431,6 @@ VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_e
struct virtchnl_vlan_filter_list {
u16 vsi_id;
u16 num_elements;
- u16 vlan_id[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_vlan_filter_list);
@@ -476,7 +471,6 @@ struct virtchnl_rss_key {
u16 vsi_id;
u16 key_len;
u8 key[1]; /* RSS hash key, packed bytes */
- u8 pad[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_key);
@@ -485,7 +479,6 @@ struct virtchnl_rss_lut {
u16 vsi_id;
u16 lut_entries;
u8 lut[1]; /* RSS lookup table */
- u8 pad[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_lut);
@@ -522,7 +515,6 @@ VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_c
struct virtchnl_tc_info {
u32 num_tc;
u32 pad;
- struct virtchnl_channel_info list[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(24, virtchnl_tc_info);
@@ -646,7 +638,6 @@ VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_i
struct virtchnl_iwarp_qvlist_info {
u32 num_vectors;
- struct virtchnl_iwarp_qv_info qv_info[1];
};
VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_iwarp_qvlist_info);
diff -u -p ./include/linux/fs.h /tmp/nothing/include/linux/fs.h
--- ./include/linux/fs.h
+++ /tmp/nothing/include/linux/fs.h
@@ -3349,7 +3349,6 @@ static inline ino_t parent_ino(struct de
*/
struct simple_transaction_argresp {
ssize_t size;
- char data[0];
};
#define SIMPLE_TRANSACTION_LIMIT (PAGE_SIZE - sizeof(struct simple_transaction_argresp))
diff -u -p ./drivers/gpu/drm/amd/include/pptable.h /tmp/nothing/drivers/gpu/drm/amd/include/pptable.h
--- ./drivers/gpu/drm/amd/include/pptable.h
+++ /tmp/nothing/drivers/gpu/drm/amd/include/pptable.h
@@ -78,7 +78,6 @@ typedef struct _ATOM_PPLIB_THERMALCONTRO
typedef struct _ATOM_PPLIB_STATE
{
UCHAR ucNonClockStateIndex;
- UCHAR ucClockStateIndices[1]; // variable-sized
} ATOM_PPLIB_STATE;
@@ -473,14 +472,12 @@ typedef struct _ATOM_PPLIB_STATE_V2
/**
* Driver will read the first ucNumDPMLevels in this array
*/
- UCHAR clockInfoIndex[1];
} ATOM_PPLIB_STATE_V2;
typedef struct _StateArray{
//how many states we have
UCHAR ucNumEntries;
- ATOM_PPLIB_STATE_V2 states[1];
}StateArray;
@@ -491,7 +488,6 @@ typedef struct _ClockInfoArray{
//sizeof(ATOM_PPLIB_CLOCK_INFO)
UCHAR ucEntrySize;
- UCHAR clockInfo[1];
}ClockInfoArray;
typedef struct _NonClockInfoArray{
@@ -501,7 +497,6 @@ typedef struct _NonClockInfoArray{
//sizeof(ATOM_PPLIB_NONCLOCK_INFO)
UCHAR ucEntrySize;
- ATOM_PPLIB_NONCLOCK_INFO nonClockInfo[1];
}NonClockInfoArray;
typedef struct _ATOM_PPLIB_Clock_Voltage_Dependency_Record
@@ -514,7 +509,6 @@ typedef struct _ATOM_PPLIB_Clock_Voltage
typedef struct _ATOM_PPLIB_Clock_Voltage_Dependency_Table
{
UCHAR ucNumEntries; // Number of entries.
- ATOM_PPLIB_Clock_Voltage_Dependency_Record entries[1]; // Dynamically allocate entries.
}ATOM_PPLIB_Clock_Voltage_Dependency_Table;
typedef struct _ATOM_PPLIB_Clock_Voltage_Limit_Record
@@ -530,7 +524,6 @@ typedef struct _ATOM_PPLIB_Clock_Voltage
typedef struct _ATOM_PPLIB_Clock_Voltage_Limit_Table
{
UCHAR ucNumEntries; // Number of entries.
- ATOM_PPLIB_Clock_Voltage_Limit_Record entries[1]; // Dynamically allocate entries.
}ATOM_PPLIB_Clock_Voltage_Limit_Table;
union _ATOM_PPLIB_CAC_Leakage_Record
@@ -554,7 +547,6 @@ typedef union _ATOM_PPLIB_CAC_Leakage_Re
typedef struct _ATOM_PPLIB_CAC_Leakage_Table
{
UCHAR ucNumEntries; // Number of entries.
- ATOM_PPLIB_CAC_Leakage_Record entries[1]; // Dynamically allocate entries.
}ATOM_PPLIB_CAC_Leakage_Table;
typedef struct _ATOM_PPLIB_PhaseSheddingLimits_Record
@@ -569,7 +561,6 @@ typedef struct _ATOM_PPLIB_PhaseShedding
typedef struct _ATOM_PPLIB_PhaseSheddingLimits_Table
{
UCHAR ucNumEntries; // Number of entries.
- ATOM_PPLIB_PhaseSheddingLimits_Record entries[1]; // Dynamically allocate entries.
}ATOM_PPLIB_PhaseSheddingLimits_Table;
typedef struct _VCEClockInfo{
@@ -581,7 +572,6 @@ typedef struct _VCEClockInfo{
typedef struct _VCEClockInfoArray{
UCHAR ucNumEntries;
- VCEClockInfo entries[1];
}VCEClockInfoArray;
typedef struct _ATOM_PPLIB_VCE_Clock_Voltage_Limit_Record
@@ -593,7 +583,6 @@ typedef struct _ATOM_PPLIB_VCE_Clock_Vol
typedef struct _ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table
{
UCHAR numEntries;
- ATOM_PPLIB_VCE_Clock_Voltage_Limit_Record entries[1];
}ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table;
typedef struct _ATOM_PPLIB_VCE_State_Record
@@ -605,7 +594,6 @@ typedef struct _ATOM_PPLIB_VCE_State_Rec
typedef struct _ATOM_PPLIB_VCE_State_Table
{
UCHAR numEntries;
- ATOM_PPLIB_VCE_State_Record entries[1];
}ATOM_PPLIB_VCE_State_Table;
@@ -627,7 +615,6 @@ typedef struct _UVDClockInfo{
typedef struct _UVDClockInfoArray{
UCHAR ucNumEntries;
- UVDClockInfo entries[1];
}UVDClockInfoArray;
typedef struct _ATOM_PPLIB_UVD_Clock_Voltage_Limit_Record
@@ -639,7 +626,6 @@ typedef struct _ATOM_PPLIB_UVD_Clock_Vol
typedef struct _ATOM_PPLIB_UVD_Clock_Voltage_Limit_Table
{
UCHAR numEntries;
- ATOM_PPLIB_UVD_Clock_Voltage_Limit_Record entries[1];
}ATOM_PPLIB_UVD_Clock_Voltage_Limit_Table;
typedef struct _ATOM_PPLIB_UVD_Table
@@ -658,7 +644,6 @@ typedef struct _ATOM_PPLIB_SAMClk_Voltag
typedef struct _ATOM_PPLIB_SAMClk_Voltage_Limit_Table{
UCHAR numEntries;
- ATOM_PPLIB_SAMClk_Voltage_Limit_Record entries[1];
}ATOM_PPLIB_SAMClk_Voltage_Limit_Table;
typedef struct _ATOM_PPLIB_SAMU_Table
@@ -676,7 +661,6 @@ typedef struct _ATOM_PPLIB_ACPClk_Voltag
typedef struct _ATOM_PPLIB_ACPClk_Voltage_Limit_Table{
UCHAR numEntries;
- ATOM_PPLIB_ACPClk_Voltage_Limit_Record entries[1];
}ATOM_PPLIB_ACPClk_Voltage_Limit_Table;
typedef struct _ATOM_PPLIB_ACP_Table
@@ -745,7 +729,6 @@ typedef struct ATOM_PPLIB_VQ_Budgeting_R
typedef struct ATOM_PPLIB_VQ_Budgeting_Table {
UCHAR revid;
UCHAR numEntries;
- ATOM_PPLIB_VQ_Budgeting_Record entries[1];
} ATOM_PPLIB_VQ_Budgeting_Table;
#pragma pack()
diff -u -p ./drivers/staging/mt7621-dma/mtk-hsdma.c /tmp/nothing/drivers/staging/mt7621-dma/mtk-hsdma.c
--- ./drivers/staging/mt7621-dma/mtk-hsdma.c
+++ /tmp/nothing/drivers/staging/mt7621-dma/mtk-hsdma.c
@@ -137,7 +137,6 @@ struct mtk_hsdma_sg {
struct mtk_hsdma_desc {
struct virt_dma_desc vdesc;
unsigned int num_sgs;
- struct mtk_hsdma_sg sg[1];
};
struct mtk_hsdma_chan {
@@ -159,7 +158,6 @@ struct mtk_hsdam_engine {
struct tasklet_struct task;
volatile unsigned long chan_issued;
- struct mtk_hsdma_chan chan[1];
};
static inline struct mtk_hsdam_engine *mtk_hsdma_chan_get_dev(
diff -u -p ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h /tmp/nothing/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
--- ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
+++ /tmp/nothing/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
@@ -1510,7 +1510,6 @@ struct port_mf_cfg {
#define PORT_MF_CFG_E1HOV_TAG_SHIFT 0
#define PORT_MF_CFG_E1HOV_TAG_DEFAULT PORT_MF_CFG_E1HOV_TAG_MASK
- u32 reserved[1];
};
@@ -1789,7 +1788,6 @@ struct dcbx_ets_feature {
*/
u32 enabled;
u32 pg_bw_tbl[2];
- u32 pri_pg_tbl[1];
};
/* Driver structure in LE */
diff -u -p ./drivers/net/wireless/atmel/at76c50x-usb.h /tmp/nothing/drivers/net/wireless/atmel/at76c50x-usb.h
--- ./drivers/net/wireless/atmel/at76c50x-usb.h
+++ /tmp/nothing/drivers/net/wireless/atmel/at76c50x-usb.h
@@ -115,7 +115,6 @@ struct hwcfg_intersil {
u8 cr58_values[14];
u8 pidvid[4];
u8 regulatory_domain;
- u8 reserved[1];
} __packed;
union at76_hwcfg {
diff -u -p ./drivers/net/wireless/marvell/libertas/types.h /tmp/nothing/drivers/net/wireless/marvell/libertas/types.h
--- ./drivers/net/wireless/marvell/libertas/types.h
+++ /tmp/nothing/drivers/net/wireless/marvell/libertas/types.h
@@ -105,23 +105,19 @@ struct mrvl_ie_header {
struct mrvl_ie_data {
struct mrvl_ie_header header;
- u8 Data[1];
} __packed;
struct mrvl_ie_rates_param_set {
struct mrvl_ie_header header;
- u8 rates[1];
} __packed;
struct mrvl_ie_ssid_param_set {
struct mrvl_ie_header header;
- u8 ssid[1];
} __packed;
struct mrvl_ie_wildcard_ssid_param_set {
struct mrvl_ie_header header;
u8 MaxSsidlength;
- u8 ssid[1];
} __packed;
struct chanscanmode {
@@ -146,7 +142,6 @@ struct chanscanparamset {
struct mrvl_ie_chanlist_param_set {
struct mrvl_ie_header header;
- struct chanscanparamset chanscanparam[1];
} __packed;
struct mrvl_ie_cf_param_set {
@@ -164,12 +159,10 @@ struct mrvl_ie_ds_param_set {
struct mrvl_ie_rsn_param_set {
struct mrvl_ie_header header;
- u8 rsnie[1];
} __packed;
struct mrvl_ie_tsf_timestamp {
struct mrvl_ie_header header;
- __le64 tsftable[1];
} __packed;
/* v9 and later firmware only */
@@ -220,7 +213,6 @@ struct led_pin {
struct mrvl_ie_ledgpio {
struct mrvl_ie_header header;
- struct led_pin ledpin[1];
} __packed;
struct led_bhv {
@@ -233,7 +225,6 @@ struct led_bhv {
struct mrvl_ie_ledbhv {
struct mrvl_ie_header header;
- struct led_bhv ledbhv[1];
} __packed;
/*
diff -u -p ./drivers/net/wireless/ath/ath11k/dp.h /tmp/nothing/drivers/net/wireless/ath/ath11k/dp.h
--- ./drivers/net/wireless/ath/ath11k/dp.h
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/dp.h
@@ -1091,12 +1091,10 @@ struct ath11k_htt_ppdu_stats_msg {
u32 ppdu_id;
u32 timestamp;
u32 rsvd;
- u8 data[0];
} __packed;
struct htt_tlv {
u32 header;
- u8 value[0];
} __packed;
#define HTT_TLV_TAG GENMASK(11, 0)
@@ -1283,7 +1281,6 @@ struct htt_ppdu_stats_usr_cmn_array {
* tx_ppdu_stats_info is variable length, with length =
* number_of_ppdu_stats * sizeof (struct htt_tx_ppdu_stats_info)
*/
- struct htt_tx_ppdu_stats_info tx_ppdu_info[0];
} __packed;
struct htt_ppdu_user_stats {
@@ -1345,7 +1342,6 @@ struct htt_ppdu_stats_info {
*/
struct htt_pktlog_msg {
u32 hdr;
- u8 payload[0];
};
/**
@@ -1566,7 +1562,6 @@ struct ath11k_htt_extd_stats_msg {
u32 info0;
u64 cookie;
u32 info1;
- u8 data[0];
} __packed;
struct htt_mac_addr {
diff -u -p ./drivers/scsi/ipr.h /tmp/nothing/drivers/scsi/ipr.h
--- ./drivers/scsi/ipr.h
+++ /tmp/nothing/drivers/scsi/ipr.h
@@ -1082,7 +1082,6 @@ struct ipr_hostrcb_fabric_desc {
#define IPR_PATH_FAILED 0x03
__be16 num_entries;
- struct ipr_hostrcb_config_element elem[1];
}__attribute__((packed, aligned (4)));
struct ipr_hostrcb64_fabric_desc {
@@ -1096,7 +1095,6 @@ struct ipr_hostrcb64_fabric_desc {
u8 res_path[8];
u8 reserved3[6];
__be16 num_entries;
- struct ipr_hostrcb64_config_element elem[1];
}__attribute__((packed, aligned (8)));
#define for_each_hrrq(hrrq, ioa_cfg) \
@@ -1112,14 +1110,12 @@ struct ipr_hostrcb_type_20_error {
u8 failure_reason[64];
u8 reserved[3];
u8 num_entries;
- struct ipr_hostrcb_fabric_desc desc[1];
}__attribute__((packed, aligned (4)));
struct ipr_hostrcb_type_30_error {
u8 failure_reason[64];
u8 reserved[3];
u8 num_entries;
- struct ipr_hostrcb64_fabric_desc desc[1];
}__attribute__((packed, aligned (4)));
struct ipr_hostrcb_type_41_error {
@@ -1264,7 +1260,6 @@ struct ipr_sdt {
struct ipr_uc_sdt {
struct ipr_sdt_header hdr;
- struct ipr_sdt_entry entry[1];
}__attribute__((packed, aligned (4)));
/*
@@ -1748,7 +1743,6 @@ struct ipr_ucode_image_header {
u8 reserved[20];
char eyecatcher[16];
__be32 num_lids;
- struct ipr_software_inq_lid_info lid[1];
}__attribute__((packed, aligned (4)));
/*
diff -u -p ./sound/soc/intel/haswell/sst-haswell-ipc.h /tmp/nothing/sound/soc/intel/haswell/sst-haswell-ipc.h
--- ./sound/soc/intel/haswell/sst-haswell-ipc.h
+++ /tmp/nothing/sound/soc/intel/haswell/sst-haswell-ipc.h
@@ -220,7 +220,6 @@ struct sst_hsw_module_entry {
/* Module map - alignement matches DSP */
struct sst_hsw_module_map {
u8 module_entries_count;
- struct sst_hsw_module_entry module_entries[1];
} __attribute__((packed));
struct sst_hsw_memory_info {
diff -u -p ./include/linux/hyperv.h /tmp/nothing/include/linux/hyperv.h
--- ./include/linux/hyperv.h
+++ /tmp/nothing/include/linux/hyperv.h
@@ -290,7 +290,6 @@ struct vmtransfer_page_packet_header {
u8 sender_owns_set;
u8 reserved;
u32 range_cnt;
- struct vmtransfer_page_range ranges[1];
} __packed;
struct vmgpadl_packet_header {
@@ -327,7 +326,6 @@ struct vmestablish_gpadl {
struct vmpacket_descriptor d;
u32 gpadl;
u32 range_cnt;
- struct gpa_range range[1];
} __packed;
/*
@@ -348,7 +346,6 @@ struct vmdata_gpa_direct {
struct vmpacket_descriptor d;
u32 reserved;
u32 range_cnt;
- struct gpa_range range[1];
} __packed;
/* This is the format for a Additional Data Packet. */
@@ -357,7 +354,6 @@ struct vmadditional_data {
u64 total_bytes;
u32 offset;
u32 byte_cnt;
- unsigned char data[1];
} __packed;
union vmpacket_largest_possible_header {
@@ -1447,7 +1443,6 @@ struct icmsg_negotiate {
u16 icframe_vercnt;
u16 icmsg_vercnt;
u32 reserved;
- struct ic_version icversion_data[1]; /* any size array */
} __packed;
struct shutdown_msg_data {
diff -u -p ./include/linux/platform_data/cros_ec_commands.h /tmp/nothing/include/linux/platform_data/cros_ec_commands.h
--- ./include/linux/platform_data/cros_ec_commands.h
+++ /tmp/nothing/include/linux/platform_data/cros_ec_commands.h
@@ -5065,7 +5065,6 @@ struct ec_response_pd_log {
uint8_t type; /* event type : see PD_EVENT_xx below */
uint8_t size_port; /* [7:5] port number [4:0] payload size in bytes */
uint16_t data; /* type-defined data payload */
- uint8_t payload[0]; /* optional additional data payload: 0..16 bytes */
} __ec_align4;
/* The timestamp is the microsecond counter shifted to get about a ms. */
@@ -5774,7 +5773,6 @@ struct ec_response_fp_encryption_status
struct ec_response_tp_frame_info {
uint32_t n_frames;
- uint32_t frame_sizes[0];
} __ec_align4;
/* Create a snapshot of current frame readings */
diff -u -p ./drivers/net/ethernet/mscc/ocelot_vcap.h /tmp/nothing/drivers/net/ethernet/mscc/ocelot_vcap.h
--- ./drivers/net/ethernet/mscc/ocelot_vcap.h
+++ /tmp/nothing/drivers/net/ethernet/mscc/ocelot_vcap.h
@@ -23,7 +23,6 @@ enum ocelot_vcap_bit {
struct ocelot_vcap_u8 {
u8 value[1];
- u8 mask[1];
};
struct ocelot_vcap_u16 {
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/filter.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/filter.h
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/filter.h
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/filter.h
@@ -89,7 +89,6 @@ struct iwl_mcast_filter_cmd {
u8 pass_all;
u8 bssid[6];
u8 reserved[2];
- u8 addr_list[0];
} __packed; /* MCAST_FILTERING_CMD_API_S_VER_1 */
#define MAX_BCAST_FILTERS 8
diff -u -p ./drivers/net/wireless/ath/ath11k/debug_htt_stats.h /tmp/nothing/drivers/net/wireless/ath/ath11k/debug_htt_stats.h
--- ./drivers/net/wireless/ath/ath11k/debug_htt_stats.h
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/debug_htt_stats.h
@@ -134,7 +134,6 @@ enum htt_tx_pdev_underrun_enum {
/* Bytes stored in little endian order */
/* Length should be multiple of DWORD */
struct htt_stats_string_tlv {
- u32 data[0]; /* Can be variable length */
} __packed;
/* == TX PDEV STATS == */
@@ -194,27 +193,22 @@ struct htt_tx_pdev_stats_cmn_tlv {
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_pdev_stats_urrn_tlv_v {
- u32 urrn_stats[0]; /* HTT_TX_PDEV_MAX_URRN_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_pdev_stats_flush_tlv_v {
- u32 flush_errs[0]; /* HTT_TX_PDEV_MAX_FLUSH_REASON_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_pdev_stats_sifs_tlv_v {
- u32 sifs_status[0]; /* HTT_TX_PDEV_MAX_SIFS_BURST_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_pdev_stats_phy_err_tlv_v {
- u32 phy_errs[0]; /* HTT_TX_PDEV_MAX_PHY_ERR_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_pdev_stats_sifs_hist_tlv_v {
- u32 sifs_hist_status[0]; /* HTT_TX_PDEV_SIFS_BURST_HIST_STATS */
};
struct htt_tx_pdev_stats_tx_ppdu_stats_tlv_v {
@@ -556,19 +550,16 @@ struct htt_tx_hwq_difs_latency_stats_tlv
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_hwq_cmd_result_stats_tlv_v {
/* Histogram of sched cmd result */
- u32 cmd_result[0]; /* HTT_TX_HWQ_MAX_CMD_RESULT_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_hwq_cmd_stall_stats_tlv_v {
/* Histogram of various pause conitions */
- u32 cmd_stall_status[0]; /* HTT_TX_HWQ_MAX_CMD_STALL_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_hwq_fes_result_stats_tlv_v {
/* Histogram of number of user fes result */
- u32 fes_result[0]; /* HTT_TX_HWQ_MAX_FES_RESULT_STATS */
};
/* NOTE: Variable length TLV, use length spec to infer array size
@@ -601,7 +592,6 @@ struct htt_tx_hwq_tried_mpdu_cnt_hist_tl
*/
struct htt_tx_hwq_txop_used_cnt_hist_tlv_v {
/* Histogram of txop used cnt */
- u32 txop_used_cnt_hist[0]; /* HTT_TX_HWQ_TXOP_USED_CNT_HIST */
};
/* == TX SELFGEN STATS == */
@@ -748,17 +738,14 @@ struct htt_tx_pdev_mpdu_stats_tlv {
/* == TX SCHED STATS == */
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_sched_txq_cmd_posted_tlv_v {
- u32 sched_cmd_posted[0]; /* HTT_TX_PDEV_SCHED_TX_MODE_MAX */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_sched_txq_cmd_reaped_tlv_v {
- u32 sched_cmd_reaped[0]; /* HTT_TX_PDEV_SCHED_TX_MODE_MAX */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_sched_txq_sched_order_su_tlv_v {
- u32 sched_order_su[0]; /* HTT_TX_PDEV_NUM_SCHED_ORDER_LOG */
};
enum htt_sched_txq_sched_ineligibility_tlv_enum {
@@ -786,7 +773,6 @@ enum htt_sched_txq_sched_ineligibility_t
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_sched_txq_sched_ineligibility_tlv_v {
/* indexed by htt_sched_txq_sched_ineligibility_tlv_enum */
- u32 sched_ineligibility[0];
};
struct htt_tx_pdev_stats_sched_per_txq_tlv {
@@ -829,17 +815,14 @@ struct htt_stats_tx_sched_cmn_tlv {
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_tqm_gen_mpdu_stats_tlv_v {
- u32 gen_mpdu_end_reason[0]; /* HTT_TX_TQM_MAX_GEN_MPDU_END_REASON */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_tqm_list_mpdu_stats_tlv_v {
- u32 list_mpdu_end_reason[0]; /* HTT_TX_TQM_MAX_LIST_MPDU_END_REASON */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_tx_tqm_list_mpdu_cnt_tlv_v {
- u32 list_mpdu_cnt_hist[0];
/* HTT_TX_TQM_MAX_LIST_MPDU_CNT_HISTOGRAM_BINS */
};
@@ -1036,7 +1019,6 @@ struct htt_tx_de_compl_stats_tlv {
* ENTRIES_PER_BIN_COUNT)
*/
struct htt_tx_de_fw2wbm_ring_full_hist_tlv {
- u32 fw2wbm_ring_full_hist[0];
};
struct htt_tx_de_cmn_stats_tlv {
@@ -1080,7 +1062,6 @@ struct htt_ring_if_cmn_tlv {
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_sfm_client_user_tlv_v {
/* Number of DWORDS used per user and per client */
- u32 dwords_used_by_user_n[0];
};
struct htt_sfm_client_tlv {
@@ -1335,12 +1316,10 @@ struct htt_rx_soc_fw_stats_tlv {
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_rx_soc_fw_refill_ring_empty_tlv_v {
- u32 refill_ring_empty_cnt[0]; /* HTT_RX_STATS_REFILL_MAX_RING */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_rx_soc_fw_refill_ring_num_refill_tlv_v {
- u32 refill_ring_num_refill[0]; /* HTT_RX_STATS_REFILL_MAX_RING */
};
/* RXDMA error code from WBM released packets */
@@ -1372,7 +1351,6 @@ enum htt_rx_rxdma_error_code_enum {
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_rx_soc_fw_refill_ring_num_rxdma_err_tlv_v {
- u32 rxdma_err[0]; /* HTT_RX_RXDMA_MAX_ERR_CODE */
};
/* REO error code from WBM released packets */
@@ -1404,7 +1382,6 @@ enum htt_rx_reo_error_code_enum {
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_rx_soc_fw_refill_ring_num_reo_err_tlv_v {
- u32 reo_err[0]; /* HTT_RX_REO_MAX_ERR_CODE */
};
/* == RX PDEV STATS == */
@@ -1521,13 +1498,11 @@ struct htt_rx_pdev_fw_stats_phy_err_tlv
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_rx_pdev_fw_ring_mpdu_err_tlv_v {
/* Num error MPDU for each RxDMA error type */
- u32 fw_ring_mpdu_err[0]; /* HTT_RX_STATS_RXDMA_MAX_ERR */
};
/* NOTE: Variable length TLV, use length spec to infer array size */
struct htt_rx_pdev_fw_mpdu_drop_tlv_v {
/* Num MPDU dropped */
- u32 fw_mpdu_drop[0]; /* HTT_RX_STATS_FW_DROP_REASON_MAX */
};
#define HTT_PDEV_CCA_STATS_TX_FRAME_INFO_PRESENT (0x1)
diff -u -p ./drivers/scsi/qla2xxx/qla_dbg.h /tmp/nothing/drivers/scsi/qla2xxx/qla_dbg.h
--- ./drivers/scsi/qla2xxx/qla_dbg.h
+++ /tmp/nothing/drivers/scsi/qla2xxx/qla_dbg.h
@@ -32,7 +32,6 @@ struct qla2300_fw_dump {
__be16 fpm_b1_reg[64];
__be16 risc_ram[0xf800];
__be16 stack_ram[0x1000];
- __be16 data_ram[1];
};
struct qla2100_fw_dump {
@@ -85,7 +84,6 @@ struct qla24xx_fw_dump {
__be32 fpm_hdw_reg[192];
__be32 fb_hdw_reg[176];
__be32 code_ram[0x2000];
- __be32 ext_mem[1];
};
struct qla25xx_fw_dump {
@@ -124,7 +122,6 @@ struct qla25xx_fw_dump {
__be32 fpm_hdw_reg[192];
__be32 fb_hdw_reg[192];
__be32 code_ram[0x2000];
- __be32 ext_mem[1];
};
struct qla81xx_fw_dump {
@@ -163,7 +160,6 @@ struct qla81xx_fw_dump {
__be32 fpm_hdw_reg[224];
__be32 fb_hdw_reg[208];
__be32 code_ram[0x2000];
- __be32 ext_mem[1];
};
struct qla83xx_fw_dump {
@@ -211,7 +207,6 @@ struct qla83xx_fw_dump {
__be32 fb_hdw_reg[432];
__be32 at0_array_reg[128];
__be32 code_ram[0x2400];
- __be32 ext_mem[1];
};
#define EFT_NUM_BUFFERS 4
diff -u -p ./drivers/scsi/mpt3sas/mpi/mpi2.h /tmp/nothing/drivers/scsi/mpt3sas/mpi/mpi2.h
--- ./drivers/scsi/mpt3sas/mpi/mpi2.h
+++ /tmp/nothing/drivers/scsi/mpt3sas/mpi/mpi2.h
@@ -933,7 +933,6 @@ typedef struct _MPI2_SGE_TRANSACTION32 {
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[1];
- U32 TransactionDetails[1];
} MPI2_SGE_TRANSACTION32,
*PTR_MPI2_SGE_TRANSACTION32,
Mpi2SGETransaction32_t,
@@ -945,7 +944,6 @@ typedef struct _MPI2_SGE_TRANSACTION64 {
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[2];
- U32 TransactionDetails[1];
} MPI2_SGE_TRANSACTION64,
*PTR_MPI2_SGE_TRANSACTION64,
Mpi2SGETransaction64_t,
@@ -957,7 +955,6 @@ typedef struct _MPI2_SGE_TRANSACTION96 {
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[3];
- U32 TransactionDetails[1];
} MPI2_SGE_TRANSACTION96, *PTR_MPI2_SGE_TRANSACTION96,
Mpi2SGETransaction96_t, *pMpi2SGETransaction96_t;
@@ -967,7 +964,6 @@ typedef struct _MPI2_SGE_TRANSACTION128
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[4];
- U32 TransactionDetails[1];
} MPI2_SGE_TRANSACTION128, *PTR_MPI2_SGE_TRANSACTION128,
Mpi2SGETransaction_t128, *pMpi2SGETransaction_t128;
@@ -982,7 +978,6 @@ typedef struct _MPI2_SGE_TRANSACTION_UNI
U32 TransactionContext96[3];
U32 TransactionContext128[4];
} u;
- U32 TransactionDetails[1];
} MPI2_SGE_TRANSACTION_UNION,
*PTR_MPI2_SGE_TRANSACTION_UNION,
Mpi2SGETransactionUnion_t,
diff -u -p ./drivers/target/target_core_pscsi.h /tmp/nothing/drivers/target/target_core_pscsi.h
--- ./drivers/target/target_core_pscsi.h
+++ /tmp/nothing/drivers/target/target_core_pscsi.h
@@ -24,7 +24,6 @@ struct scsi_device;
struct Scsi_Host;
struct pscsi_plugin_task {
- unsigned char pscsi_cdb[0];
} ____cacheline_aligned;
#define PDF_HAS_CHANNEL_ID 0x01
diff -u -p ./drivers/message/fusion/lsi/mpi_lan.h /tmp/nothing/drivers/message/fusion/lsi/mpi_lan.h
--- ./drivers/message/fusion/lsi/mpi_lan.h
+++ /tmp/nothing/drivers/message/fusion/lsi/mpi_lan.h
@@ -55,7 +55,6 @@ typedef struct _MSG_LAN_SEND_REQUEST
U8 PortNumber; /* 06h */
U8 MsgFlags; /* 07h */
U32 MsgContext; /* 08h */
- SGE_MPI_UNION SG_List[1]; /* 0Ch */
} MSG_LAN_SEND_REQUEST, MPI_POINTER PTR_MSG_LAN_SEND_REQUEST,
LANSendRequest_t, MPI_POINTER pLANSendRequest_t;
@@ -90,7 +89,6 @@ typedef struct _MSG_LAN_RECEIVE_POST_REQ
U8 MsgFlags; /* 07h */
U32 MsgContext; /* 08h */
U32 BucketCount; /* 0Ch */
- SGE_MPI_UNION SG_List[1]; /* 10h */
} MSG_LAN_RECEIVE_POST_REQUEST, MPI_POINTER PTR_MSG_LAN_RECEIVE_POST_REQUEST,
LANReceivePostRequest_t, MPI_POINTER pLANReceivePostRequest_t;
@@ -111,7 +109,6 @@ typedef struct _MSG_LAN_RECEIVE_POST_REP
U32 BucketsRemaining; /* 14h */
U32 PacketOffset; /* 18h */
U32 PacketLength; /* 1Ch */
- U32 BucketContext[1]; /* 20h */
} MSG_LAN_RECEIVE_POST_REPLY, MPI_POINTER PTR_MSG_LAN_RECEIVE_POST_REPLY,
LANReceivePostReply_t, MPI_POINTER pLANReceivePostReply_t;
diff -u -p ./fs/xfs/libxfs/xfs_da_format.h /tmp/nothing/fs/xfs/libxfs/xfs_da_format.h
--- ./fs/xfs/libxfs/xfs_da_format.h
+++ /tmp/nothing/fs/xfs/libxfs/xfs_da_format.h
@@ -585,12 +585,6 @@ typedef struct xfs_attr_shortform {
__u8 count; /* count of active entries */
__u8 padding;
} hdr;
- struct xfs_attr_sf_entry {
- uint8_t namelen; /* actual length of name (no NULL) */
- uint8_t valuelen; /* actual length of value (no NULL) */
- uint8_t flags; /* flags bits (see xfs_attr_leaf.h) */
- uint8_t nameval[1]; /* name & value bytes concatenated */
- } list[1]; /* variable sized array */
} xfs_attr_shortform_t;
typedef struct xfs_attr_leaf_map { /* RLE map of free bytes */
@@ -619,19 +613,16 @@ typedef struct xfs_attr_leaf_entry { /*
typedef struct xfs_attr_leaf_name_local {
__be16 valuelen; /* number of bytes in value */
__u8 namelen; /* length of name bytes */
- __u8 nameval[1]; /* name/value bytes */
} xfs_attr_leaf_name_local_t;
typedef struct xfs_attr_leaf_name_remote {
__be32 valueblk; /* block number of value bytes */
__be32 valuelen; /* number of bytes in value */
__u8 namelen; /* length of name bytes */
- __u8 name[1]; /* name bytes */
} xfs_attr_leaf_name_remote_t;
typedef struct xfs_attr_leafblock {
xfs_attr_leaf_hdr_t hdr; /* constant-structure header block */
- xfs_attr_leaf_entry_t entries[1]; /* sorted on key, not name */
/*
* The rest of the block contains the following structures after the
* leaf entries, growing from the bottom up. The variables are never
@@ -663,7 +654,6 @@ struct xfs_attr3_leaf_hdr {
struct xfs_attr3_leafblock {
struct xfs_attr3_leaf_hdr hdr;
- struct xfs_attr_leaf_entry entries[1];
/*
* The rest of the block contains the following structures after the
diff -u -p ./tools/usb/usbip/libsrc/names.c /tmp/nothing/tools/usb/usbip/libsrc/names.c
--- ./tools/usb/usbip/libsrc/names.c
+++ /tmp/nothing/tools/usb/usbip/libsrc/names.c
@@ -25,37 +25,31 @@
struct vendor {
struct vendor *next;
u_int16_t vendorid;
- char name[1];
};
struct product {
struct product *next;
u_int16_t vendorid, productid;
- char name[1];
};
struct class {
struct class *next;
u_int8_t classid;
- char name[1];
};
struct subclass {
struct subclass *next;
u_int8_t classid, subclassid;
- char name[1];
};
struct protocol {
struct protocol *next;
u_int8_t classid, subclassid, protocolid;
- char name[1];
};
struct genericstrtable {
struct genericstrtable *next;
unsigned int num;
- char name[1];
};
diff -u -p ./drivers/gpu/drm/amd/amdgpu/sislands_smc.h /tmp/nothing/drivers/gpu/drm/amd/amdgpu/sislands_smc.h
--- ./drivers/gpu/drm/amd/amdgpu/sislands_smc.h
+++ /tmp/nothing/drivers/gpu/drm/amd/amdgpu/sislands_smc.h
@@ -186,7 +186,6 @@ struct SISLANDS_SMC_SWSTATE
uint8_t levelCount;
uint8_t padding2;
uint8_t padding3;
- SISLANDS_SMC_HW_PERFORMANCE_LEVEL levels[1];
};
typedef struct SISLANDS_SMC_SWSTATE SISLANDS_SMC_SWSTATE;
diff -u -p ./drivers/gpu/drm/amd/powerplay/inc/smu_ucode_xfer_cz.h /tmp/nothing/drivers/gpu/drm/amd/powerplay/inc/smu_ucode_xfer_cz.h
--- ./drivers/gpu/drm/amd/powerplay/inc/smu_ucode_xfer_cz.h
+++ /tmp/nothing/drivers/gpu/drm/amd/powerplay/inc/smu_ucode_xfer_cz.h
@@ -121,7 +121,6 @@ typedef struct SMU_Task SMU_Task;
struct TOC {
uint8_t JobList[NUM_JOBLIST_ENTRIES];
- SMU_Task tasks[1];
};
// META DATA COMMAND Definitions
diff -u -p ./drivers/staging/media/ipu3/ipu3-css-fw.h /tmp/nothing/drivers/staging/media/ipu3/ipu3-css-fw.h
--- ./drivers/staging/media/ipu3/ipu3-css-fw.h
+++ /tmp/nothing/drivers/staging/media/ipu3/ipu3-css-fw.h
@@ -170,7 +170,6 @@ struct imgu_fw_bi_file_h {
struct imgu_fw_header {
struct imgu_fw_bi_file_h file_header;
- struct imgu_fw_info binary_header[1]; /* binary_nr items */
};
/******************* Firmware functions *******************/
diff -u -p ./fs/reiserfs/reiserfs.h /tmp/nothing/fs/reiserfs/reiserfs.h
--- ./fs/reiserfs/reiserfs.h
+++ /tmp/nothing/fs/reiserfs/reiserfs.h
@@ -2376,7 +2376,6 @@ struct virtual_node {
struct direntry_uarea {
int flags;
__u16 entry_count;
- __u16 entry_sizes[1];
} __attribute__ ((__packed__));
/***************************************************************************
@@ -2714,7 +2713,6 @@ struct reiserfs_journal_desc {
__le32 j_len;
__le32 j_mount_id; /* mount id of this trans */
- __le32 j_realblock[1]; /* real locations for each block */
};
#define get_desc_trans_id(d) le32_to_cpu((d)->j_trans_id)
@@ -2729,7 +2727,6 @@ struct reiserfs_journal_desc {
struct reiserfs_journal_commit {
__le32 j_trans_id; /* must match j_trans_id from the desc block */
__le32 j_len; /* ditto */
- __le32 j_realblock[1]; /* real locations for each block */
};
#define get_commit_trans_id(c) le32_to_cpu((c)->j_trans_id)
diff -u -p ./fs/udf/ecma_167.h /tmp/nothing/fs/udf/ecma_167.h
--- ./fs/udf/ecma_167.h
+++ /tmp/nothing/fs/udf/ecma_167.h
@@ -307,14 +307,12 @@ struct logicalVolDesc {
struct regid impIdent;
uint8_t impUse[128];
struct extent_ad integritySeqExt;
- uint8_t partitionMaps[0];
} __packed;
/* Generic Partition Map (ECMA 167r3 3/10.7.1) */
struct genericPartitionMap {
uint8_t partitionMapType;
uint8_t partitionMapLength;
- uint8_t partitionMapping[0];
} __packed;
/* Partition Map Type (ECMA 167r3 3/10.7.1.1) */
@@ -342,7 +340,6 @@ struct unallocSpaceDesc {
struct tag descTag;
__le32 volDescSeqNum;
__le32 numAllocDescs;
- struct extent_ad allocDescs[0];
} __packed;
/* Terminating Descriptor (ECMA 167r3 3/10.9) */
@@ -362,7 +359,6 @@ struct logicalVolIntegrityDesc {
__le32 lengthOfImpUse;
__le32 freeSpaceTable[0];
__le32 sizeTable[0];
- uint8_t impUse[0];
} __packed;
/* Integrity Type (ECMA 167r3 3/10.10.3) */
@@ -473,7 +469,6 @@ struct fileIdentDesc {
__le16 lengthOfImpUse;
uint8_t impUse[0];
uint8_t fileIdent[0];
- uint8_t padding[0];
} __packed;
/* File Characteristics (ECMA 167r3 4/14.4.3) */
@@ -579,7 +574,6 @@ struct fileEntry {
__le32 lengthExtendedAttr;
__le32 lengthAllocDescs;
uint8_t extendedAttr[0];
- uint8_t allocDescs[0];
} __packed;
/* Permissions (ECMA 167r3 4/14.9.5) */
@@ -632,7 +626,6 @@ struct genericFormat {
uint8_t attrSubtype;
uint8_t reserved[3];
__le32 attrLength;
- uint8_t attrData[0];
} __packed;
/* Character Set Information (ECMA 167r3 4/14.10.3) */
@@ -643,7 +636,6 @@ struct charSetInfo {
__le32 attrLength;
__le32 escapeSeqLength;
uint8_t charSetType;
- uint8_t escapeSeq[0];
} __packed;
/* Alternate Permissions (ECMA 167r3 4/14.10.4) */
@@ -682,7 +674,6 @@ struct infoTimesExtAttr {
__le32 attrLength;
__le32 dataLength;
__le32 infoTimeExistence;
- uint8_t infoTimes[0];
} __packed;
/* Device Specification (ECMA 167r3 4/14.10.7) */
@@ -694,7 +685,6 @@ struct deviceSpec {
__le32 impUseLength;
__le32 majorDeviceIdent;
__le32 minorDeviceIdent;
- uint8_t impUse[0];
} __packed;
/* Implementation Use Extended Attr (ECMA 167r3 4/14.10.8) */
@@ -705,7 +695,6 @@ struct impUseExtAttr {
__le32 attrLength;
__le32 impUseLength;
struct regid impIdent;
- uint8_t impUse[0];
} __packed;
/* Application Use Extended Attribute (ECMA 167r3 4/14.10.9) */
@@ -716,7 +705,6 @@ struct appUseExtAttr {
__le32 attrLength;
__le32 appUseLength;
struct regid appIdent;
- uint8_t appUse[0];
} __packed;
#define EXTATTR_CHAR_SET 1
@@ -733,7 +721,6 @@ struct unallocSpaceEntry {
struct tag descTag;
struct icbtag icbTag;
__le32 lengthAllocDescs;
- uint8_t allocDescs[0];
} __packed;
/* Space Bitmap Descriptor (ECMA 167r3 4/14.12) */
@@ -741,7 +728,6 @@ struct spaceBitmapDesc {
struct tag descTag;
__le32 numOfBits;
__le32 numOfBytes;
- uint8_t bitmap[0];
} __packed;
/* Partition Integrity Entry (ECMA 167r3 4/14.13) */
@@ -780,7 +766,6 @@ struct pathComponent {
uint8_t componentType;
uint8_t lengthComponentIdent;
__le16 componentFileVersionNum;
- dchars componentIdent[0];
} __packed;
/* File Entry (ECMA 167r3 4/14.17) */
@@ -810,7 +795,6 @@ struct extendedFileEntry {
__le32 lengthExtendedAttr;
__le32 lengthAllocDescs;
uint8_t extendedAttr[0];
- uint8_t allocDescs[0];
} __packed;
#endif /* _ECMA_167_H */
diff -u -p ./drivers/gpu/drm/amd/include/discovery.h /tmp/nothing/drivers/gpu/drm/amd/include/discovery.h
--- ./drivers/gpu/drm/amd/include/discovery.h
+++ /tmp/nothing/drivers/gpu/drm/amd/include/discovery.h
@@ -75,7 +75,6 @@ typedef struct ip_discovery_header
uint32_t id; /* Table ID */
uint16_t num_dies; /* Number of Dies */
die_info die_info[16]; /* list die information for up to 16 dies */
- uint16_t padding[1]; /* padding */
} ip_discovery_header;
typedef struct ip
@@ -93,7 +92,6 @@ typedef struct ip
uint8_t harvest : 4; /* Harvest */
uint8_t reserved : 4; /* Placeholder field */
#endif
- uint32_t base_address[1]; /* variable number of Addresses */
} ip;
typedef struct die_header
diff -u -p ./drivers/gpu/drm/amd/powerplay/hwmgr/vega10_pptable.h /tmp/nothing/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_pptable.h
--- ./drivers/gpu/drm/amd/powerplay/hwmgr/vega10_pptable.h
+++ /tmp/nothing/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_pptable.h
@@ -129,7 +129,6 @@ typedef struct _ATOM_Vega10_State {
typedef struct _ATOM_Vega10_State_Array {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_State states[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_State_Array;
typedef struct _ATOM_Vega10_CLK_Dependency_Record {
@@ -163,43 +162,36 @@ typedef struct _ATOM_Vega10_MCLK_Depende
typedef struct _ATOM_Vega10_GFXCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_GFXCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_GFXCLK_Dependency_Table;
typedef struct _ATOM_Vega10_MCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_MCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_MCLK_Dependency_Table;
typedef struct _ATOM_Vega10_SOCCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_SOCCLK_Dependency_Table;
typedef struct _ATOM_Vega10_DCEFCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_DCEFCLK_Dependency_Table;
typedef struct _ATOM_Vega10_PIXCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_PIXCLK_Dependency_Table;
typedef struct _ATOM_Vega10_DISPCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries.*/
- ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_DISPCLK_Dependency_Table;
typedef struct _ATOM_Vega10_PHYCLK_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries. */
- ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_PHYCLK_Dependency_Table;
typedef struct _ATOM_Vega10_MM_Dependency_Record {
@@ -213,7 +205,6 @@ typedef struct _ATOM_Vega10_MM_Dependenc
typedef struct _ATOM_Vega10_MM_Dependency_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries */
- ATOM_Vega10_MM_Dependency_Record entries[1]; /* Dynamically allocate entries */
} ATOM_Vega10_MM_Dependency_Table;
typedef struct _ATOM_Vega10_PCIE_Record {
@@ -225,7 +216,6 @@ typedef struct _ATOM_Vega10_PCIE_Record
typedef struct _ATOM_Vega10_PCIE_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries */
- ATOM_Vega10_PCIE_Record entries[1]; /* Dynamically allocate entries. */
} ATOM_Vega10_PCIE_Table;
typedef struct _ATOM_Vega10_Voltage_Lookup_Record {
@@ -235,7 +225,6 @@ typedef struct _ATOM_Vega10_Voltage_Look
typedef struct _ATOM_Vega10_Voltage_Lookup_Table {
UCHAR ucRevId;
UCHAR ucNumEntries; /* Number of entries */
- ATOM_Vega10_Voltage_Lookup_Record entries[1]; /* Dynamically allocate entries */
} ATOM_Vega10_Voltage_Lookup_Table;
typedef struct _ATOM_Vega10_Fan_Table {
@@ -329,7 +318,6 @@ typedef struct _ATOM_Vega10_VCE_State_Ta
{
UCHAR ucRevId;
UCHAR ucNumEntries;
- ATOM_Vega10_VCE_State_Record entries[1];
} ATOM_Vega10_VCE_State_Table;
typedef struct _ATOM_Vega10_PowerTune_Table {
@@ -432,7 +420,6 @@ typedef struct _ATOM_Vega10_Hard_Limit_T
{
UCHAR ucRevId;
UCHAR ucNumEntries;
- ATOM_Vega10_Hard_Limit_Record entries[1];
} ATOM_Vega10_Hard_Limit_Table;
typedef struct _Vega10_PPTable_Generic_SubTable_Header
diff -u -p ./drivers/gpu/drm/nouveau/include/nvif/if000c.h /tmp/nothing/drivers/gpu/drm/nouveau/include/nvif/if000c.h
--- ./drivers/gpu/drm/nouveau/include/nvif/if000c.h
+++ /tmp/nothing/drivers/gpu/drm/nouveau/include/nvif/if000c.h
@@ -27,7 +27,6 @@ struct nvif_vmm_page_v0 {
__u8 vram;
__u8 host;
__u8 comp;
- __u8 pad07[1];
};
struct nvif_vmm_get_v0 {
diff -u -p ./drivers/net/ethernet/freescale/enetc/enetc_qos.c /tmp/nothing/drivers/net/ethernet/freescale/enetc/enetc_qos.c
--- ./drivers/net/ethernet/freescale/enetc/enetc_qos.c
+++ /tmp/nothing/drivers/net/ethernet/freescale/enetc/enetc_qos.c
@@ -405,7 +405,6 @@ struct enetc_psfp_gate {
u32 num_entries;
refcount_t refcount;
struct hlist_node node;
- struct action_gate_entry entries[0];
};
/* Only enable the green color frame now
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/error-dump.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/error-dump.h
--- ./drivers/net/wireless/intel/iwlwifi/fw/error-dump.h
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/error-dump.h
@@ -141,7 +141,6 @@ struct iwl_fw_error_dump_data {
struct iwl_fw_error_dump_file {
__le32 barker;
__le32 file_len;
- u8 data[0];
} __packed;
/**
diff -u -p ./drivers/net/wireless/marvell/mwifiex/fw.h /tmp/nothing/drivers/net/wireless/marvell/mwifiex/fw.h
--- ./drivers/net/wireless/marvell/mwifiex/fw.h
+++ /tmp/nothing/drivers/net/wireless/marvell/mwifiex/fw.h
@@ -53,7 +53,6 @@ struct mwifiex_fw_header {
struct mwifiex_fw_data {
struct mwifiex_fw_header header;
__le32 seq_num;
- u8 data[1];
} __packed;
struct mwifiex_fw_dump_header {
@@ -653,7 +652,6 @@ struct mwifiex_ie_types_header {
struct mwifiex_ie_types_data {
struct mwifiex_ie_types_header header;
- u8 data[1];
} __packed;
#define MWIFIEX_TxPD_POWER_MGMT_NULL_PACKET 0x01
@@ -781,7 +779,6 @@ struct mwifiex_chan_scan_param_set {
struct mwifiex_ie_types_chan_list_param_set {
struct mwifiex_ie_types_header header;
- struct mwifiex_chan_scan_param_set chan_scan_param[1];
} __packed;
struct mwifiex_ie_types_rxba_sync {
@@ -791,7 +788,6 @@ struct mwifiex_ie_types_rxba_sync {
u8 reserved;
__le16 seq_num;
__le16 bitmap_len;
- u8 bitmap[1];
} __packed;
struct chan_band_param_set {
@@ -801,17 +797,14 @@ struct chan_band_param_set {
struct mwifiex_ie_types_chan_band_list_param_set {
struct mwifiex_ie_types_header header;
- struct chan_band_param_set chan_band_param[1];
} __packed;
struct mwifiex_ie_types_rates_param_set {
struct mwifiex_ie_types_header header;
- u8 rates[1];
} __packed;
struct mwifiex_ie_types_ssid_param_set {
struct mwifiex_ie_types_header header;
- u8 ssid[1];
} __packed;
struct mwifiex_ie_types_num_probes {
@@ -853,13 +846,11 @@ struct mwifiex_ietypes_chanstats {
struct mwifiex_ie_types_wildcard_ssid_params {
struct mwifiex_ie_types_header header;
u8 max_ssid_length;
- u8 ssid[1];
} __packed;
#define TSF_DATA_SIZE 8
struct mwifiex_ie_types_tsf_timestamp {
struct mwifiex_ie_types_header header;
- u8 tsf_data[1];
} __packed;
struct mwifiex_cf_param_set {
@@ -919,7 +910,6 @@ struct mwifiex_ie_types_tdls_idle_timeou
struct mwifiex_ie_types_rsn_param_set {
struct mwifiex_ie_types_header header;
- u8 rsn_ie[1];
} __packed;
#define KEYPARAMSET_FIXED_LEN 6
@@ -1343,7 +1333,6 @@ struct host_cmd_ds_802_11_snmp_mib {
__le16 query_type;
__le16 oid;
__le16 buf_size;
- u8 value[1];
} __packed;
struct mwifiex_rate_scope {
@@ -1440,7 +1429,6 @@ struct mwifiex_tdls_stop_cs_params {
struct host_cmd_ds_tdls_config {
__le16 tdls_action;
- u8 tdls_data[1];
} __packed;
struct mwifiex_chan_desc {
@@ -1511,7 +1499,6 @@ struct mwifiex_scan_cmd_config {
* TLV_TYPE_CHANLIST, mwifiex_ie_types_chan_list_param_set
* WLAN_EID_SSID, mwifiex_ie_types_ssid_param_set
*/
- u8 tlv_buf[1]; /* SSID TLV(s) and ChanList TLVs are stored
here */
} __packed;
@@ -1581,18 +1568,15 @@ struct ie_body {
struct host_cmd_ds_802_11_scan {
u8 bss_mode;
u8 bssid[ETH_ALEN];
- u8 tlv_buffer[1];
} __packed;
struct host_cmd_ds_802_11_scan_rsp {
__le16 bss_descript_size;
u8 number_of_sets;
- u8 bss_desc_and_tlv_buffer[1];
} __packed;
struct host_cmd_ds_802_11_scan_ext {
u32 reserved;
- u8 tlv_buffer[1];
} __packed;
struct mwifiex_ie_types_bss_mode {
@@ -1603,7 +1587,6 @@ struct mwifiex_ie_types_bss_mode {
struct mwifiex_ie_types_bss_scan_rsp {
struct mwifiex_ie_types_header header;
u8 bssid[ETH_ALEN];
- u8 frame_body[1];
} __packed;
struct mwifiex_ie_types_bss_scan_info {
@@ -1643,7 +1626,6 @@ struct host_cmd_ds_802_11_bg_scan_query_
struct mwifiex_ietypes_domain_param_set {
struct mwifiex_ie_types_header header;
u8 country_code[IEEE80211_COUNTRY_STRING_LEN];
- struct ieee80211_country_ie_triplet triplet[1];
} __packed;
struct host_cmd_ds_802_11d_domain_info {
@@ -1740,7 +1722,6 @@ struct mwifiex_ie_types_local_pwr_constr
struct mwifiex_ie_types_wmm_param_set {
struct mwifiex_ie_types_header header;
- u8 wmm_ie[1];
} __packed;
struct mwifiex_ie_types_mgmt_frame {
@@ -1966,7 +1947,6 @@ struct host_cmd_tlv_wep_key {
struct mwifiex_ie_types_header header;
u8 key_index;
u8 is_default;
- u8 key[1];
};
struct host_cmd_tlv_auth_type {
diff -u -p ./drivers/net/wireless/ti/wl18xx/conf.h /tmp/nothing/drivers/net/wireless/ti/wl18xx/conf.h
--- ./drivers/net/wireless/ti/wl18xx/conf.h
+++ /tmp/nothing/drivers/net/wireless/ti/wl18xx/conf.h
@@ -77,7 +77,6 @@ struct wl18xx_mac_and_phy_params {
s8 med_power_val_2nd;
s8 high_power_val_2nd;
- u8 padding[1];
} __packed;
enum wl18xx_ht_mode {
diff -u -p ./scripts/dtc/libfdt/fdt.h /tmp/nothing/scripts/dtc/libfdt/fdt.h
--- ./scripts/dtc/libfdt/fdt.h
+++ /tmp/nothing/scripts/dtc/libfdt/fdt.h
@@ -35,14 +35,12 @@ struct fdt_reserve_entry {
struct fdt_node_header {
fdt32_t tag;
- char name[0];
};
struct fdt_property {
fdt32_t tag;
fdt32_t len;
fdt32_t nameoff;
- char data[0];
};
#endif /* !__ASSEMBLY */
diff -u -p ./fs/binfmt_elf.c /tmp/nothing/fs/binfmt_elf.c
--- ./fs/binfmt_elf.c
+++ /tmp/nothing/fs/binfmt_elf.c
@@ -1782,7 +1782,6 @@ struct elf_thread_core_info {
struct elf_thread_core_info *next;
struct task_struct *task;
struct elf_prstatus prstatus;
- struct memelfnote notes[0];
};
struct elf_note_info {
diff -u -p ./drivers/gpu/drm/nouveau/nouveau_svm.c /tmp/nothing/drivers/gpu/drm/nouveau/nouveau_svm.c
--- ./drivers/gpu/drm/nouveau/nouveau_svm.c
+++ /tmp/nothing/drivers/gpu/drm/nouveau/nouveau_svm.c
@@ -41,30 +41,7 @@ struct nouveau_svm {
struct mutex mutex;
struct list_head inst;
- struct nouveau_svm_fault_buffer {
- int id;
- struct nvif_object object;
- u32 entries;
- u32 getaddr;
- u32 putaddr;
- u32 get;
- u32 put;
- struct nvif_notify notify;
- struct nouveau_svm_fault {
- u64 inst;
- u64 addr;
- u64 time;
- u32 engine;
- u8 gpc;
- u8 hub;
- u8 access;
- u8 client;
- u8 fault;
- struct nouveau_svmm *svmm;
- } **fault;
- int fault_nr;
- } buffer[1];
};
#define SVM_DBG(s,f,a...) NV_DEBUG((s)->drm, "svm: "f"\n", ##a)
diff -u -p ./drivers/net/ethernet/emulex/benet/be_cmds.h /tmp/nothing/drivers/net/ethernet/emulex/benet/be_cmds.h
--- ./drivers/net/ethernet/emulex/benet/be_cmds.h
+++ /tmp/nothing/drivers/net/ethernet/emulex/benet/be_cmds.h
@@ -509,7 +509,6 @@ struct be_cmd_req_get_fat {
u32 read_log_offset;
u32 read_log_length;
u32 data_buffer_size;
- u32 data_buffer[1];
} __packed;
struct be_cmd_resp_get_fat {
@@ -517,7 +516,6 @@ struct be_cmd_resp_get_fat {
u32 log_size;
u32 read_log_length;
u32 rsvd[2];
- u32 data_buffer[1];
} __packed;
diff -u -p ./drivers/net/ethernet/sfc/falcon/bitfield.h /tmp/nothing/drivers/net/ethernet/sfc/falcon/bitfield.h
--- ./drivers/net/ethernet/sfc/falcon/bitfield.h
+++ /tmp/nothing/drivers/net/ethernet/sfc/falcon/bitfield.h
@@ -72,7 +72,6 @@
/* A doubleword (i.e. 4 byte) datatype - little-endian in HW */
typedef union ef4_dword {
- __le32 u32[1];
} ef4_dword_t;
/* A quadword (i.e. 8 byte) datatype - little-endian in HW */
diff -u -p ./drivers/net/ethernet/freescale/ucc_geth.h /tmp/nothing/drivers/net/ethernet/freescale/ucc_geth.h
--- ./drivers/net/ethernet/freescale/ucc_geth.h
+++ /tmp/nothing/drivers/net/ethernet/freescale/ucc_geth.h
@@ -634,7 +634,6 @@ struct ucc_geth_init_pram {
u8 res2[0x38 - 0x30];
u32 txglobal; /* tx global */
u32 txthread[ENET_INIT_PARAM_MAX_ENTRIES_TX]; /* tx threads */
- u8 res3[0x1];
} __packed;
#define ENET_INIT_PARAM_RGF_SHIFT (32 - 4)
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/file.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/file.h
--- ./drivers/net/wireless/intel/iwlwifi/fw/file.h
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/file.h
@@ -161,7 +161,6 @@ enum iwl_ucode_tlv_type {
struct iwl_ucode_tlv {
__le32 type; /* see above */
__le32 length; /* not including type/length fields */
- u8 data[0];
};
#define IWL_TLV_UCODE_MAGIC 0x0a4c5749
@@ -187,7 +186,6 @@ struct iwl_tlv_ucode_header {
* Note that each TLV is padded to a length
* that is a multiple of 4 for alignment.
*/
- u8 data[0];
};
/*
@@ -652,7 +650,6 @@ struct iwl_fw_dbg_dest_tlv_v1 {
__le32 wrap_count;
u8 base_shift;
u8 end_shift;
- struct iwl_fw_dbg_reg_op reg_ops[0];
} __packed;
/* Mask of the register for defining the LDBG MAC2SMEM buffer SMEM size */
@@ -672,14 +669,12 @@ struct iwl_fw_dbg_dest_tlv {
__le32 wrap_count;
u8 base_shift;
u8 size_shift;
- struct iwl_fw_dbg_reg_op reg_ops[0];
} __packed;
struct iwl_fw_dbg_conf_hcmd {
u8 id;
u8 reserved;
__le16 len;
- u8 data[0];
} __packed;
/**
@@ -754,7 +749,6 @@ struct iwl_fw_dbg_trigger_tlv {
u8 flags;
u8 reserved[5];
- u8 data[0];
} __packed;
#define FW_DBG_START_FROM_ALIVE 0
diff -u -p ./drivers/message/fusion/lsi/mpi_targ.h /tmp/nothing/drivers/message/fusion/lsi/mpi_targ.h
--- ./drivers/message/fusion/lsi/mpi_targ.h
+++ /tmp/nothing/drivers/message/fusion/lsi/mpi_targ.h
@@ -97,7 +97,6 @@ typedef struct _MSG_TARGET_CMD_BUFFER_PO
U8 Reserved1; /* 06h */
U8 MsgFlags; /* 07h */
U32 MsgContext; /* 08h */
- CMD_BUFFER_DESCRIPTOR Buffer[1]; /* 0Ch */
} MSG_TARGET_CMD_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_REQUEST,
TargetCmdBufferPostRequest_t, MPI_POINTER pTargetCmdBufferPostRequest_t;
@@ -343,7 +342,6 @@ typedef struct _MSG_TARGET_ASSIST_REQUES
U8 LUN[8]; /* 10h */
U32 RelativeOffset; /* 18h */
U32 DataLength; /* 1Ch */
- SGE_IO_UNION SGL[1]; /* 20h */
} MSG_TARGET_ASSIST_REQUEST, MPI_POINTER PTR_MSG_TARGET_ASSIST_REQUEST,
TargetAssistRequest_t, MPI_POINTER pTargetAssistRequest_t;
@@ -409,7 +407,6 @@ typedef struct _MSG_TARGET_ASSIST_EXT_RE
U8 SGLOffset2; /* 4Ah */
U8 SGLOffset3; /* 4Bh */
U32 Reserved6; /* 4Ch */
- SGE_IO_UNION SGL[1]; /* 50h */
} MSG_TARGET_ASSIST_EXT_REQUEST, MPI_POINTER PTR_MSG_TARGET_ASSIST_EXT_REQUEST,
TargetAssistExtRequest_t, MPI_POINTER pTargetAssistExtRequest_t;
diff -u -p ./drivers/tty/serial/max310x.c /tmp/nothing/drivers/tty/serial/max310x.c
--- ./drivers/tty/serial/max310x.c
+++ /tmp/nothing/drivers/tty/serial/max310x.c
@@ -273,7 +273,6 @@ struct max310x_port {
#ifdef CONFIG_GPIOLIB
struct gpio_chip gpio;
#endif
- struct max310x_one p[0];
};
static struct uart_driver max310x_uart = {
diff -u -p ./kernel/tracepoint.c /tmp/nothing/kernel/tracepoint.c
--- ./kernel/tracepoint.c
+++ /tmp/nothing/kernel/tracepoint.c
@@ -50,7 +50,6 @@ static bool ok_to_free_tracepoints;
*/
struct tp_probes {
struct rcu_head rcu;
- struct tracepoint_func probes[0];
};
static inline void *allocate_probes(int count)
diff -u -p ./include/linux/mlx5/mlx5_ifc_fpga.h /tmp/nothing/include/linux/mlx5/mlx5_ifc_fpga.h
--- ./include/linux/mlx5/mlx5_ifc_fpga.h
+++ /tmp/nothing/include/linux/mlx5/mlx5_ifc_fpga.h
@@ -185,7 +185,6 @@ struct mlx5_ifc_fpga_access_reg_bits {
u8 address[0x40];
- u8 data[0][0x8];
};
enum mlx5_ifc_fpga_qp_state {
diff -u -p ./drivers/media/platform/qcom/venus/hfi_helper.h /tmp/nothing/drivers/media/platform/qcom/venus/hfi_helper.h
--- ./drivers/media/platform/qcom/venus/hfi_helper.h
+++ /tmp/nothing/drivers/media/platform/qcom/venus/hfi_helper.h
@@ -677,7 +677,6 @@ struct hfi_multi_stream_3x {
struct hfi_multi_view_format {
u32 views;
- u32 view_order[1];
};
#define HFI_MULTI_SLICE_OFF 0x1
@@ -865,13 +864,11 @@ struct hfi_uncompressed_plane_constraint
struct hfi_uncompressed_plane_info {
u32 format;
u32 num_planes;
- struct hfi_uncompressed_plane_constraints plane_constraints[1];
};
struct hfi_uncompressed_format_supported {
u32 buffer_type;
u32 format_entries;
- struct hfi_uncompressed_plane_info plane_info[1];
};
struct hfi_uncompressed_plane_actual {
@@ -882,13 +879,11 @@ struct hfi_uncompressed_plane_actual {
struct hfi_uncompressed_plane_actual_info {
u32 buffer_type;
u32 num_planes;
- struct hfi_uncompressed_plane_actual plane_format[1];
};
struct hfi_uncompressed_plane_actual_constraints_info {
u32 buffer_type;
u32 num_planes;
- struct hfi_uncompressed_plane_constraints plane_format[1];
};
struct hfi_codec_supported {
@@ -898,7 +893,6 @@ struct hfi_codec_supported {
struct hfi_properties_supported {
u32 num_properties;
- u32 properties[1];
};
struct hfi_max_sessions_supported {
@@ -945,12 +939,10 @@ struct hfi_resource_ocmem_requirement {
struct hfi_resource_ocmem_requirement_info {
u32 num_entries;
- struct hfi_resource_ocmem_requirement requirements[1];
};
struct hfi_property_sys_image_version_info_type {
u32 string_size;
- u8 str_image_version[1];
};
struct hfi_codec_mask_supported {
@@ -1001,7 +993,6 @@ struct hfi_extradata_header {
u32 port_index;
u32 type;
u32 data_size;
- u8 data[1];
};
struct hfi_batch_info {
@@ -1051,7 +1042,6 @@ struct hfi_buffer_requirements {
struct hfi_data_payload {
u32 size;
- u8 data[1];
};
struct hfi_enable_picture {
@@ -1079,12 +1069,10 @@ struct hfi_interlace_format_supported {
struct hfi_buffer_alloc_mode_supported {
u32 buffer_type;
u32 num_entries;
- u32 data[1];
};
struct hfi_mb_error_map {
u32 error_map_size;
- u8 error_map[1];
};
struct hfi_metadata_pass_through {
diff -u -p ./drivers/video/fbdev/sis/sis.h /tmp/nothing/drivers/video/fbdev/sis/sis.h
--- ./drivers/video/fbdev/sis/sis.h
+++ /tmp/nothing/drivers/video/fbdev/sis/sis.h
@@ -465,7 +465,6 @@ struct SIS_OH {
struct SIS_OHALLOC {
struct SIS_OHALLOC *poha_next;
- struct SIS_OH aoh[1];
};
struct SIS_HEAP {
diff -u -p ./drivers/net/ethernet/intel/ice/ice.h /tmp/nothing/drivers/net/ethernet/intel/ice/ice.h
--- ./drivers/net/ethernet/intel/ice/ice.h
+++ /tmp/nothing/drivers/net/ethernet/intel/ice/ice.h
@@ -164,7 +164,6 @@ struct ice_tc_cfg {
struct ice_res_tracker {
u16 num_entries;
u16 end;
- u16 list[1];
};
struct ice_qs_cfg {
diff -u -p ./drivers/net/wireless/ath/carl9170/fwcmd.h /tmp/nothing/drivers/net/wireless/ath/carl9170/fwcmd.h
--- ./drivers/net/wireless/ath/carl9170/fwcmd.h
+++ /tmp/nothing/drivers/net/wireless/ath/carl9170/fwcmd.h
@@ -110,18 +110,12 @@ struct carl9170_disable_key_cmd {
#define CARL9170_DISABLE_KEY_CMD_SIZE 4
struct carl9170_u32_list {
- u32 vals[0];
} __packed;
struct carl9170_reg_list {
- __le32 regs[0];
} __packed;
struct carl9170_write_reg {
- struct {
- __le32 addr;
- __le32 val;
- } regs[0] __packed;
} __packed;
struct carl9170_write_reg_byte {
diff -u -p ./drivers/scsi/dpt/dpti_i2o.h /tmp/nothing/drivers/scsi/dpt/dpti_i2o.h
--- ./drivers/scsi/dpt/dpti_i2o.h
+++ /tmp/nothing/drivers/scsi/dpt/dpti_i2o.h
@@ -123,7 +123,6 @@ struct i2o_sys_tbl
u32 change_ind;
u32 reserved2;
u32 reserved3;
- struct i2o_sys_tbl_entry iops[0];
};
/*
diff -u -p ./drivers/scsi/mpt3sas/mpi/mpi2_image.h /tmp/nothing/drivers/scsi/mpt3sas/mpi/mpi2_image.h
--- ./drivers/scsi/mpt3sas/mpi/mpi2_image.h
+++ /tmp/nothing/drivers/scsi/mpt3sas/mpi/mpi2_image.h
@@ -464,7 +464,6 @@ typedef struct _MPI25_ENCRYPTED_HASH_ENT
U8 EncryptionAlgorithm; /*0x02 */
U8 Reserved1; /*0x03 */
U32 Reserved2; /*0x04 */
- U32 EncryptedHash[1]; /*0x08 */ /* variable length */
} MPI25_ENCRYPTED_HASH_ENTRY, *PTR_MPI25_ENCRYPTED_HASH_ENTRY,
Mpi25EncryptedHashEntry_t, *pMpi25EncryptedHashEntry_t;
@@ -508,7 +507,6 @@ typedef struct _MPI25_ENCRYPTED_HASH_DAT
U8 NumHash; /*0x01 */
U16 Reserved1; /*0x02 */
U32 Reserved2; /*0x04 */
- MPI25_ENCRYPTED_HASH_ENTRY EncryptedHashEntry[1]; /*0x08 */
} MPI25_ENCRYPTED_HASH_DATA, *PTR_MPI25_ENCRYPTED_HASH_DATA,
Mpi25EncryptedHashData_t, *pMpi25EncryptedHashData_t;
diff -u -p ./drivers/message/fusion/lsi/mpi.h /tmp/nothing/drivers/message/fusion/lsi/mpi.h
--- ./drivers/message/fusion/lsi/mpi.h
+++ /tmp/nothing/drivers/message/fusion/lsi/mpi.h
@@ -425,7 +425,6 @@ typedef struct _SGE_TRANSACTION32
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[1];
- U32 TransactionDetails[1];
} SGE_TRANSACTION32, MPI_POINTER PTR_SGE_TRANSACTION32,
SGETransaction32_t, MPI_POINTER pSGETransaction32_t;
@@ -436,7 +435,6 @@ typedef struct _SGE_TRANSACTION64
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[2];
- U32 TransactionDetails[1];
} SGE_TRANSACTION64, MPI_POINTER PTR_SGE_TRANSACTION64,
SGETransaction64_t, MPI_POINTER pSGETransaction64_t;
@@ -447,7 +445,6 @@ typedef struct _SGE_TRANSACTION96
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[3];
- U32 TransactionDetails[1];
} SGE_TRANSACTION96, MPI_POINTER PTR_SGE_TRANSACTION96,
SGETransaction96_t, MPI_POINTER pSGETransaction96_t;
@@ -458,7 +455,6 @@ typedef struct _SGE_TRANSACTION128
U8 DetailsLength;
U8 Flags;
U32 TransactionContext[4];
- U32 TransactionDetails[1];
} SGE_TRANSACTION128, MPI_POINTER PTR_SGE_TRANSACTION128,
SGETransaction_t128, MPI_POINTER pSGETransaction_t128;
@@ -475,7 +471,6 @@ typedef struct _SGE_TRANSACTION_UNION
U32 TransactionContext96[3];
U32 TransactionContext128[4];
}u;
- U32 TransactionDetails[1];
} SGE_TRANSACTION_UNION, MPI_POINTER PTR_SGE_TRANSACTION_UNION,
SGETransactionUnion_t, MPI_POINTER pSGETransactionUnion_t;
diff -u -p ./include/linux/mtd/cfi.h /tmp/nothing/include/linux/mtd/cfi.h
--- ./include/linux/mtd/cfi.h
+++ /tmp/nothing/include/linux/mtd/cfi.h
@@ -190,7 +190,6 @@ struct cfi_intelext_regioninfo {
uint8_t NumOpAllowedSimProgMode;
uint8_t NumOpAllowedSimEraMode;
uint8_t NumBlockTypes;
- struct cfi_intelext_blockinfo BlockTypes[1];
} __packed;
struct cfi_intelext_programming_regioninfo {
@@ -242,13 +241,11 @@ struct cfi_pri_atmel {
struct cfi_pri_query {
uint8_t NumFields;
- uint32_t ProtField[1]; /* Not host ordered */
} __packed;
struct cfi_bri_query {
uint8_t PageModeReadCap;
uint8_t NumFields;
- uint32_t ConfField[1]; /* Not host ordered */
} __packed;
#define P_ID_NONE 0x0000
diff -u -p ./drivers/misc/habanalabs/include/gaudi/gaudi_packets.h /tmp/nothing/drivers/misc/habanalabs/include/gaudi/gaudi_packets.h