Created
August 9, 2020 20:50
-
-
Save evdenis/e2b4323491f9eff35376372df07f723c to your computer and use it in GitHub Desktop.
flexible_array.cocci context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
--- ./drivers/misc/habanalabs/include/gaudi/gaudi_packets.h | |
+++ /tmp/nothing/drivers/misc/habanalabs/include/gaudi/gaudi_packets.h | |
@@ -54,7 +54,6 @@ struct gaudi_packet { | |
/* The rest of the packet data follows. Use the corresponding | |
* packet_XXX struct to deference the data, based on packet type | |
*/ | |
- u8 contents[0]; | |
}; | |
struct packet_nop { | |
@@ -75,7 +74,6 @@ struct packet_wreg32 { | |
struct packet_wreg_bulk { | |
__le32 size64; | |
__le32 ctl; | |
- __le64 values[0]; /* data starts here */ | |
}; | |
struct packet_msg_long { | |
diff -u -p ./drivers/video/fbdev/amifb.c /tmp/nothing/drivers/video/fbdev/amifb.c | |
--- ./drivers/video/fbdev/amifb.c | |
+++ /tmp/nothing/drivers/video/fbdev/amifb.c | |
@@ -687,7 +687,6 @@ struct fb_var_cursorinfo { | |
__u16 height; | |
__u16 xspot; | |
__u16 yspot; | |
- __u8 data[1]; /* field with [height][width] */ | |
}; | |
struct fb_cursorstate { | |
diff -u -p ./drivers/net/ethernet/broadcom/bnx2x/bnx2x.h /tmp/nothing/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
--- ./drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
+++ /tmp/nothing/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
@@ -1271,7 +1271,6 @@ struct bnx2x_fw_stats_data { | |
struct per_port_stats port; | |
struct per_pf_stats pf; | |
struct fcoe_statistics_params fcoe; | |
- struct per_queue_stats queue_stats[1]; | |
}; | |
/* Public slow path states */ | |
diff -u -p ./drivers/net/wireless/ath/ath11k/spectral.c /tmp/nothing/drivers/net/wireless/ath/ath11k/spectral.c | |
--- ./drivers/net/wireless/ath/ath11k/spectral.c | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/spectral.c | |
@@ -111,7 +111,6 @@ struct spectral_search_fft_report { | |
__le32 info1; | |
__le32 info2; | |
__le32 reserve0; | |
- u8 bins[0]; | |
} __packed; | |
struct ath11k_spectral_search_report { | |
diff -u -p ./drivers/scsi/lpfc/lpfc_hw4.h /tmp/nothing/drivers/scsi/lpfc/lpfc_hw4.h | |
--- ./drivers/scsi/lpfc/lpfc_hw4.h | |
+++ /tmp/nothing/drivers/scsi/lpfc/lpfc_hw4.h | |
@@ -1103,7 +1103,6 @@ struct lpfc_mbx_post_sgl_pages { | |
#define lpfc_post_sgl_pages_xricnt_SHIFT 16 | |
#define lpfc_post_sgl_pages_xricnt_MASK 0x0000FFFF | |
#define lpfc_post_sgl_pages_xricnt_WORD word0 | |
- struct sgl_page_pairs sgl_pg_pairs[1]; | |
}; | |
/* word0 of page-1 struct shares the same SHIFT/MASK/WORD defines as above */ | |
diff -u -p ./include/linux/platform_data/brcmfmac.h /tmp/nothing/include/linux/platform_data/brcmfmac.h | |
--- ./include/linux/platform_data/brcmfmac.h | |
+++ /tmp/nothing/include/linux/platform_data/brcmfmac.h | |
@@ -125,7 +125,6 @@ struct brcmfmac_pd_cc_entry { | |
*/ | |
struct brcmfmac_pd_cc { | |
int table_size; | |
- struct brcmfmac_pd_cc_entry table[0]; | |
}; | |
/** | |
@@ -178,7 +177,6 @@ struct brcmfmac_platform_data { | |
void (*power_off)(void); | |
char *fw_alternative_path; | |
int device_count; | |
- struct brcmfmac_pd_device devices[0]; | |
}; | |
diff -u -p ./drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h /tmp/nothing/drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h | |
--- ./drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h | |
+++ /tmp/nothing/drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h | |
@@ -45,7 +45,6 @@ struct vchiq_header { | |
/* Size of message data. */ | |
unsigned int size; | |
- char data[0]; /* message */ | |
}; | |
struct vchiq_element { | |
diff -u -p ./arch/xtensa/include/asm/bootparam.h /tmp/nothing/arch/xtensa/include/asm/bootparam.h | |
--- ./arch/xtensa/include/asm/bootparam.h | |
+++ /tmp/nothing/arch/xtensa/include/asm/bootparam.h | |
@@ -34,7 +34,6 @@ | |
typedef struct bp_tag { | |
unsigned short id; /* tag id */ | |
unsigned short size; /* size of this record excluding the structure*/ | |
- unsigned long data[0]; /* data */ | |
} bp_tag_t; | |
struct bp_meminfo { | |
diff -u -p ./fs/afs/internal.h /tmp/nothing/fs/afs/internal.h | |
--- ./fs/afs/internal.h | |
+++ /tmp/nothing/fs/afs/internal.h | |
@@ -242,7 +242,6 @@ struct afs_sysnames { | |
char *subs[AFS_NR_SYSNAME]; | |
refcount_t usage; | |
unsigned short nr; | |
- char blank[1]; | |
}; | |
/* | |
diff -u -p ./fs/hpfs/hpfs.h /tmp/nothing/fs/hpfs/hpfs.h | |
--- ./fs/hpfs/hpfs.h | |
+++ /tmp/nothing/fs/hpfs/hpfs.h | |
@@ -168,7 +168,6 @@ struct hpfs_spare_block | |
__le32 spare_crc; /* on HPFS386 checksum of spareblock */ | |
__le32 zero1[15]; /* unused */ | |
__le32 spare_dnodes[100]; /* emergency free dnode list */ | |
- __le32 zero2[1]; /* room for more? */ | |
}; | |
/* The bad block list is 4 sectors long. The first word must be zero, | |
@@ -356,7 +355,6 @@ struct hpfs_dirent { | |
u8 no_of_acls; /* number of ACL's (low 3 bits) */ | |
u8 ix; /* code page index (of filename), see | |
struct code_page_data */ | |
- u8 namelen, name[1]; /* file name */ | |
/* dnode_secno down; btree down pointer, if present, | |
follows name on next word boundary, or maybe it | |
precedes next dirent, which is on a word boundary. */ | |
diff -u -p ./fs/dlm/dlm_internal.h /tmp/nothing/fs/dlm/dlm_internal.h | |
--- ./fs/dlm/dlm_internal.h | |
+++ /tmp/nothing/fs/dlm/dlm_internal.h | |
@@ -624,7 +624,6 @@ struct dlm_ls { | |
void *ls_ops_arg; | |
int ls_namelen; | |
- char ls_name[1]; | |
}; | |
/* | |
diff -u -p ./net/sched/cls_u32.c /tmp/nothing/net/sched/cls_u32.c | |
--- ./net/sched/cls_u32.c | |
+++ /tmp/nothing/net/sched/cls_u32.c | |
@@ -79,7 +79,6 @@ struct tc_u_hnode { | |
/* The 'ht' field MUST be the last field in structure to allow for | |
* more entries allocated at end of structure. | |
*/ | |
- struct tc_u_knode __rcu *ht[1]; | |
}; | |
struct tc_u_common { | |
diff -u -p ./include/linux/mmzone.h /tmp/nothing/include/linux/mmzone.h | |
--- ./include/linux/mmzone.h | |
+++ /tmp/nothing/include/linux/mmzone.h | |
@@ -120,7 +120,6 @@ struct pglist_data; | |
*/ | |
#if defined(CONFIG_SMP) | |
struct zone_padding { | |
- char x[0]; | |
} ____cacheline_internodealigned_in_smp; | |
#define ZONE_PADDING(name) struct zone_padding name; | |
#else | |
@@ -1152,7 +1151,6 @@ struct mem_section_usage { | |
DECLARE_BITMAP(subsection_map, SUBSECTIONS_PER_SECTION); | |
#endif | |
/* See declaration of similar field in struct zone */ | |
- unsigned long pageblock_flags[0]; | |
}; | |
void subsection_map_init(unsigned long pfn, unsigned long nr_pages); | |
diff -u -p ./drivers/gpu/drm/vmwgfx/vmwgfx_validation.c /tmp/nothing/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | |
--- ./drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | |
+++ /tmp/nothing/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | |
@@ -81,7 +81,6 @@ struct vmw_validation_res_node { | |
u32 reserved : 1; | |
u32 dirty : 1; | |
u32 dirty_set : 1; | |
- unsigned long private[0]; | |
}; | |
/** | |
diff -u -p ./drivers/staging/greybus/usb.c /tmp/nothing/drivers/staging/greybus/usb.c | |
--- ./drivers/staging/greybus/usb.c | |
+++ /tmp/nothing/drivers/staging/greybus/usb.c | |
@@ -27,7 +27,6 @@ struct gb_usb_hub_control_request { | |
}; | |
struct gb_usb_hub_control_response { | |
- u8 buf[0]; | |
}; | |
struct gb_usb_device { | |
diff -u -p ./drivers/net/ethernet/dlink/sundance.c /tmp/nothing/drivers/net/ethernet/dlink/sundance.c | |
--- ./drivers/net/ethernet/dlink/sundance.c | |
+++ /tmp/nothing/drivers/net/ethernet/dlink/sundance.c | |
@@ -340,7 +340,6 @@ enum wake_event_bits { | |
struct netdev_desc { | |
__le32 next_desc; | |
__le32 status; | |
- struct desc_frag { __le32 addr, length; } frag[1]; | |
}; | |
/* Bits in netdev_desc.status */ | |
diff -u -p ./drivers/net/wireless/ath/spectral_common.h /tmp/nothing/drivers/net/wireless/ath/spectral_common.h | |
--- ./drivers/net/wireless/ath/spectral_common.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/spectral_common.h | |
@@ -109,7 +109,6 @@ struct fft_sample_ath10k { | |
u8 avgpwr_db; | |
u8 max_exp; | |
- u8 data[0]; | |
} __packed; | |
struct fft_sample_ath11k { | |
@@ -124,7 +123,6 @@ struct fft_sample_ath11k { | |
__be32 tsf; | |
__be32 noise; | |
- u8 data[0]; | |
} __packed; | |
#endif /* SPECTRAL_COMMON_H */ | |
diff -u -p ./lib/stackdepot.c /tmp/nothing/lib/stackdepot.c | |
--- ./lib/stackdepot.c | |
+++ /tmp/nothing/lib/stackdepot.c | |
@@ -62,7 +62,6 @@ struct stack_record { | |
u32 hash; /* Hash in the hastable */ | |
u32 size; /* Number of frames in the stack */ | |
union handle_parts handle; | |
- unsigned long entries[1]; /* Variable-sized array of entries. */ | |
}; | |
static void *stack_slabs[STACK_ALLOC_MAX_SLABS]; | |
diff -u -p ./sound/pci/mixart/mixart_core.h /tmp/nothing/sound/pci/mixart/mixart_core.h | |
--- ./sound/pci/mixart/mixart_core.h | |
+++ /tmp/nothing/sound/pci/mixart/mixart_core.h | |
@@ -230,7 +230,6 @@ struct mixart_group_state_req | |
u64 scheduler; | |
u32 reserved4np[2]; | |
u32 pipe_count; /* set to 1 for instance */ | |
- struct mixart_uid pipe_uid[1]; /* could be an array[pipe_count] */ | |
} __attribute__((packed)); | |
struct mixart_group_state_resp | |
@@ -306,7 +305,6 @@ struct mixart_clock_properties | |
u32 format; | |
u32 board_mask; | |
u32 nb_callers; /* set to 1 (see below) */ | |
- struct mixart_uid uid_caller[1]; | |
} __attribute__((packed)); | |
struct mixart_clock_properties_resp | |
@@ -393,7 +391,6 @@ struct mixart_stream_param_desc | |
u32 reserved4np[3]; | |
u32 pipe_count; /* set to 1 (array size !) */ | |
u32 stream_count; /* set to 1 (array size !) */ | |
- struct mixart_txx_stream_desc stream_desc[1]; /* only one stream per command, but this could be an array */ | |
} __attribute__((packed)); | |
diff -u -p ./fs/udf/osta_udf.h /tmp/nothing/fs/udf/osta_udf.h | |
--- ./fs/udf/osta_udf.h | |
+++ /tmp/nothing/fs/udf/osta_udf.h | |
@@ -111,7 +111,6 @@ struct logicalVolIntegrityDescImpUse { | |
__le16 minUDFReadRev; | |
__le16 minUDFWriteRev; | |
__le16 maxUDFWriteRev; | |
- uint8_t impUse[0]; | |
} __packed; | |
/* Implementation Use Volume Descriptor (UDF 2.60 2.2.7) */ | |
@@ -200,7 +199,6 @@ struct virtualAllocationTable20 { | |
__le16 maxUDFWriteRev; | |
__le16 reserved; | |
uint8_t impUse[0]; | |
- __le32 vatEntry[0]; | |
} __packed; | |
#define ICBTAG_FILE_TYPE_VAT20 0xF8U | |
@@ -217,8 +215,6 @@ struct sparingTable { | |
__le16 reallocationTableLen; | |
__le16 reserved; | |
__le32 sequenceNum; | |
- struct sparingEntry | |
- mapEntry[0]; | |
} __packed; | |
/* Metadata File (and Metadata Mirror File) (UDF 2.60 2.2.13.1) */ | |
@@ -241,7 +237,6 @@ struct allocDescImpUse { | |
/* FreeEASpace (UDF 2.60 3.3.4.5.1.1) */ | |
struct freeEaSpace { | |
__le16 headerChecksum; | |
- uint8_t freeEASpace[0]; | |
} __packed; | |
/* DVD Copyright Management Information (UDF 2.60 3.3.4.5.1.2) */ | |
@@ -265,7 +260,6 @@ struct LVExtensionEA { | |
/* FreeAppEASpace (UDF 2.60 3.3.4.6.1) */ | |
struct freeAppEASpace { | |
__le16 headerChecksum; | |
- uint8_t freeEASpace[0]; | |
} __packed; | |
/* UDF Defined System Stream (UDF 2.60 3.3.7) */ | |
diff -u -p ./drivers/gpu/drm/amd/include/atomfirmware.h /tmp/nothing/drivers/gpu/drm/amd/include/atomfirmware.h | |
--- ./drivers/gpu/drm/amd/include/atomfirmware.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/include/atomfirmware.h | |
@@ -789,7 +789,6 @@ struct atom_object_gpio_cntl_record | |
struct atom_common_record_header record_header; | |
uint8_t flag; // Future expnadibility | |
uint8_t number_of_pins; // Number of GPIO pins used to control the object | |
- struct atom_gpio_pin_control_pair gpio[1]; // the real gpio pin pair determined by number of pins ucNumberOfPins | |
}; | |
//Definitions for GPIO pin state | |
@@ -867,7 +866,6 @@ struct atom_bracket_layout_record | |
uint8_t bracketwidth; | |
uint8_t conn_num; | |
uint8_t reserved; | |
- struct atom_connector_layout_info conn_info[1]; | |
}; | |
enum atom_display_device_tag_def{ | |
@@ -2498,14 +2496,12 @@ union atom_umc_reg_setting_id_config_acc | |
struct atom_umc_reg_setting_data_block{ | |
union atom_umc_reg_setting_id_config_access block_id; | |
- uint32_t u32umc_reg_data[1]; | |
}; | |
struct atom_umc_init_reg_block{ | |
uint16_t umc_reg_num; | |
uint16_t reserved; | |
union atom_umc_register_addr_info_access umc_reg_list[1]; //for allocation purpose, the real number come from umc_reg_num; | |
- struct atom_umc_reg_setting_data_block umc_reg_setting_list[1]; | |
}; | |
struct atom_vram_module_v10 { | |
@@ -2712,7 +2708,6 @@ struct atom_i2c_voltage_object_v4 | |
uint8_t i2c_flag; // Bit0: 0 - One byte data; 1 - Two byte data | |
uint8_t i2c_speed; // =0, use default i2c speed, otherwise use it in unit of kHz. | |
uint8_t reserved[2]; | |
- struct atom_i2c_data_entry i2cdatalut[1]; // end with 0xff | |
}; | |
// ATOM_I2C_VOLTAGE_OBJECT_V3.ucVoltageControlFlag | |
@@ -2737,7 +2732,6 @@ struct atom_gpio_voltage_object_v4 | |
uint8_t phase_delay_us; // phase delay in unit of micro second | |
uint8_t reserved; | |
uint32_t gpio_mask_val; // GPIO Mask value | |
- struct atom_voltage_gpio_map_lut voltage_gpio_lut[1]; | |
}; | |
struct atom_svid2_voltage_object_v4 | |
@@ -2769,7 +2763,6 @@ union atom_voltage_object_v4{ | |
struct atom_voltage_objects_info_v4_1 | |
{ | |
struct atom_common_table_header table_header; | |
- union atom_voltage_object_v4 voltage_object[1]; //Info for Voltage control | |
}; | |
@@ -3634,12 +3627,10 @@ struct vfct_image_header{ | |
struct gop_vbios_content { | |
struct vfct_image_header vbiosheader; | |
- uint8_t vbioscontent[1]; | |
}; | |
struct gop_lib1_content { | |
struct vfct_image_header lib1header; | |
- uint8_t lib1content[1]; | |
}; | |
diff -u -p ./drivers/media/dvb-frontends/mxl5xx_defs.h /tmp/nothing/drivers/media/dvb-frontends/mxl5xx_defs.h | |
--- ./drivers/media/dvb-frontends/mxl5xx_defs.h | |
+++ /tmp/nothing/drivers/media/dvb-frontends/mxl5xx_defs.h | |
@@ -172,7 +172,6 @@ struct MBIN_FILE_HEADER_T { | |
struct MBIN_FILE_T { | |
struct MBIN_FILE_HEADER_T header; | |
- u8 data[1]; | |
}; | |
struct MBIN_SEGMENT_HEADER_T { | |
@@ -183,7 +182,6 @@ struct MBIN_SEGMENT_HEADER_T { | |
struct MBIN_SEGMENT_T { | |
struct MBIN_SEGMENT_HEADER_T header; | |
- u8 data[1]; | |
}; | |
enum MXL_CMD_TYPE_E { MXL_CMD_WRITE = 0, MXL_CMD_READ }; | |
diff -u -p ./drivers/staging/wlan-ng/p80211mgmt.h /tmp/nothing/drivers/staging/wlan-ng/p80211mgmt.h | |
--- ./drivers/staging/wlan-ng/p80211mgmt.h | |
+++ /tmp/nothing/drivers/staging/wlan-ng/p80211mgmt.h | |
@@ -229,14 +229,12 @@ struct wlan_ie { | |
struct wlan_ie_ssid { | |
u8 eid; | |
u8 len; | |
- u8 ssid[1]; /* may be zero, ptrs may overlap */ | |
} __packed; | |
/*-- Supported Rates -----------------------------*/ | |
struct wlan_ie_supp_rates { | |
u8 eid; | |
u8 len; | |
- u8 rates[1]; /* had better be at LEAST one! */ | |
} __packed; | |
/*-- FH Parameter Set ----------------------------*/ | |
@@ -274,7 +272,6 @@ struct wlan_ie_tim { | |
u8 dtim_cnt; | |
u8 dtim_period; | |
u8 bitmap_ctl; | |
- u8 virt_bm[1]; | |
} __packed; | |
/*-- IBSS Parameter Set ---------------------------*/ | |
@@ -288,7 +285,6 @@ struct wlan_ie_ibss_parms { | |
struct wlan_ie_challenge { | |
u8 eid; | |
u8 len; | |
- u8 challenge[1]; | |
} __packed; | |
/*-------------------------------------------------*/ | |
diff -u -p ./drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h /tmp/nothing/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | |
--- ./drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | |
+++ /tmp/nothing/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | |
@@ -7728,7 +7728,6 @@ struct hwrm_dbg_coredump_list_input { | |
__le16 seq_no; | |
u8 flags; | |
#define DBG_COREDUMP_LIST_REQ_FLAGS_CRASHDUMP 0x1UL | |
- u8 unused_0[1]; | |
}; | |
/* hwrm_dbg_coredump_list_output (size:128b/16B) */ | |
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/debug.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/debug.h | |
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/debug.h | |
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/debug.h | |
@@ -268,7 +268,6 @@ struct iwl_mfu_assert_dump_notif { | |
__le16 index_num; | |
__le16 parts_num; | |
__le32 data_size; | |
- __le32 data[0]; | |
} __packed; /* MFU_DUMP_ASSERT_API_S_VER_1 */ | |
/** | |
@@ -304,7 +303,6 @@ struct iwl_mvm_marker { | |
u8 marker_id; | |
__le16 reserved; | |
__le64 timestamp; | |
- __le32 metadata[0]; | |
} __packed; /* MARKER_API_S_VER_1 */ | |
/** | |
diff -u -p ./drivers/net/wireless/ath/ath10k/htt.h /tmp/nothing/drivers/net/wireless/ath/ath10k/htt.h | |
--- ./drivers/net/wireless/ath/ath10k/htt.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath10k/htt.h | |
@@ -196,7 +196,6 @@ struct htt_data_tx_desc { | |
__le16 freq; | |
} __packed offchan_tx; | |
} __packed; | |
- u8 prefetch[0]; /* start of frame, for FW classification engine */ | |
} __packed; | |
struct htt_data_tx_desc_64 { | |
@@ -212,7 +211,6 @@ struct htt_data_tx_desc_64 { | |
__le16 freq; | |
} __packed offchan_tx; | |
} __packed; | |
- u8 prefetch[0]; /* start of frame, for FW classification engine */ | |
} __packed; | |
enum htt_rx_ring_flags { | |
@@ -1012,7 +1010,6 @@ struct htt_data_tx_compl_ppdu_dur { | |
struct htt_tx_compl_ind_base { | |
u32 hdr; | |
- u16 payload[1/*or more*/]; | |
} __packed; | |
struct htt_rc_tx_done_params { | |
diff -u -p ./drivers/net/wireless/ath/ath11k/rx_desc.h /tmp/nothing/drivers/net/wireless/ath/ath11k/rx_desc.h | |
--- ./drivers/net/wireless/ath/ath11k/rx_desc.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/rx_desc.h | |
@@ -1206,7 +1206,6 @@ struct hal_rx_desc { | |
__le32 hdr_status_tag; | |
__le32 phy_ppdu_id; | |
u8 hdr_status[HAL_RX_DESC_HDR_STATUS_LEN]; | |
- u8 msdu_payload[0]; | |
} __packed; | |
#define HAL_RX_RU_ALLOC_TYPE_MAX 6 | |
diff -u -p ./arch/s390/include/asm/ccwgroup.h /tmp/nothing/arch/s390/include/asm/ccwgroup.h | |
--- ./arch/s390/include/asm/ccwgroup.h | |
+++ /tmp/nothing/arch/s390/include/asm/ccwgroup.h | |
@@ -26,7 +26,6 @@ struct ccwgroup_device { | |
unsigned int count; | |
struct device dev; | |
struct work_struct ungroup_work; | |
- struct ccw_device *cdev[0]; | |
}; | |
/** | |
diff -u -p ./include/net/compat.h /tmp/nothing/include/net/compat.h | |
--- ./include/net/compat.h | |
+++ /tmp/nothing/include/net/compat.h | |
@@ -86,8 +86,6 @@ struct compat_group_filter { | |
__aligned(4); | |
__u32 gf_fmode; | |
__u32 gf_numsrc; | |
- struct __kernel_sockaddr_storage gf_slist[1] | |
- __aligned(4); | |
} __packed; | |
#endif /* NET_COMPAT_H */ | |
diff -u -p ./include/linux/pid.h /tmp/nothing/include/linux/pid.h | |
--- ./include/linux/pid.h | |
+++ /tmp/nothing/include/linux/pid.h | |
@@ -67,7 +67,6 @@ struct pid | |
/* wait queue for pidfd notifications */ | |
wait_queue_head_t wait_pidfd; | |
struct rcu_head rcu; | |
- struct upid numbers[1]; | |
}; | |
extern struct pid init_struct_pid; | |
diff -u -p ./drivers/net/ethernet/mellanox/mlx4/mlx4_en.h /tmp/nothing/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | |
--- ./drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | |
+++ /tmp/nothing/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | |
@@ -328,7 +328,6 @@ struct mlx4_en_tx_ring { | |
struct mlx4_en_rx_desc { | |
/* actual number of entries depends on rx ring stride */ | |
- struct mlx4_wqe_data_seg data[0]; | |
}; | |
struct mlx4_en_rx_ring { | |
diff -u -p ./drivers/net/wireless/ath/ath10k/swap.h /tmp/nothing/drivers/net/wireless/ath/ath10k/swap.h | |
--- ./drivers/net/wireless/ath/ath10k/swap.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath10k/swap.h | |
@@ -17,7 +17,6 @@ struct ath10k_fw_file; | |
struct ath10k_swap_code_seg_tlv { | |
__le32 address; | |
__le32 length; | |
- u8 data[0]; | |
} __packed; | |
struct ath10k_swap_code_seg_tail { | |
diff -u -p ./drivers/net/wireless/ath/ath11k/ce.h /tmp/nothing/drivers/net/wireless/ath/ath11k/ce.h | |
--- ./drivers/net/wireless/ath/ath11k/ce.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/ce.h | |
@@ -144,7 +144,6 @@ struct ath11k_ce_ring { | |
u32 hal_ring_id; | |
/* keep last */ | |
- struct sk_buff *skb[0]; | |
}; | |
struct ath11k_ce_pipe { | |
diff -u -p ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h | |
--- ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h | |
+++ /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h | |
@@ -363,7 +363,6 @@ struct brcmf_cfg80211_info { | |
struct brcmf_tlv { | |
u8 id; | |
u8 len; | |
- u8 data[1]; | |
}; | |
static inline struct wiphy *cfg_to_wiphy(struct brcmf_cfg80211_info *cfg) | |
diff -u -p ./drivers/scsi/esas2r/atioctl.h /tmp/nothing/drivers/scsi/esas2r/atioctl.h | |
--- ./drivers/scsi/esas2r/atioctl.h | |
+++ /tmp/nothing/drivers/scsi/esas2r/atioctl.h | |
@@ -340,7 +340,6 @@ struct atto_csmi_get_raid_cfg { | |
u8 drive_cnt; | |
u8 reserved[20]; | |
- struct atto_csmi_raid_drives drives[1]; | |
}; | |
/* CSMI HBA class structures */ | |
@@ -627,7 +626,6 @@ struct atto_csmi_phy_ctrl { | |
u8 link_reserved[7]; | |
u32 vendor_unique[8]; | |
- struct atto_csmi_pc_ctrl control[1]; | |
}; | |
union atto_ioctl_csmi { | |
diff -u -p ./drivers/atm/fore200e.h /tmp/nothing/drivers/atm/fore200e.h | |
--- ./drivers/atm/fore200e.h | |
+++ /tmp/nothing/drivers/atm/fore200e.h | |
@@ -365,7 +365,6 @@ typedef struct stats_oc3 { | |
__be32 path_febe_errors; /* path far end block errors */ | |
__be32 corr_hcs_errors; /* correctable header check sequence */ | |
__be32 ucorr_hcs_errors; /* uncorrectable header check sequence */ | |
- __be32 pad[ 1 ]; /* i960 padding */ | |
} stats_oc3_t; | |
@@ -387,7 +386,6 @@ typedef struct stats_aal0 { | |
__be32 cells_transmitted; /* cells transmitted */ | |
__be32 cells_received; /* cells received */ | |
__be32 cells_dropped; /* cells dropped */ | |
- __be32 pad[ 1 ]; /* i960 padding */ | |
} stats_aal0_t; | |
diff -u -p ./arch/alpha/include/asm/hwrpb.h /tmp/nothing/arch/alpha/include/asm/hwrpb.h | |
--- ./arch/alpha/include/asm/hwrpb.h | |
+++ /tmp/nothing/arch/alpha/include/asm/hwrpb.h | |
@@ -135,7 +135,6 @@ struct crb_struct { | |
/* virtual->physical map */ | |
unsigned long map_entries; | |
unsigned long map_pages; | |
- struct vf_map_struct map[1]; | |
}; | |
struct memclust_struct { | |
@@ -152,7 +151,6 @@ struct memdesc_struct { | |
unsigned long chksum; | |
unsigned long optional_pa; | |
unsigned long numclusters; | |
- struct memclust_struct cluster[0]; | |
}; | |
struct dsr_struct { | |
diff -u -p ./drivers/gpu/drm/nouveau/include/nvfw/hs.h /tmp/nothing/drivers/gpu/drm/nouveau/include/nvfw/hs.h | |
--- ./drivers/gpu/drm/nouveau/include/nvfw/hs.h | |
+++ /tmp/nothing/drivers/gpu/drm/nouveau/include/nvfw/hs.h | |
@@ -23,7 +23,6 @@ struct nvfw_hs_load_header { | |
u32 data_dma_base; | |
u32 data_size; | |
u32 num_apps; | |
- u32 apps[0]; | |
}; | |
const struct nvfw_hs_load_header * | |
diff -u -p ./drivers/gpu/drm/radeon/pptable.h /tmp/nothing/drivers/gpu/drm/radeon/pptable.h | |
--- ./drivers/gpu/drm/radeon/pptable.h | |
+++ /tmp/nothing/drivers/gpu/drm/radeon/pptable.h | |
@@ -74,7 +74,6 @@ typedef struct _ATOM_PPLIB_THERMALCONTRO | |
typedef struct _ATOM_PPLIB_STATE | |
{ | |
UCHAR ucNonClockStateIndex; | |
- UCHAR ucClockStateIndices[1]; // variable-sized | |
} ATOM_PPLIB_STATE; | |
@@ -432,14 +431,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; | |
@@ -450,7 +447,6 @@ typedef struct _ClockInfoArray{ | |
//sizeof(ATOM_PPLIB_CLOCK_INFO) | |
UCHAR ucEntrySize; | |
- UCHAR clockInfo[1]; | |
}ClockInfoArray; | |
typedef struct _NonClockInfoArray{ | |
@@ -460,7 +456,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 | |
@@ -473,7 +468,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 | |
@@ -489,7 +483,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 | |
@@ -513,7 +506,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 | |
@@ -528,7 +520,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{ | |
@@ -540,7 +531,6 @@ typedef struct _VCEClockInfo{ | |
typedef struct _VCEClockInfoArray{ | |
UCHAR ucNumEntries; | |
- VCEClockInfo entries[1]; | |
}VCEClockInfoArray; | |
typedef struct _ATOM_PPLIB_VCE_Clock_Voltage_Limit_Record | |
@@ -552,7 +542,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 | |
@@ -564,7 +553,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; | |
@@ -586,7 +574,6 @@ typedef struct _UVDClockInfo{ | |
typedef struct _UVDClockInfoArray{ | |
UCHAR ucNumEntries; | |
- UVDClockInfo entries[1]; | |
}UVDClockInfoArray; | |
typedef struct _ATOM_PPLIB_UVD_Clock_Voltage_Limit_Record | |
@@ -598,7 +585,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 | |
@@ -617,7 +603,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 | |
@@ -635,7 +620,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 | |
diff -u -p ./drivers/visorbus/vbuschannel.h /tmp/nothing/drivers/visorbus/vbuschannel.h | |
--- ./drivers/visorbus/vbuschannel.h | |
+++ /tmp/nothing/drivers/visorbus/vbuschannel.h | |
@@ -89,7 +89,6 @@ struct visor_vbus_channel { | |
struct visor_vbus_headerinfo hdr_info; | |
struct visor_vbus_deviceinfo chp_info; | |
struct visor_vbus_deviceinfo bus_info; | |
- struct visor_vbus_deviceinfo dev_info[0]; | |
} __packed; | |
#endif | |
diff -u -p ./drivers/net/wireless/ath/ath11k/wmi.h /tmp/nothing/drivers/net/wireless/ath/ath11k/wmi.h | |
--- ./drivers/net/wireless/ath/ath11k/wmi.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/wmi.h | |
@@ -3584,7 +3584,6 @@ struct wmi_stop_scan_cmd { | |
struct scan_chan_list_params { | |
u32 pdev_id; | |
u16 nallchans; | |
- struct channel_param ch_param[1]; | |
}; | |
struct wmi_scan_chan_list_cmd { | |
diff -u -p ./include/sound/sof/channel_map.h /tmp/nothing/include/sound/sof/channel_map.h | |
--- ./include/sound/sof/channel_map.h | |
+++ /tmp/nothing/include/sound/sof/channel_map.h | |
@@ -39,7 +39,6 @@ struct sof_ipc_channel_map { | |
uint32_t ext_id; | |
uint32_t ch_mask; | |
uint32_t reserved; | |
- int32_t ch_coeffs[0]; | |
} __packed; | |
/** | |
@@ -55,7 +54,6 @@ struct sof_ipc_stream_map { | |
struct sof_ipc_cmd_hdr hdr; | |
uint32_t num_ch_map; | |
uint32_t reserved[3]; | |
- struct sof_ipc_channel_map ch_map[0]; | |
} __packed; | |
#endif /* __IPC_CHANNEL_MAP_H__ */ | |
diff -u -p ./include/linux/memcontrol.h /tmp/nothing/include/linux/memcontrol.h | |
--- ./include/linux/memcontrol.h | |
+++ /tmp/nothing/include/linux/memcontrol.h | |
@@ -161,7 +161,6 @@ enum memcg_kmem_state { | |
#if defined(CONFIG_SMP) | |
struct memcg_padding { | |
- char x[0]; | |
} ____cacheline_internodealigned_in_smp; | |
#define MEMCG_PADDING(name) struct memcg_padding name; | |
#else | |
@@ -327,7 +326,6 @@ struct mem_cgroup { | |
struct deferred_split deferred_split_queue; | |
#endif | |
- struct mem_cgroup_per_node *nodeinfo[0]; | |
/* WARNING: nodeinfo must be the last member here */ | |
}; | |
diff -u -p ./include/linux/greybus/greybus_manifest.h /tmp/nothing/include/linux/greybus/greybus_manifest.h | |
--- ./include/linux/greybus/greybus_manifest.h | |
+++ /tmp/nothing/include/linux/greybus/greybus_manifest.h | |
@@ -100,7 +100,6 @@ enum { | |
struct greybus_descriptor_string { | |
__u8 length; | |
__u8 id; | |
- __u8 string[0]; | |
} __packed; | |
/* | |
@@ -175,7 +174,6 @@ struct greybus_manifest_header { | |
struct greybus_manifest { | |
struct greybus_manifest_header header; | |
- struct greybus_descriptor descriptors[0]; | |
} __packed; | |
#endif /* __GREYBUS_MANIFEST_H */ | |
diff -u -p ./include/linux/ieee80211.h /tmp/nothing/include/linux/ieee80211.h | |
--- ./include/linux/ieee80211.h | |
+++ /tmp/nothing/include/linux/ieee80211.h | |
@@ -866,7 +866,6 @@ struct ieee80211_tim_ie { | |
u8 dtim_period; | |
u8 bitmap_ctrl; | |
/* variable size: 1 - 251 bytes */ | |
- u8 virtual_map[1]; | |
} __packed; | |
/** | |
diff -u -p ./drivers/staging/rtl8712/rtl871x_cmd.h /tmp/nothing/drivers/staging/rtl8712/rtl871x_cmd.h | |
--- ./drivers/staging/rtl8712/rtl871x_cmd.h | |
+++ /tmp/nothing/drivers/staging/rtl8712/rtl871x_cmd.h | |
@@ -647,25 +647,21 @@ struct setra_parm { | |
struct setprobereqextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct setassocreqextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct setproberspextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct setassocrspextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct addBaReq_parm { | |
diff -u -p ./drivers/scsi/hptiop.h /tmp/nothing/drivers/scsi/hptiop.h | |
--- ./drivers/scsi/hptiop.h | |
+++ /tmp/nothing/drivers/scsi/hptiop.h | |
@@ -211,7 +211,6 @@ struct hpt_iop_request_block_command { | |
__le16 command; /* IOP_BLOCK_COMMAND_{READ,WRITE} */ | |
__le16 sectors; | |
__le64 lba; | |
- struct hpt_iopsg sg_list[1]; | |
}; | |
#define IOP_BLOCK_COMMAND_READ 1 | |
@@ -228,7 +227,6 @@ struct hpt_iop_request_scsi_command { | |
u8 pad1; | |
u8 cdb[16]; | |
__le32 dataxfer_length; | |
- struct hpt_iopsg sg_list[1]; | |
}; | |
struct hpt_iop_request_ioctl_command { | |
@@ -237,7 +235,6 @@ struct hpt_iop_request_ioctl_command { | |
__le32 inbuf_size; | |
__le32 outbuf_size; | |
__le32 bytes_returned; | |
- u8 buf[1]; | |
/* out data should be put at buf[(inbuf_size+3)&~3] */ | |
}; | |
diff -u -p ./arch/powerpc/include/asm/kvm_host.h /tmp/nothing/arch/powerpc/include/asm/kvm_host.h | |
--- ./arch/powerpc/include/asm/kvm_host.h | |
+++ /tmp/nothing/arch/powerpc/include/asm/kvm_host.h | |
@@ -202,7 +202,6 @@ struct kvmppc_spapr_tce_table { | |
u64 size; /* window size in pages */ | |
struct list_head iommu_tables; | |
struct mutex alloc_lock; | |
- struct page *pages[0]; | |
}; | |
/* XICS components, defined in book3s_xics.c */ | |
diff -u -p ./sound/soc/intel/atom/sst-mfld-dsp.h /tmp/nothing/sound/soc/intel/atom/sst-mfld-dsp.h | |
--- ./sound/soc/intel/atom/sst-mfld-dsp.h | |
+++ /tmp/nothing/sound/soc/intel/atom/sst-mfld-dsp.h | |
@@ -427,7 +427,6 @@ struct snd_sst_drop_response { | |
struct snd_sst_async_msg { | |
u32 msg_id; /* Async msg id */ | |
- u32 payload[0]; | |
}; | |
struct snd_sst_async_err_msg { | |
@@ -514,7 +513,6 @@ struct snd_sst_bytes_v2 { | |
u8 pipe_id; | |
u8 rsvd; | |
u16 len; | |
- char bytes[0]; | |
}; | |
#define MAX_VTSV_FILES 2 | |
diff -u -p ./fs/cifs/smb2ops.c /tmp/nothing/fs/cifs/smb2ops.c | |
--- ./fs/cifs/smb2ops.c | |
+++ /tmp/nothing/fs/cifs/smb2ops.c | |
@@ -1469,7 +1469,6 @@ struct iqi_vars { | |
struct kvec qi_iov[1]; | |
struct kvec io_iov[SMB2_IOCTL_IOV_SIZE]; | |
struct kvec si_iov[SMB2_SET_INFO_IOV_SIZE]; | |
- struct kvec close_iov[1]; | |
}; | |
static int | |
diff -u -p ./fs/nfs/filelayout/filelayout.h /tmp/nothing/fs/nfs/filelayout/filelayout.h | |
--- ./fs/nfs/filelayout/filelayout.h | |
+++ /tmp/nothing/fs/nfs/filelayout/filelayout.h | |
@@ -51,7 +51,6 @@ struct nfs4_file_layout_dsaddr { | |
u32 stripe_count; | |
u8 *stripe_indices; | |
u32 ds_num; | |
- struct nfs4_pnfs_ds *ds_list[1]; | |
}; | |
struct nfs4_filelayout_segment { | |
diff -u -p ./fs/ocfs2/ocfs2_fs.h /tmp/nothing/fs/ocfs2/ocfs2_fs.h | |
--- ./fs/ocfs2/ocfs2_fs.h | |
+++ /tmp/nothing/fs/ocfs2/ocfs2_fs.h | |
@@ -529,7 +529,6 @@ struct ocfs2_extent_block | |
* value -1 (0xFFFF) is OCFS2_INVALID_SLOT. This marks a slot empty. | |
*/ | |
struct ocfs2_slot_map { | |
-/*00*/ __le16 sm_slots[0]; | |
/* | |
* Actual on-disk size is one block. OCFS2_MAX_SLOTS is 255, | |
* 255 * sizeof(__le16) == 512B, within the 512B block minimum blocksize. | |
@@ -550,7 +549,6 @@ struct ocfs2_extended_slot { | |
* i_size. | |
*/ | |
struct ocfs2_slot_map_extended { | |
-/*00*/ struct ocfs2_extended_slot se_slots[0]; | |
/* | |
* Actual size is i_size of the slot_map system file. It should | |
* match s_max_slots * sizeof(struct ocfs2_extended_slot) | |
diff -u -p ./include/acpi/actbl.h /tmp/nothing/include/acpi/actbl.h | |
--- ./include/acpi/actbl.h | |
+++ /tmp/nothing/include/acpi/actbl.h | |
@@ -142,12 +142,10 @@ struct acpi_rsdp_extension { | |
struct acpi_table_rsdt { | |
struct acpi_table_header header; /* Common ACPI table header */ | |
- u32 table_offset_entry[1]; /* Array of pointers to ACPI tables */ | |
}; | |
struct acpi_table_xsdt { | |
struct acpi_table_header header; /* Common ACPI table header */ | |
- u64 table_offset_entry[1]; /* Array of pointers to ACPI tables */ | |
}; | |
#define ACPI_RSDT_ENTRY_SIZE (sizeof (u32)) | |
diff -u -p ./include/linux/cdrom.h /tmp/nothing/include/linux/cdrom.h | |
--- ./include/linux/cdrom.h | |
+++ /tmp/nothing/include/linux/cdrom.h | |
@@ -26,7 +26,6 @@ struct packet_command | |
unsigned char data_direction; | |
int quiet; | |
int timeout; | |
- void *reserved[1]; | |
}; | |
/* | |
diff -u -p ./include/linux/vmw_vmci_defs.h /tmp/nothing/include/linux/vmw_vmci_defs.h | |
--- ./include/linux/vmw_vmci_defs.h | |
+++ /tmp/nothing/include/linux/vmw_vmci_defs.h | |
@@ -550,7 +550,6 @@ struct vmci_resource_query_hdr { | |
struct vmci_resource_query_msg { | |
u32 num_resources; | |
u32 _padding; | |
- u32 resources[1]; | |
}; | |
/* | |
diff -u -p ./drivers/scsi/aacraid/aacraid.h /tmp/nothing/drivers/scsi/aacraid/aacraid.h | |
--- ./drivers/scsi/aacraid/aacraid.h | |
+++ /tmp/nothing/drivers/scsi/aacraid/aacraid.h | |
@@ -315,13 +315,6 @@ struct aac_ciss_phys_luns_resp { | |
u8 list_length[4]; /* LUN list length (N-7, big endian) */ | |
u8 resp_flag; /* extended response_flag */ | |
u8 reserved[3]; | |
- struct _ciss_lun { | |
- u8 tid[3]; /* Target ID */ | |
- u8 bus; /* Bus, flag (bits 6,7) */ | |
- u8 level3[2]; | |
- u8 level2[2]; | |
- u8 node_ident[16]; /* phys. node identifier */ | |
- } lun[1]; /* List of phys. devices */ | |
}; | |
/* | |
@@ -506,32 +499,26 @@ struct sge_ieee1212 { | |
struct sgmap { | |
__le32 count; | |
- struct sgentry sg[1]; | |
}; | |
struct user_sgmap { | |
u32 count; | |
- struct user_sgentry sg[1]; | |
}; | |
struct sgmap64 { | |
__le32 count; | |
- struct sgentry64 sg[1]; | |
}; | |
struct user_sgmap64 { | |
u32 count; | |
- struct user_sgentry64 sg[1]; | |
}; | |
struct sgmapraw { | |
__le32 count; | |
- struct sgentryraw sg[1]; | |
}; | |
struct user_sgmapraw { | |
u32 count; | |
- struct user_sgentryraw sg[1]; | |
}; | |
struct creation_info | |
@@ -1929,7 +1916,6 @@ struct aac_raw_io2 { | |
u8 bpComplete; /* reserved for F/W use */ | |
u8 sgeFirstIndex; /* reserved for F/W use */ | |
u8 unused[4]; | |
- struct sge_ieee1212 sge[1]; | |
}; | |
#define CT_FLUSH_CACHE 129 | |
@@ -2262,7 +2248,6 @@ struct aac_mount { | |
__le32 status; | |
__le32 type; /* should be same as that requested */ | |
__le32 count; | |
- struct aac_mntent mnt[1]; | |
}; | |
#define CT_READ_NAME 130 | |
@@ -2616,7 +2601,6 @@ struct aac_hba_info { | |
struct aac_aifcmd { | |
__le32 command; /* Tell host what type of notify this is */ | |
__le32 seqnum; /* To allow ordering of reports (if necessary) */ | |
- u8 data[1]; /* Undefined length (from kernel viewpoint) */ | |
}; | |
/** | |
diff -u -p ./drivers/scsi/mpt3sas/mpt3sas_ctl.h /tmp/nothing/drivers/scsi/mpt3sas/mpt3sas_ctl.h | |
--- ./drivers/scsi/mpt3sas/mpt3sas_ctl.h | |
+++ /tmp/nothing/drivers/scsi/mpt3sas/mpt3sas_ctl.h | |
@@ -238,7 +238,6 @@ struct MPT3_IOCTL_EVENTS { | |
*/ | |
struct mpt3_ioctl_eventreport { | |
struct mpt3_ioctl_header hdr; | |
- struct MPT3_IOCTL_EVENTS event_data[1]; | |
}; | |
/** | |
@@ -270,7 +269,6 @@ struct mpt3_ioctl_command { | |
uint32_t data_out_size; | |
uint32_t max_sense_bytes; | |
uint32_t data_sge_offset; | |
- uint8_t mf[1]; | |
}; | |
#ifdef CONFIG_COMPAT | |
@@ -286,7 +284,6 @@ struct mpt3_ioctl_command32 { | |
uint32_t data_out_size; | |
uint32_t max_sense_bytes; | |
uint32_t data_sge_offset; | |
- uint8_t mf[1]; | |
}; | |
#endif | |
@@ -427,7 +424,6 @@ struct mpt3_diag_read_buffer { | |
uint32_t starting_offset; | |
uint32_t bytes_to_read; | |
uint32_t unique_id; | |
- uint32_t diagnostic_data[1]; | |
}; | |
#endif /* MPT3SAS_CTL_H_INCLUDED */ | |
diff -u -p ./drivers/scsi/pm8001/pm8001_sas.h /tmp/nothing/drivers/scsi/pm8001/pm8001_sas.h | |
--- ./drivers/scsi/pm8001/pm8001_sas.h | |
+++ /tmp/nothing/drivers/scsi/pm8001/pm8001_sas.h | |
@@ -629,7 +629,6 @@ struct fw_control_info { | |
operations.*/ | |
u32 reserved;/* padding required for 64 bit | |
alignment */ | |
- u8 buffer[1];/* Start of buffer */ | |
}; | |
struct fw_control_ex { | |
struct fw_control_info *fw_control; | |
diff -u -p ./security/apparmor/lsm.c /tmp/nothing/security/apparmor/lsm.c | |
--- ./security/apparmor/lsm.c | |
+++ /tmp/nothing/security/apparmor/lsm.c | |
@@ -46,7 +46,6 @@ int apparmor_initialized; | |
union aa_buffer { | |
struct list_head list; | |
- char buffer[1]; | |
}; | |
#define RESERVE_COUNT 2 | |
diff -u -p ./arch/s390/include/asm/idals.h /tmp/nothing/arch/s390/include/asm/idals.h | |
--- ./arch/s390/include/asm/idals.h | |
+++ /tmp/nothing/arch/s390/include/asm/idals.h | |
@@ -108,7 +108,6 @@ clear_normalized_cda(struct ccw1 * ccw) | |
struct idal_buffer { | |
size_t size; | |
size_t page_order; | |
- void *data[0]; | |
}; | |
/* | |
diff -u -p ./fs/xfs/libxfs/xfs_fs.h /tmp/nothing/fs/xfs/libxfs/xfs_fs.h | |
--- ./fs/xfs/libxfs/xfs_fs.h | |
+++ /tmp/nothing/fs/xfs/libxfs/xfs_fs.h | |
@@ -594,12 +594,10 @@ typedef struct xfs_attrlist_cursor { | |
struct xfs_attrlist { | |
__s32 al_count; /* number of entries in attrlist */ | |
__s32 al_more; /* T/F: more attrs (do call again) */ | |
- __s32 al_offset[1]; /* byte offsets of attrs [var-sized] */ | |
}; | |
struct xfs_attrlist_ent { /* data from attr_list() */ | |
__u32 a_valuelen; /* number bytes in value of attr */ | |
- char a_name[1]; /* attr name (NULL terminated) */ | |
}; | |
typedef struct xfs_fsop_attrlist_handlereq { | |
diff -u -p ./net/ipv6/rpl_iptunnel.c /tmp/nothing/net/ipv6/rpl_iptunnel.c | |
--- ./net/ipv6/rpl_iptunnel.c | |
+++ /tmp/nothing/net/ipv6/rpl_iptunnel.c | |
@@ -13,7 +13,6 @@ | |
#include <net/rpl.h> | |
struct rpl_iptunnel_encap { | |
- struct ipv6_rpl_sr_hdr srh[0]; | |
}; | |
struct rpl_lwt { | |
diff -u -p ./include/linux/sfi.h /tmp/nothing/include/linux/sfi.h | |
--- ./include/linux/sfi.h | |
+++ /tmp/nothing/include/linux/sfi.h | |
@@ -103,7 +103,6 @@ struct sfi_table_header { | |
struct sfi_table_simple { | |
struct sfi_table_header header; | |
- u64 pentry[1]; | |
} __packed; | |
/* Comply with UEFI spec 2.1 */ | |
diff -u -p ./drivers/platform/x86/dcdbas.h /tmp/nothing/drivers/platform/x86/dcdbas.h | |
--- ./drivers/platform/x86/dcdbas.h | |
+++ /tmp/nothing/drivers/platform/x86/dcdbas.h | |
@@ -71,7 +71,6 @@ struct smi_cmd { | |
__u16 command_address; | |
__u8 command_code; | |
__u8 reserved; | |
- __u8 command_buffer[1]; | |
} __attribute__ ((packed)); | |
struct apm_cmd { | |
diff -u -p ./drivers/staging/rtl8723bs/include/rtw_cmd.h /tmp/nothing/drivers/staging/rtl8723bs/include/rtw_cmd.h | |
--- ./drivers/staging/rtl8723bs/include/rtw_cmd.h | |
+++ /tmp/nothing/drivers/staging/rtl8723bs/include/rtw_cmd.h | |
@@ -94,7 +94,6 @@ struct c2h_evt_hdr { | |
u8 id:4; | |
u8 plen:4; | |
u8 seq; | |
- u8 payload[0]; | |
}; | |
struct c2h_evt_hdr_88xx { | |
@@ -729,25 +728,21 @@ struct getcurtxpwrlevel_rsp { | |
struct setprobereqextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct setassocreqextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct setproberspextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
struct setassocrspextraie_parm { | |
unsigned char e_id; | |
unsigned char ie_len; | |
- unsigned char ie[0]; | |
}; | |
diff -u -p ./drivers/net/ethernet/qlogic/qed/qed_ll2.h /tmp/nothing/drivers/net/ethernet/qlogic/qed/qed_ll2.h | |
--- ./drivers/net/ethernet/qlogic/qed/qed_ll2.h | |
+++ /tmp/nothing/drivers/net/ethernet/qlogic/qed/qed_ll2.h | |
@@ -52,11 +52,6 @@ struct qed_ll2_tx_packet { | |
bool notify_fw; | |
void *cookie; | |
/* Flexible Array of bds_set determined by max_bds_per_packet */ | |
- struct { | |
- struct core_tx_bd *txq_bd; | |
- dma_addr_t tx_frag; | |
- u16 frag_len; | |
- } bds_set[1]; | |
}; | |
struct qed_ll2_rx_queue { | |
diff -u -p ./drivers/net/ethernet/qlogic/qed/qed_hsi.h /tmp/nothing/drivers/net/ethernet/qlogic/qed/qed_hsi.h | |
--- ./drivers/net/ethernet/qlogic/qed/qed_hsi.h | |
+++ /tmp/nothing/drivers/net/ethernet/qlogic/qed/qed_hsi.h | |
@@ -11636,7 +11636,6 @@ struct port_mf_cfg { | |
#define PORT_MF_CFG_OV_TAG_SHIFT 0 | |
#define PORT_MF_CFG_OV_TAG_DEFAULT PORT_MF_CFG_OV_TAG_MASK | |
- u32 reserved[1]; | |
}; | |
struct eth_stats { | |
diff -u -p ./drivers/scsi/bfa/bfi.h /tmp/nothing/drivers/scsi/bfa/bfi.h | |
--- ./drivers/scsi/bfa/bfi.h | |
+++ /tmp/nothing/drivers/scsi/bfa/bfi.h | |
@@ -562,7 +562,6 @@ struct bfi_msgq_mhdr_s { | |
u16 msg_token; | |
u16 num_entries; | |
u8 enet_id; | |
- u8 rsvd[1]; | |
}; | |
#define bfi_msgq_mhdr_set(_mh, _mc, _mid, _tok, _enet_id) do { \ | |
diff -u -p ./drivers/scsi/aic7xxx/scsi_iu.h /tmp/nothing/drivers/scsi/aic7xxx/scsi_iu.h | |
--- ./drivers/scsi/aic7xxx/scsi_iu.h | |
+++ /tmp/nothing/drivers/scsi/aic7xxx/scsi_iu.h | |
@@ -13,7 +13,6 @@ struct scsi_status_iu_header | |
u_int8_t status; | |
u_int8_t sense_length[4]; | |
u_int8_t pkt_failures_length[4]; | |
- u_int8_t pkt_failures[1]; | |
}; | |
#define SIU_PKTFAIL_OFFSET(siu) 12 | |
diff -u -p ./arch/s390/include/asm/chsc.h /tmp/nothing/arch/s390/include/asm/chsc.h | |
--- ./arch/s390/include/asm/chsc.h | |
+++ /tmp/nothing/arch/s390/include/asm/chsc.h | |
@@ -56,7 +56,6 @@ struct chsc_pnso_area { | |
struct chsc_header response; | |
u32:32; | |
struct chsc_pnso_naihdr naihdr; | |
- struct chsc_pnso_naid_l2 entries[0]; | |
} __packed __aligned(PAGE_SIZE); | |
#endif /* _ASM_S390_CHSC_H */ | |
diff -u -p ./arch/alpha/kernel/osf_sys.c /tmp/nothing/arch/alpha/kernel/osf_sys.c | |
--- ./arch/alpha/kernel/osf_sys.c | |
+++ /tmp/nothing/arch/alpha/kernel/osf_sys.c | |
@@ -96,7 +96,6 @@ struct osf_dirent { | |
unsigned int d_ino; | |
unsigned short d_reclen; | |
unsigned short d_namlen; | |
- char d_name[1]; | |
}; | |
struct osf_dirent_callback { | |
diff -u -p ./fs/xfs/scrub/attr.h /tmp/nothing/fs/xfs/scrub/attr.h | |
--- ./fs/xfs/scrub/attr.h | |
+++ /tmp/nothing/fs/xfs/scrub/attr.h | |
@@ -24,7 +24,6 @@ struct xchk_xattr_buf { | |
* space bitmap follows immediately after; and we have a third buffer | |
* for storing intermediate bitmap results. | |
*/ | |
- uint8_t buf[0]; | |
}; | |
/* A place to store attribute values. */ | |
diff -u -p ./drivers/md/raid5.h /tmp/nothing/drivers/md/raid5.h | |
--- ./drivers/md/raid5.h | |
+++ /tmp/nothing/drivers/md/raid5.h | |
@@ -246,19 +246,9 @@ struct stripe_head { | |
int target, target2; | |
enum sum_check_flags zero_sum_result; | |
} ops; | |
- struct r5dev { | |
/* rreq and rvec are used for the replacement device when | |
* writing data to both devices. | |
*/ | |
- struct bio req, rreq; | |
- struct bio_vec vec, rvec; | |
- struct page *page, *orig_page; | |
- struct bio *toread, *read, *towrite, *written; | |
- sector_t sector; /* sector of this page */ | |
- unsigned long flags; | |
- u32 log_checksum; | |
- unsigned short write_hint; | |
- } dev[1]; /* allocated with extra space depending of RAID geometry */ | |
}; | |
/* stripe_head_state - collects and tracks the dynamic state of a stripe_head | |
diff -u -p ./drivers/staging/rtl8723bs/include/osdep_service.h /tmp/nothing/drivers/staging/rtl8723bs/include/osdep_service.h | |
--- ./drivers/staging/rtl8723bs/include/osdep_service.h | |
+++ /tmp/nothing/drivers/staging/rtl8723bs/include/osdep_service.h | |
@@ -244,7 +244,6 @@ struct rtw_cbuf { | |
u32 write; | |
u32 read; | |
u32 size; | |
- void *bufs[0]; | |
}; | |
bool rtw_cbuf_full(struct rtw_cbuf *cbuf); | |
diff -u -p ./drivers/acpi/nfit/core.c /tmp/nothing/drivers/acpi/nfit/core.c | |
--- ./drivers/acpi/nfit/core.c | |
+++ /tmp/nothing/drivers/acpi/nfit/core.c | |
@@ -2203,22 +2203,9 @@ static const struct attribute_group *acp | |
/* enough info to uniquely specify an interleave set */ | |
struct nfit_set_info { | |
- struct nfit_set_info_map { | |
- u64 region_offset; | |
- u32 serial_number; | |
- u32 pad; | |
- } mapping[0]; | |
}; | |
struct nfit_set_info2 { | |
- struct nfit_set_info_map2 { | |
- u64 region_offset; | |
- u32 serial_number; | |
- u16 vendor_id; | |
- u16 manufacturing_date; | |
- u8 manufacturing_location; | |
- u8 reserved[31]; | |
- } mapping[0]; | |
}; | |
static size_t sizeof_nfit_set_info(int num_mappings) | |
diff -u -p ./drivers/net/wireless/ath/carl9170/wlan.h /tmp/nothing/drivers/net/wireless/ath/carl9170/wlan.h | |
--- ./drivers/net/wireless/ath/carl9170/wlan.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/carl9170/wlan.h | |
@@ -327,7 +327,6 @@ struct _carl9170_tx_superdesc { | |
struct _carl9170_tx_superframe { | |
struct _carl9170_tx_superdesc s; | |
struct _ar9170_tx_hwdesc f; | |
- u8 frame_data[0]; | |
} __packed __aligned(4); | |
#define CARL9170_TX_SUPERDESC_LEN 24 | |
diff -u -p ./drivers/scsi/megaraid/megaraid_sas.h /tmp/nothing/drivers/scsi/megaraid/megaraid_sas.h | |
--- ./drivers/scsi/megaraid/megaraid_sas.h | |
+++ /tmp/nothing/drivers/scsi/megaraid/megaraid_sas.h | |
@@ -745,7 +745,6 @@ struct MR_PD_ADDRESS { | |
struct MR_PD_LIST { | |
__le32 size; | |
__le32 count; | |
- struct MR_PD_ADDRESS addr[1]; | |
} __packed; | |
struct megasas_pd_list { | |
@@ -812,7 +811,6 @@ struct MR_HOST_DEVICE_LIST { | |
__le32 size; | |
__le32 count; | |
__le32 reserved[2]; | |
- struct MR_HOST_DEVICE_LIST_ENTRY host_device_list[1]; | |
} __packed; | |
#define HOST_DEVICE_LIST_SZ (sizeof(struct MR_HOST_DEVICE_LIST) + \ | |
@@ -1721,7 +1719,6 @@ union megasas_sgl { | |
struct megasas_sge32 sge32[1]; | |
struct megasas_sge64 sge64[1]; | |
- struct megasas_sge_skinny sge_skinny[1]; | |
} __attribute__ ((packed)); | |
@@ -2453,7 +2450,6 @@ struct MR_LD_VF_MAP { | |
union MR_LD_REF ref; | |
u8 ldVfCount; | |
u8 reserved[6]; | |
- u8 policy[1]; | |
}; | |
struct MR_LD_VF_AFFILIATION { | |
@@ -2462,7 +2458,6 @@ struct MR_LD_VF_AFFILIATION { | |
u8 vfCount; | |
u8 thisVf; | |
u8 reserved[9]; | |
- struct MR_LD_VF_MAP map[1]; | |
}; | |
/* Plasma 1.11 FW backward compatibility structures */ | |
diff -u -p ./drivers/message/fusion/mptctl.h /tmp/nothing/drivers/message/fusion/mptctl.h | |
--- ./drivers/message/fusion/mptctl.h | |
+++ /tmp/nothing/drivers/message/fusion/mptctl.h | |
@@ -245,7 +245,6 @@ struct mpt_ioctl_iocinfo_rev0 { | |
struct mpt_ioctl_targetinfo { | |
mpt_ioctl_header hdr; | |
int numDevices; /* Num targets on this ioc */ | |
- int targetInfo[1]; | |
}; | |
@@ -275,7 +274,6 @@ typedef struct { | |
struct mpt_ioctl_eventreport { | |
mpt_ioctl_header hdr; | |
- MPT_IOCTL_EVENTS eventData[1]; | |
}; | |
#define MPT_MAX_NAME 32 | |
@@ -293,7 +291,6 @@ struct mpt_ioctl_test { | |
typedef struct mpt_ioctl_replace_fw { | |
mpt_ioctl_header hdr; | |
int newImageSize; | |
- u8 newImage[1]; | |
} mpt_ioctl_replace_fw_t; | |
/* General MPT Pass through data strucutre | |
@@ -329,7 +326,6 @@ struct mpt_ioctl_command { | |
int dataOutSize; | |
int maxSenseBytes; | |
int dataSgeOffset; | |
- char MF[1]; | |
}; | |
/* | |
@@ -348,7 +344,6 @@ struct mpt_ioctl_command32 { | |
int dataOutSize; | |
int maxSenseBytes; | |
int dataSgeOffset; | |
- char MF[1]; | |
}; | |
#endif /*}*/ | |
diff -u -p ./arch/x86/include/asm/pci_x86.h /tmp/nothing/arch/x86/include/asm/pci_x86.h | |
--- ./arch/x86/include/asm/pci_x86.h | |
+++ /tmp/nothing/arch/x86/include/asm/pci_x86.h | |
@@ -87,7 +87,6 @@ struct irq_routing_table { | |
u32 miniport_data; /* Crap */ | |
u8 rfu[11]; | |
u8 checksum; /* Modulo 256 checksum must give 0 */ | |
- struct irq_info slots[0]; | |
} __attribute__((packed)); | |
extern unsigned int pcibios_irq_mask; | |
diff -u -p ./include/linux/mailbox/zynqmp-ipi-message.h /tmp/nothing/include/linux/mailbox/zynqmp-ipi-message.h | |
--- ./include/linux/mailbox/zynqmp-ipi-message.h | |
+++ /tmp/nothing/include/linux/mailbox/zynqmp-ipi-message.h | |
@@ -14,7 +14,6 @@ | |
*/ | |
struct zynqmp_ipi_message { | |
size_t len; | |
- u8 data[0]; | |
}; | |
#endif /* _LINUX_ZYNQMP_IPI_MESSAGE_H_ */ | |
diff -u -p ./drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h /tmp/nothing/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h | |
--- ./drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h | |
@@ -73,7 +73,6 @@ struct smu8_register_index_data_pair { | |
struct smu8_ih_meta_data { | |
uint32_t command; | |
- struct smu8_register_index_data_pair register_index_value_pair[1]; | |
}; | |
struct smu8_smumgr { | |
diff -u -p ./drivers/gpu/drm/amd/powerplay/inc/hwmgr.h /tmp/nothing/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |
--- ./drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |
@@ -60,7 +60,6 @@ struct vi_dpm_level { | |
struct vi_dpm_table { | |
uint32_t count; | |
- struct vi_dpm_level dpm_level[1]; | |
}; | |
#define PCIE_PERF_REQ_REMOVE_REGISTRY 0 | |
@@ -91,7 +90,6 @@ struct phm_set_power_state_input { | |
struct phm_clock_array { | |
uint32_t count; | |
- uint32_t values[1]; | |
}; | |
struct phm_clock_voltage_dependency_record { | |
@@ -123,7 +121,6 @@ struct phm_acpclock_voltage_dependency_r | |
struct phm_clock_voltage_dependency_table { | |
uint32_t count; /* Number of entries. */ | |
- struct phm_clock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
struct phm_phase_shedding_limits_record { | |
@@ -140,7 +137,6 @@ struct phm_uvd_clock_voltage_dependency_ | |
struct phm_uvd_clock_voltage_dependency_table { | |
uint8_t count; | |
- struct phm_uvd_clock_voltage_dependency_record entries[1]; | |
}; | |
struct phm_acp_clock_voltage_dependency_record { | |
@@ -150,7 +146,6 @@ struct phm_acp_clock_voltage_dependency_ | |
struct phm_acp_clock_voltage_dependency_table { | |
uint32_t count; | |
- struct phm_acp_clock_voltage_dependency_record entries[1]; | |
}; | |
struct phm_vce_clock_voltage_dependency_record { | |
@@ -161,32 +156,26 @@ struct phm_vce_clock_voltage_dependency_ | |
struct phm_phase_shedding_limits_table { | |
uint32_t count; | |
- struct phm_phase_shedding_limits_record entries[1]; | |
}; | |
struct phm_vceclock_voltage_dependency_table { | |
uint8_t count; /* Number of entries. */ | |
- struct phm_vceclock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
struct phm_uvdclock_voltage_dependency_table { | |
uint8_t count; /* Number of entries. */ | |
- struct phm_uvdclock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
struct phm_samuclock_voltage_dependency_table { | |
uint8_t count; /* Number of entries. */ | |
- struct phm_samuclock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
struct phm_acpclock_voltage_dependency_table { | |
uint32_t count; /* Number of entries. */ | |
- struct phm_acpclock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
struct phm_vce_clock_voltage_dependency_table { | |
uint8_t count; | |
- struct phm_vce_clock_voltage_dependency_record entries[1]; | |
}; | |
@@ -387,7 +376,6 @@ union phm_cac_leakage_record { | |
struct phm_cac_leakage_table { | |
uint32_t count; | |
- union phm_cac_leakage_record entries[1]; | |
}; | |
struct phm_samu_clock_voltage_dependency_record { | |
@@ -398,7 +386,6 @@ struct phm_samu_clock_voltage_dependency | |
struct phm_samu_clock_voltage_dependency_table { | |
uint8_t count; | |
- struct phm_samu_clock_voltage_dependency_record entries[1]; | |
}; | |
struct phm_cac_tdp_table { | |
@@ -508,7 +495,6 @@ struct phm_vq_budgeting_record { | |
struct phm_vq_budgeting_table { | |
uint8_t numEntries; | |
- struct phm_vq_budgeting_record entries[1]; | |
}; | |
struct phm_clock_and_voltage_limits { | |
diff -u -p ./drivers/media/platform/xilinx/xilinx-dma.h /tmp/nothing/drivers/media/platform/xilinx/xilinx-dma.h | |
--- ./drivers/media/platform/xilinx/xilinx-dma.h | |
+++ /tmp/nothing/drivers/media/platform/xilinx/xilinx-dma.h | |
@@ -92,7 +92,6 @@ struct xvip_dma { | |
struct dma_chan *dma; | |
unsigned int align; | |
struct dma_interleaved_template xt; | |
- struct data_chunk sgl[1]; | |
}; | |
#define to_xvip_dma(vdev) container_of(vdev, struct xvip_dma, video) | |
diff -u -p ./drivers/staging/wlan-ng/p80211types.h /tmp/nothing/drivers/staging/wlan-ng/p80211types.h | |
--- ./drivers/staging/wlan-ng/p80211types.h | |
+++ /tmp/nothing/drivers/staging/wlan-ng/p80211types.h | |
@@ -234,7 +234,6 @@ struct p80211pstr32 { | |
/* MAC address array */ | |
struct p80211macarray { | |
u32 cnt; | |
- u8 data[1][MAXLEN_PSTR6]; | |
} __packed; | |
/* prototype template */ | |
diff -u -p ./drivers/net/ethernet/sfc/bitfield.h /tmp/nothing/drivers/net/ethernet/sfc/bitfield.h | |
--- ./drivers/net/ethernet/sfc/bitfield.h | |
+++ /tmp/nothing/drivers/net/ethernet/sfc/bitfield.h | |
@@ -72,7 +72,6 @@ | |
/* A doubleword (i.e. 4 byte) datatype - little-endian in HW */ | |
typedef union efx_dword { | |
- __le32 u32[1]; | |
} efx_dword_t; | |
/* A quadword (i.e. 8 byte) datatype - little-endian in HW */ | |
diff -u -p ./drivers/net/wireless/ath/ath6kl/wmi.h /tmp/nothing/drivers/net/wireless/ath/ath6kl/wmi.h | |
--- ./drivers/net/wireless/ath/ath6kl/wmi.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath6kl/wmi.h | |
@@ -863,7 +863,6 @@ struct wmi_begin_scan_cmd { | |
u8 num_ch; | |
/* channels in Mhz */ | |
- __le16 ch_list[1]; | |
} __packed; | |
/* wmi_start_scan_cmd is to be deprecated. Use | |
@@ -889,7 +888,6 @@ struct wmi_start_scan_cmd { | |
u8 num_ch; | |
/* channels in Mhz */ | |
- __le16 ch_list[1]; | |
} __packed; | |
/* | |
@@ -1373,7 +1371,6 @@ struct wmi_channel_list_reply { | |
u8 num_ch; | |
/* channel in Mhz */ | |
- __le16 ch_list[1]; | |
} __packed; | |
/* List of Events (target to host) */ | |
@@ -1545,7 +1542,6 @@ struct wmi_connect_event { | |
u8 beacon_ie_len; | |
u8 assoc_req_len; | |
u8 assoc_resp_len; | |
- u8 assoc_info[1]; | |
} __packed; | |
/* Disconnect Event */ | |
@@ -1596,7 +1592,6 @@ struct wmi_disconnect_event { | |
u8 disconn_reason; | |
u8 assoc_resp_len; | |
- u8 assoc_info[1]; | |
} __packed; | |
/* | |
@@ -1637,7 +1632,6 @@ struct bss_bias { | |
struct bss_bias_info { | |
u8 num_bss; | |
- struct bss_bias bss_bias[0]; | |
} __packed; | |
struct low_rssi_scan_params { | |
@@ -1645,7 +1639,6 @@ struct low_rssi_scan_params { | |
a_sle16 lrssi_scan_threshold; | |
a_sle16 lrssi_roam_threshold; | |
u8 roam_rssi_floor; | |
- u8 reserved[1]; | |
} __packed; | |
struct roam_ctrl_cmd { | |
@@ -1720,7 +1713,6 @@ struct wmi_neighbor_info { | |
struct wmi_neighbor_report_event { | |
u8 num_neighbors; | |
- struct wmi_neighbor_info neighbor[0]; | |
} __packed; | |
/* TKIP MIC Error Event */ | |
@@ -1957,7 +1949,6 @@ union wmi_ap_info { | |
struct wmi_aplist_event { | |
u8 ap_list_ver; | |
u8 num_ap; | |
- union wmi_ap_info ap_list[1]; | |
} __packed; | |
/* Developer Commands */ | |
@@ -2051,7 +2042,6 @@ struct wmi_get_keepalive_cmd { | |
struct wmi_set_appie_cmd { | |
u8 mgmt_frm_type; /* enum wmi_mgmt_frame_type */ | |
u8 ie_len; | |
- u8 ie_info[0]; | |
} __packed; | |
struct wmi_set_ie_cmd { | |
@@ -2059,7 +2049,6 @@ struct wmi_set_ie_cmd { | |
u8 ie_field; /* enum wmi_ie_field_type */ | |
u8 ie_len; | |
u8 reserved; | |
- u8 ie_info[0]; | |
} __packed; | |
/* Notify the WSC registration status to the target */ | |
@@ -2127,7 +2116,6 @@ struct wmi_add_wow_pattern_cmd { | |
u8 filter_list_id; | |
u8 filter_size; | |
u8 filter_offset; | |
- u8 filter[0]; | |
} __packed; | |
struct wmi_del_wow_pattern_cmd { | |
@@ -2158,7 +2146,6 @@ struct wmi_pmkid { | |
struct wmi_pmkid_list_reply { | |
__le32 num_pmkid; | |
u8 bssid_list[ETH_ALEN][1]; | |
- struct wmi_pmkid pmkid_list[1]; | |
} __packed; | |
/* WMI_ADDBA_REQ_EVENTID */ | |
@@ -2295,7 +2282,6 @@ struct wmi_rx_frame_format_cmd { | |
u8 defrag_on_host; | |
/* for alignment */ | |
- u8 reserved[1]; | |
} __packed; | |
struct wmi_ap_hidden_ssid_cmd { | |
@@ -2360,7 +2346,6 @@ struct wmi_send_action_cmd { | |
__le32 freq; | |
__le32 wait; | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
struct wmi_send_mgmt_cmd { | |
@@ -2369,7 +2354,6 @@ struct wmi_send_mgmt_cmd { | |
__le32 wait; | |
__le32 no_cck; | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
struct wmi_tx_status_event { | |
@@ -2389,7 +2373,6 @@ struct wmi_set_appie_extended_cmd { | |
u8 role_id; | |
u8 mgmt_frm_type; | |
u8 ie_len; | |
- u8 ie_info[0]; | |
} __packed; | |
struct wmi_remain_on_chnl_event { | |
@@ -2406,18 +2389,15 @@ struct wmi_cancel_remain_on_chnl_event { | |
struct wmi_rx_action_event { | |
__le32 freq; | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
struct wmi_p2p_capabilities_event { | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
struct wmi_p2p_rx_probe_req_event { | |
__le32 freq; | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
#define P2P_FLAG_CAPABILITIES_REQ (0x00000001) | |
@@ -2431,7 +2411,6 @@ struct wmi_get_p2p_info { | |
struct wmi_p2p_info_event { | |
__le32 info_req_flags; | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
struct wmi_p2p_capabilities { | |
@@ -2450,7 +2429,6 @@ struct wmi_p2p_probe_response_cmd { | |
__le32 freq; | |
u8 destination_addr[ETH_ALEN]; | |
__le16 len; | |
- u8 data[0]; | |
} __packed; | |
/* Extended WMI (WMIX) | |
diff -u -p ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h | |
--- ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h | |
+++ /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h | |
@@ -279,7 +279,6 @@ struct brcmf_pkt_filter_pattern_le { | |
* Variable length mask and pattern data. mask starts at offset 0. | |
* Pattern immediately follows mask. | |
*/ | |
- u8 mask_and_pattern[1]; | |
}; | |
/* IOVAR "pkt_filter_add" parameter. Used to install packet filters. */ | |
@@ -383,7 +382,6 @@ struct brcmf_scan_params_le { | |
* fixed parameter portion is assumed, otherwise | |
* ssid in the fixed portion is ignored | |
*/ | |
- __le16 channel_list[1]; /* list of chanspecs */ | |
}; | |
struct brcmf_scan_results { | |
@@ -419,7 +417,6 @@ struct brcmf_assoc_params_le { | |
* chanspec_list */ | |
__le32 chanspec_num; | |
/* list of chanspecs */ | |
- __le16 chanspec_list[1]; | |
}; | |
/** | |
@@ -640,7 +637,6 @@ struct brcmf_sta_info_le { | |
struct brcmf_chanspec_list { | |
__le32 count; /* # of entries */ | |
- __le32 element[1]; /* variable length uint32 list */ | |
}; | |
/* | |
@@ -915,7 +911,6 @@ struct brcmf_dload_data_le { | |
__le16 dload_type; | |
__le32 len; | |
__le32 crc; | |
- u8 data[1]; | |
}; | |
/** | |
@@ -1021,7 +1016,6 @@ struct brcmf_gscan_config { | |
u8 count_of_channel_buckets; | |
u8 retry_threshold; | |
__le16 lost_ap_window; | |
- struct brcmf_gscan_bucket_config bucket[1]; | |
}; | |
#endif /* FWIL_TYPES_H_ */ | |
diff -u -p ./drivers/net/wireless/ti/wlcore/acx.h /tmp/nothing/drivers/net/wireless/ti/wlcore/acx.h | |
--- ./drivers/net/wireless/ti/wlcore/acx.h | |
+++ /tmp/nothing/drivers/net/wireless/ti/wlcore/acx.h | |
@@ -223,7 +223,6 @@ struct acx_beacon_filter_option { | |
* without the unicast TIM bit set are dropped. | |
*/ | |
u8 max_num_beacons; | |
- u8 pad[1]; | |
} __packed; | |
/* | |
@@ -321,7 +320,6 @@ struct acx_beacon_broadcast { | |
/* Consecutive PS Poll failures before updating the host */ | |
u8 ps_poll_threshold; | |
- u8 pad[1]; | |
} __packed; | |
struct acx_event_mask { | |
@@ -363,7 +361,6 @@ struct acx_wake_up_condition { | |
u8 role_id; | |
u8 wake_up_event; /* Only one bit can be set */ | |
u8 listen_interval; | |
- u8 pad[1]; | |
} __packed; | |
struct acx_aid { | |
@@ -532,7 +529,6 @@ struct wl1271_acx_bet_enable { | |
u8 role_id; | |
u8 enable; | |
u8 max_consecutive; | |
- u8 padding[1]; | |
} __packed; | |
#define ACX_IPV4_VERSION 4 | |
@@ -638,7 +634,6 @@ struct wl1271_acx_rssi_snr_trigger { | |
u8 hysteresis; | |
u8 index; | |
u8 enable; | |
- u8 padding[1]; | |
}; | |
struct wl1271_acx_rssi_snr_avg_weights { | |
diff -u -p ./drivers/scsi/bnx2i/bnx2i.h /tmp/nothing/drivers/scsi/bnx2i/bnx2i.h | |
--- ./drivers/scsi/bnx2i/bnx2i.h | |
+++ /tmp/nothing/drivers/scsi/bnx2i/bnx2i.h | |
@@ -223,7 +223,6 @@ struct bd_resc_page { | |
struct list_head link; | |
u32 max_ptrs; | |
u32 num_valid; | |
- void *page[1]; | |
}; | |
diff -u -p ./arch/sparc/kernel/ds.c /tmp/nothing/arch/sparc/kernel/ds.c | |
--- ./arch/sparc/kernel/ds.c | |
+++ /tmp/nothing/arch/sparc/kernel/ds.c | |
@@ -313,7 +313,6 @@ struct ds_shutdown_req { | |
struct ds_shutdown_res { | |
__u64 req_num; | |
__u32 result; | |
- char reason[1]; | |
}; | |
static void domain_shutdown_data(struct ds_info *dp, | |
@@ -353,7 +352,6 @@ struct ds_panic_req { | |
struct ds_panic_res { | |
__u64 req_num; | |
__u32 result; | |
- char reason[1]; | |
}; | |
static void domain_panic_data(struct ds_info *dp, | |
diff -u -p ./include/xen/interface/io/sndif.h /tmp/nothing/include/xen/interface/io/sndif.h | |
--- ./include/xen/interface/io/sndif.h | |
+++ /tmp/nothing/include/xen/interface/io/sndif.h | |
@@ -676,7 +676,6 @@ struct xensnd_open_req { | |
struct xensnd_page_directory { | |
grant_ref_t gref_dir_next_page; | |
- grant_ref_t gref[1]; /* Variable length */ | |
}; | |
/* | |
diff -u -p ./include/linux/i3c/ccc.h /tmp/nothing/include/linux/i3c/ccc.h | |
--- ./include/linux/i3c/ccc.h | |
+++ /tmp/nothing/include/linux/i3c/ccc.h | |
@@ -132,7 +132,6 @@ struct i3c_ccc_dev_desc { | |
struct i3c_ccc_defslvs { | |
u8 count; | |
struct i3c_ccc_dev_desc master; | |
- struct i3c_ccc_dev_desc slaves[0]; | |
} __packed; | |
/** | |
@@ -240,7 +239,6 @@ struct i3c_ccc_bridged_slave_desc { | |
*/ | |
struct i3c_ccc_setbrgtgt { | |
u8 count; | |
- struct i3c_ccc_bridged_slave_desc bslaves[0]; | |
} __packed; | |
/** | |
@@ -318,7 +316,6 @@ enum i3c_ccc_setxtime_subcmd { | |
*/ | |
struct i3c_ccc_setxtime { | |
u8 subcmd; | |
- u8 data[0]; | |
} __packed; | |
#define I3C_CCC_GETXTIME_SYNC_MODE BIT(0) | |
diff -u -p ./drivers/staging/media/atomisp/pci/atomisp_tpg.h /tmp/nothing/drivers/staging/media/atomisp/pci/atomisp_tpg.h | |
--- ./drivers/staging/media/atomisp/pci/atomisp_tpg.h | |
+++ /tmp/nothing/drivers/staging/media/atomisp/pci/atomisp_tpg.h | |
@@ -27,7 +27,6 @@ | |
struct atomisp_tpg_device { | |
struct v4l2_subdev sd; | |
struct atomisp_device *isp; | |
- struct media_pad pads[1]; | |
}; | |
void atomisp_tpg_cleanup(struct atomisp_device *isp); | |
diff -u -p ./drivers/scsi/sym53c8xx_2/sym_fw1.h /tmp/nothing/drivers/scsi/sym53c8xx_2/sym_fw1.h | |
--- ./drivers/scsi/sym53c8xx_2/sym_fw1.h | |
+++ /tmp/nothing/drivers/scsi/sym53c8xx_2/sym_fw1.h | |
@@ -192,7 +192,6 @@ struct SYM_FWB_SCR { | |
u32 done_pos [ 1]; | |
u32 nextjob [ 1]; | |
u32 startpos [ 1]; | |
- u32 targtbl [ 1]; | |
}; | |
/* | |
diff -u -p ./drivers/scsi/3w-9xxx.h /tmp/nothing/drivers/scsi/3w-9xxx.h | |
--- ./drivers/scsi/3w-9xxx.h | |
+++ /tmp/nothing/drivers/scsi/3w-9xxx.h | |
@@ -588,7 +588,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; | |
/* Lock structure for ioctl get/release lock */ | |
diff -u -p ./arch/s390/include/asm/eadm.h /tmp/nothing/arch/s390/include/asm/eadm.h | |
--- ./arch/s390/include/asm/eadm.h | |
+++ /tmp/nothing/arch/s390/include/asm/eadm.h | |
@@ -78,7 +78,6 @@ struct aob { | |
struct aob_rq_header { | |
struct scm_device *scmdev; | |
- char data[0]; | |
}; | |
struct scm_device { | |
diff -u -p ./arch/mips/include/asm/ptrace.h /tmp/nothing/arch/mips/include/asm/ptrace.h | |
--- ./arch/mips/include/asm/ptrace.h | |
+++ /tmp/nothing/arch/mips/include/asm/ptrace.h | |
@@ -48,7 +48,6 @@ struct pt_regs { | |
unsigned long long mpl[6]; /* MTM{0-5} */ | |
unsigned long long mtp[6]; /* MTP{0-5} */ | |
#endif | |
- unsigned long __last[0]; | |
} __aligned(8); | |
static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) | |
diff -u -p ./arch/ia64/include/asm/sal.h /tmp/nothing/arch/ia64/include/asm/sal.h | |
--- ./arch/ia64/include/asm/sal.h | |
+++ /tmp/nothing/arch/ia64/include/asm/sal.h | |
@@ -420,7 +420,6 @@ typedef struct sal_log_processor_info { | |
* The rest of this structure consists of variable-length arrays, which can't be | |
* expressed in C. | |
*/ | |
- sal_log_mod_error_info_t info[0]; | |
/* | |
* This is what the rest looked like if C supported variable-length arrays: | |
* | |
@@ -484,7 +483,6 @@ typedef struct sal_log_mem_dev_err_info | |
u64 target_id; | |
u64 bus_spec_data; | |
u8 oem_id[16]; | |
- u8 oem_data[1]; /* Variable length data */ | |
} sal_log_mem_dev_err_info_t; | |
typedef struct sal_log_sel_dev_err_info { | |
@@ -540,7 +538,6 @@ typedef struct sal_log_pci_bus_err_info | |
u64 requestor_id; | |
u64 responder_id; | |
u64 target_id; | |
- u8 oem_data[1]; /* Variable length data */ | |
} sal_log_pci_bus_err_info_t; | |
typedef struct sal_log_smbios_dev_err_info { | |
@@ -555,7 +552,6 @@ typedef struct sal_log_smbios_dev_err_in | |
u8 event_type; | |
u8 length; | |
u8 time_stamp[6]; | |
- u8 data[1]; /* data of variable length, length == slsmb_length */ | |
} sal_log_smbios_dev_err_info_t; | |
typedef struct sal_log_pci_comp_err_info { | |
@@ -588,7 +584,6 @@ typedef struct sal_log_pci_comp_err_info | |
* long. Each array element consists of a u64 address followed by a u64 data | |
* value. The oem_data array immediately follows the reg_data_pairs array | |
*/ | |
- u8 oem_data[1]; /* Variable length data */ | |
} sal_log_pci_comp_err_info_t; | |
typedef struct sal_log_plat_specific_err_info { | |
@@ -601,7 +596,6 @@ typedef struct sal_log_plat_specific_err | |
} valid; | |
u64 err_status; | |
efi_guid_t guid; | |
- u8 oem_data[1]; /* platform specific variable length data */ | |
} sal_log_plat_specific_err_info_t; | |
typedef struct sal_log_host_ctlr_err_info { | |
@@ -620,7 +614,6 @@ typedef struct sal_log_host_ctlr_err_inf | |
u64 responder_id; | |
u64 target_id; | |
u64 bus_spec_data; | |
- u8 oem_data[1]; /* Variable length OEM data */ | |
} sal_log_host_ctlr_err_info_t; | |
typedef struct sal_log_plat_bus_err_info { | |
@@ -639,7 +632,6 @@ typedef struct sal_log_plat_bus_err_info | |
u64 responder_id; | |
u64 target_id; | |
u64 bus_spec_data; | |
- u8 oem_data[1]; /* Variable length OEM data */ | |
} sal_log_plat_bus_err_info_t; | |
/* Overall platform error section structure */ | |
diff -u -p ./fs/affs/amigaffs.h /tmp/nothing/fs/affs/amigaffs.h | |
--- ./fs/affs/amigaffs.h | |
+++ /tmp/nothing/fs/affs/amigaffs.h | |
@@ -54,7 +54,6 @@ struct affs_root_head { | |
__be32 hash_size; | |
__be32 spare3; | |
__be32 checksum; | |
- __be32 hashtable[1]; | |
}; | |
struct affs_root_tail { | |
@@ -80,7 +79,6 @@ struct affs_head { | |
__be32 spare1; | |
__be32 first_data; | |
__be32 checksum; | |
- __be32 table[1]; | |
}; | |
struct affs_tail { | |
@@ -108,7 +106,6 @@ struct slink_front | |
__be32 key; | |
__be32 spare1[3]; | |
__be32 checksum; | |
- u8 symname[1]; /* depends on block size */ | |
}; | |
struct affs_data_head | |
@@ -119,7 +116,6 @@ struct affs_data_head | |
__be32 size; | |
__be32 next; | |
__be32 checksum; | |
- u8 data[1]; /* depends on block size */ | |
}; | |
/* Permission bits */ | |
diff -u -p ./fs/cifs/cifs_spnego.h /tmp/nothing/fs/cifs/cifs_spnego.h | |
--- ./fs/cifs/cifs_spnego.h | |
+++ /tmp/nothing/fs/cifs/cifs_spnego.h | |
@@ -36,7 +36,6 @@ struct cifs_spnego_msg { | |
uint32_t flags; | |
uint32_t sesskey_len; | |
uint32_t secblob_len; | |
- uint8_t data[1]; | |
}; | |
#ifdef __KERNEL__ | |
diff -u -p ./include/linux/greybus/greybus_protocols.h /tmp/nothing/include/linux/greybus/greybus_protocols.h | |
--- ./include/linux/greybus/greybus_protocols.h | |
+++ /tmp/nothing/include/linux/greybus/greybus_protocols.h | |
@@ -112,7 +112,6 @@ struct gb_control_get_manifest_size_resp | |
/* Control protocol manifest get request has no payload */ | |
struct gb_control_get_manifest_response { | |
- __u8 data[0]; | |
} __packed; | |
/* Control protocol [dis]connected request */ | |
@@ -233,7 +232,6 @@ struct gb_fw_download_fetch_firmware_req | |
} __packed; | |
struct gb_fw_download_fetch_firmware_response { | |
- __u8 data[0]; | |
} __packed; | |
/* firmware download release firmware request */ | |
@@ -415,7 +413,6 @@ struct gb_bootrom_get_firmware_request { | |
} __packed; | |
struct gb_bootrom_get_firmware_response { | |
- __u8 data[0]; | |
} __packed; | |
/* Bootrom protocol Ready to boot request */ | |
@@ -647,7 +644,6 @@ struct gb_hid_set_report_request { | |
/* HID input report request, via interrupt pipe */ | |
struct gb_hid_input_report_request { | |
- __u8 report[0]; | |
} __packed; | |
@@ -683,7 +679,6 @@ struct gb_i2c_transfer_request { | |
struct gb_i2c_transfer_op ops[]; /* op_count of these */ | |
} __packed; | |
struct gb_i2c_transfer_response { | |
- __u8 data[0]; /* inbound data */ | |
} __packed; | |
@@ -912,7 +907,6 @@ struct gb_spi_transfer_request { | |
} __packed; | |
struct gb_spi_transfer_response { | |
- __u8 data[0]; /* inbound data */ | |
} __packed; | |
/* Version of the Greybus SVC protocol we support */ | |
diff -u -p ./drivers/gpu/drm/amd/include/atombios.h /tmp/nothing/drivers/gpu/drm/amd/include/atombios.h | |
--- ./drivers/gpu/drm/amd/include/atombios.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/include/atombios.h | |
@@ -4107,7 +4107,6 @@ typedef struct _ATOM_FAKE_EDID_PATCH_REC | |
{ | |
UCHAR ucRecordType; | |
UCHAR ucFakeEDIDLength; // = 128 means EDID length is 128 bytes, otherwise the EDID length = ucFakeEDIDLength*128 | |
- UCHAR ucFakeEDIDString[1]; // This actually has ucFakeEdidLength elements. | |
} ATOM_FAKE_EDID_PATCH_RECORD; | |
typedef struct _ATOM_PANEL_RESOLUTION_PATCH_RECORD | |
@@ -4386,7 +4385,6 @@ typedef struct _ATOM_GPIO_PIN_ASSIGNMENT | |
typedef struct _ATOM_GPIO_PIN_LUT | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_GPIO_PIN_ASSIGNMENT asGPIO_Pin[1]; | |
}ATOM_GPIO_PIN_LUT; | |
/****************************************************************************/ | |
@@ -4513,7 +4511,6 @@ typedef struct _ATOM_DISPLAY_OBJECT_PAT | |
USHORT usSize; //the size of ATOM_DISPLAY_OBJECT_PATH | |
USHORT usConnObjectId; //Connector Object ID | |
USHORT usGPUObjectId; //GPU ID | |
- USHORT usGraphicObjIds[1]; //1st Encoder Obj source from GPU to last Graphic Obj destinate to connector. | |
}ATOM_DISPLAY_OBJECT_PATH; | |
typedef struct _ATOM_DISPLAY_EXTERNAL_OBJECT_PATH | |
@@ -4530,7 +4527,6 @@ typedef struct _ATOM_DISPLAY_OBJECT_PATH | |
UCHAR ucNumOfDispPath; | |
UCHAR ucVersion; | |
UCHAR ucPadding[2]; | |
- ATOM_DISPLAY_OBJECT_PATH asDispPath[1]; | |
}ATOM_DISPLAY_OBJECT_PATH_TABLE; | |
typedef struct _ATOM_OBJECT //each object has this structure | |
@@ -4545,7 +4541,6 @@ typedef struct _ATOM_OBJECT_TABLE | |
{ | |
UCHAR ucNumberOfObjects; | |
UCHAR ucPadding[3]; | |
- ATOM_OBJECT asObjects[1]; | |
}ATOM_OBJECT_TABLE; | |
typedef struct _ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT //usSrcDstTableOffset pointing to this structure | |
@@ -4553,7 +4548,6 @@ typedef struct _ATOM_SRC_DST_TABLE_FOR_O | |
UCHAR ucNumberOfSrc; | |
USHORT usSrcObjectID[1]; | |
UCHAR ucNumberOfDst; | |
- USHORT usDstObjectID[1]; | |
}ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT; | |
@@ -4733,7 +4727,6 @@ typedef struct _ATOM_CONNECTOR_DEVICE_T | |
ATOM_COMMON_RECORD_HEADER sheader; | |
UCHAR ucNumberOfDevice; | |
UCHAR ucReserved; | |
- ATOM_CONNECTOR_DEVICE_TAG asDeviceTag[1]; //This Id is same as "ATOM_DEVICE_XXX_SUPPORT", 1 is only for allocation | |
}ATOM_CONNECTOR_DEVICE_TAG_RECORD; | |
@@ -4793,7 +4786,6 @@ typedef struct _ATOM_OBJECT_GPIO_CNTL_R | |
ATOM_COMMON_RECORD_HEADER sheader; | |
UCHAR ucFlags; // Future expnadibility | |
UCHAR ucNumberOfPins; // Number of GPIO pins used to control the object | |
- ATOM_GPIO_PIN_CONTROL_PAIR asGpio[1]; // the real gpio pin pair determined by number of pins ucNumberOfPins | |
}ATOM_OBJECT_GPIO_CNTL_RECORD; | |
//Definitions for GPIO pin state | |
@@ -4982,7 +4974,6 @@ typedef struct _ATOM_BRACKET_LAYOUT_REC | |
UCHAR ucWidth; | |
UCHAR ucConnNum; | |
UCHAR ucReserved; | |
- ATOM_CONNECTOR_LAYOUT_INFO asConnInfo[1]; | |
}ATOM_BRACKET_LAYOUT_RECORD; | |
@@ -5146,7 +5137,6 @@ typedef struct _ATOM_I2C_VOLTAGE_OBJECT | |
UCHAR ucVoltageControlOffset; | |
UCHAR ucVoltageControlFlag; // Bit0: 0 - One byte data; 1 - Two byte data | |
UCHAR ulReserved[3]; | |
- VOLTAGE_LUT_ENTRY asVolI2cLut[1]; // end with 0xff | |
}ATOM_I2C_VOLTAGE_OBJECT_V3; | |
// ATOM_I2C_VOLTAGE_OBJECT_V3.ucVoltageControlFlag | |
@@ -5161,7 +5151,6 @@ typedef struct _ATOM_GPIO_VOLTAGE_OBJEC | |
UCHAR ucPhaseDelay; // phase delay in unit of micro second | |
UCHAR ucReserved; | |
ULONG ulGpioMaskVal; // GPIO Mask value | |
- VOLTAGE_LUT_ENTRY_V2 asVolGpioLut[1]; | |
}ATOM_GPIO_VOLTAGE_OBJECT_V3; | |
typedef struct _ATOM_LEAKAGE_VOLTAGE_OBJECT_V3 | |
@@ -5171,7 +5160,6 @@ typedef struct _ATOM_LEAKAGE_VOLTAGE_OB | |
UCHAR ucLeakageEntryNum; // indicate the entry number of LeakageId/Voltage Lut table | |
UCHAR ucReserved[2]; | |
ULONG ulMaxVoltageLevel; | |
- LEAKAGE_VOLTAGE_LUT_ENTRY_V2 asLeakageIdLut[1]; | |
}ATOM_LEAKAGE_VOLTAGE_OBJECT_V3; | |
@@ -5673,7 +5661,6 @@ typedef struct _ATOM_POWER_SOURCE_INFO | |
{ | |
ATOM_COMMON_TABLE_HEADER asHeader; | |
UCHAR asPwrbehave[16]; | |
- ATOM_POWER_SOURCE_OBJECT asPwrObj[1]; | |
}ATOM_POWER_SOURCE_INFO; | |
@@ -6581,7 +6568,6 @@ typedef struct _ATOM_FUSION_SYSTEM_INFO_ | |
typedef struct _ATOM_I2C_DATA_RECORD | |
{ | |
UCHAR ucNunberOfBytes; //Indicates how many bytes SW needs to write to the external ASIC for one block, besides to "Start" and "Stop" | |
- UCHAR ucI2CData[1]; //I2C data in bytes, should be less than 16 bytes usually | |
}ATOM_I2C_DATA_RECORD; | |
@@ -6592,14 +6578,12 @@ typedef struct _ATOM_I2C_DEVICE_SETUP_IN | |
UCHAR ucSSChipID; //SS chip being used | |
UCHAR ucSSChipSlaveAddr; //Slave Address to set up this SS chip | |
UCHAR ucNumOfI2CDataRecords; //number of data block | |
- ATOM_I2C_DATA_RECORD asI2CData[1]; | |
}ATOM_I2C_DEVICE_SETUP_INFO; | |
//========================================================================================== | |
typedef struct _ATOM_ASIC_MVDD_INFO | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_I2C_DEVICE_SETUP_INFO asI2CSetup[1]; | |
}ATOM_ASIC_MVDD_INFO; | |
//========================================================================================== | |
@@ -6661,7 +6645,6 @@ typedef struct _ATOM_ASIC_INTERNAL_SS_IN | |
typedef struct _ATOM_ASIC_INTERNAL_SS_INFO_V2 | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_ASIC_SS_ASSIGNMENT_V2 asSpreadSpectrum[1]; //this is point only. | |
}ATOM_ASIC_INTERNAL_SS_INFO_V2; | |
typedef struct _ATOM_ASIC_SS_ASSIGNMENT_V3 | |
@@ -6683,7 +6666,6 @@ typedef struct _ATOM_ASIC_SS_ASSIGNMENT_ | |
typedef struct _ATOM_ASIC_INTERNAL_SS_INFO_V3 | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_ASIC_SS_ASSIGNMENT_V3 asSpreadSpectrum[1]; //this is pointer only. | |
}ATOM_ASIC_INTERNAL_SS_INFO_V3; | |
@@ -7176,7 +7158,6 @@ typedef struct _ENABLE_SCALER_PARAMETERS | |
UCHAR ucScaler; // ATOM_SCALER1, ATOM_SCALER2 | |
UCHAR ucEnable; // ATOM_SCALER_DISABLE or ATOM_SCALER_CENTER or ATOM_SCALER_EXPANSION | |
UCHAR ucTVStandard; // | |
- UCHAR ucPadding[1]; | |
}ENABLE_SCALER_PARAMETERS; | |
#define ENABLE_SCALER_PS_ALLOCATION ENABLE_SCALER_PARAMETERS | |
@@ -7447,7 +7428,6 @@ typedef union _ATOM_MEMORY_SETTING_ID_CO | |
typedef struct _ATOM_MEMORY_SETTING_DATA_BLOCK{ | |
ATOM_MEMORY_SETTING_ID_CONFIG_ACCESS ulMemoryID; | |
- ULONG aulMemData[1]; | |
}ATOM_MEMORY_SETTING_DATA_BLOCK; | |
@@ -7461,7 +7441,6 @@ typedef struct _ATOM_INIT_REG_BLOCK{ | |
USHORT usRegIndexTblSize; //size of asRegIndexBuf | |
USHORT usRegDataBlkSize; //size of ATOM_MEMORY_SETTING_DATA_BLOCK | |
ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1]; | |
- ATOM_MEMORY_SETTING_DATA_BLOCK asRegDataBuf[1]; | |
}ATOM_INIT_REG_BLOCK; | |
#define END_OF_REG_INDEX_BLOCK 0x0ffff | |
@@ -8311,7 +8290,6 @@ typedef struct _ATOM_DISP_OUT_INFO | |
USHORT ptrTransmitterInfo; | |
USHORT ptrEncoderInfo; | |
ASIC_TRANSMITTER_INFO asTransmitterInfo[1]; | |
- ASIC_ENCODER_INFO asEncoderInfo[1]; | |
}ATOM_DISP_OUT_INFO; | |
@@ -8322,7 +8300,6 @@ typedef struct _ATOM_DISP_OUT_INFO_V2 | |
USHORT ptrEncoderInfo; | |
USHORT ptrMainCallParserFar; // direct address of main parser call in VBIOS binary. | |
ASIC_TRANSMITTER_INFO asTransmitterInfo[1]; | |
- ASIC_ENCODER_INFO asEncoderInfo[1]; | |
}ATOM_DISP_OUT_INFO_V2; | |
@@ -8363,7 +8340,6 @@ typedef struct _ATOM_DISP_OUT_INFO_V3 | |
UCHAR ucCoreRefClkSource; // value of CORE_REF_CLK_SOURCE | |
UCHAR ucDispCaps; | |
UCHAR ucReserved[2]; | |
- ASIC_TRANSMITTER_INFO_V2 asTransmitterInfo[1]; // for alligment only | |
}ATOM_DISP_OUT_INFO_V3; | |
//ucDispCaps | |
@@ -8599,12 +8575,10 @@ typedef struct _CLOCK_CONDITION_SETTING_ | |
USHORT usMaxClockFreq; | |
UCHAR ucEncodeMode; | |
UCHAR ucPhySel; | |
- ULONG ulAnalogSetting[1]; | |
}CLOCK_CONDITION_SETTING_ENTRY; | |
typedef struct _CLOCK_CONDITION_SETTING_INFO{ | |
USHORT usEntrySize; | |
- CLOCK_CONDITION_SETTING_ENTRY asClkCondSettingEntry[1]; | |
}CLOCK_CONDITION_SETTING_INFO; | |
typedef struct _PHY_CONDITION_REG_VAL{ | |
@@ -8621,27 +8595,23 @@ typedef struct _PHY_CONDITION_REG_VAL_V2 | |
typedef struct _PHY_CONDITION_REG_INFO{ | |
USHORT usRegIndex; | |
USHORT usSize; | |
- PHY_CONDITION_REG_VAL asRegVal[1]; | |
}PHY_CONDITION_REG_INFO; | |
typedef struct _PHY_CONDITION_REG_INFO_V2{ | |
USHORT usRegIndex; | |
USHORT usSize; | |
- PHY_CONDITION_REG_VAL_V2 asRegVal[1]; | |
}PHY_CONDITION_REG_INFO_V2; | |
typedef struct _PHY_ANALOG_SETTING_INFO{ | |
UCHAR ucEncodeMode; | |
UCHAR ucPhySel; | |
USHORT usSize; | |
- PHY_CONDITION_REG_INFO asAnalogSetting[1]; | |
}PHY_ANALOG_SETTING_INFO; | |
typedef struct _PHY_ANALOG_SETTING_INFO_V2{ | |
UCHAR ucEncodeMode; | |
UCHAR ucPhySel; | |
USHORT usSize; | |
- PHY_CONDITION_REG_INFO_V2 asAnalogSetting[1]; | |
}PHY_ANALOG_SETTING_INFO_V2; | |
@@ -8855,13 +8825,11 @@ typedef struct _ATOM_TMDS_INFO | |
typedef struct _ATOM_ENCODER_ANALOG_ATTRIBUTE | |
{ | |
UCHAR ucTVStandard; //Same as TV standards defined above, | |
- UCHAR ucPadding[1]; | |
}ATOM_ENCODER_ANALOG_ATTRIBUTE; | |
typedef struct _ATOM_ENCODER_DIGITAL_ATTRIBUTE | |
{ | |
UCHAR ucAttribute; //Same as other digital encoder attributes defined above | |
- UCHAR ucPadding[1]; | |
}ATOM_ENCODER_DIGITAL_ATTRIBUTE; | |
typedef union _ATOM_ENCODER_ATTRIBUTE | |
@@ -9214,7 +9182,6 @@ typedef struct _ATOM_SERVICE_INFO | |
ATOM_COMMON_TABLE_HEADER asHeader; | |
ATOM_SERVICE_DESCRIPTION asDescr; | |
UCHAR ucholesNo; // number of holes that follow | |
- ATOM_HOLE_INFO holes[1]; // array of hole descriptions | |
}ATOM_SERVICE_INFO; | |
diff -u -p ./drivers/net/wireless/intersil/p54/lmac.h /tmp/nothing/drivers/net/wireless/intersil/p54/lmac.h | |
--- ./drivers/net/wireless/intersil/p54/lmac.h | |
+++ /tmp/nothing/drivers/net/wireless/intersil/p54/lmac.h | |
@@ -476,7 +476,6 @@ struct p54_psm { | |
u8 beacon_rssi_skip_max; | |
u8 rssi_delta_threshold; | |
u8 nr; | |
- u8 exclude[1]; | |
} __packed; | |
#define MC_FILTER_ADDRESS_NUM 4 | |
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/tdls.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/tdls.h | |
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/tdls.h | |
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/tdls.h | |
@@ -190,7 +190,6 @@ struct iwl_tdls_config_cmd { | |
__le32 pti_req_data_offset; | |
struct iwl_tx_cmd pti_req_tx_cmd; | |
- u8 pti_req_template[0]; | |
} __packed; /* TDLS_CONFIG_CMD_API_S_VER_1 */ | |
/** | |
diff -u -p ./drivers/net/wireless/ath/wcn36xx/hal.h /tmp/nothing/drivers/net/wireless/ath/wcn36xx/hal.h | |
--- ./drivers/net/wireless/ath/wcn36xx/hal.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/wcn36xx/hal.h | |
@@ -3238,7 +3238,6 @@ struct wcn36xx_hal_rem_bcn_filter_req { | |
struct wcn36xx_hal_msg_header header; | |
u8 ie_Count; | |
- u8 rem_ie_id[1]; | |
}; | |
#define WCN36XX_HAL_IPV4_ARP_REPLY_OFFLOAD 0 | |
@@ -4370,7 +4369,6 @@ struct wcn36xx_hal_sessionized_rcv_pkt_f | |
u8 params_count; | |
u32 coleasce_time; | |
u8 bss_index; | |
- struct wcn36xx_hal_rcv_pkt_filter_params params[1]; | |
}; | |
struct wcn36xx_hal_set_rcv_pkt_filter_req_msg { | |
@@ -4380,7 +4378,6 @@ struct wcn36xx_hal_set_rcv_pkt_filter_re | |
u8 type; | |
u8 params_count; | |
u32 coalesce_time; | |
- struct wcn36xx_hal_rcv_pkt_filter_params params[1]; | |
}; | |
struct wcn36xx_hal_rcv_flt_mc_addr_list_type { | |
diff -u -p ./drivers/net/wireless/ti/wl18xx/acx.h /tmp/nothing/drivers/net/wireless/ti/wl18xx/acx.h | |
--- ./drivers/net/wireless/ti/wl18xx/acx.h | |
+++ /tmp/nothing/drivers/net/wireless/ti/wl18xx/acx.h | |
@@ -383,7 +383,6 @@ struct acx_time_sync_cfg { | |
struct acx_header header; | |
u8 sync_mode; | |
u8 zone_mac_addr[ETH_ALEN]; | |
- u8 padding[1]; | |
} __packed; | |
int wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap, | |
diff -u -p ./drivers/scsi/be2iscsi/be_main.h /tmp/nothing/drivers/scsi/be2iscsi/be_main.h | |
--- ./drivers/scsi/be2iscsi/be_main.h | |
+++ /tmp/nothing/drivers/scsi/be2iscsi/be_main.h | |
@@ -657,7 +657,6 @@ struct amap_i_t_dpdu_cqe_v2 { | |
#define EQE_RESID_MASK 0xFFFF0000 | |
struct be_eq_entry { | |
- u32 dw[1]; | |
} __packed; | |
/** | |
@@ -673,7 +672,6 @@ struct amap_eq_entry { | |
} __packed; | |
struct cq_db { | |
- u32 dw[1]; | |
} __packed; | |
/** | |
diff -u -p ./drivers/scsi/pmcraid.h /tmp/nothing/drivers/scsi/pmcraid.h | |
--- ./drivers/scsi/pmcraid.h | |
+++ /tmp/nothing/drivers/scsi/pmcraid.h | |
@@ -1040,7 +1040,6 @@ struct pmcraid_passthrough_ioctl_buffer | |
struct pmcraid_ioctl_header ioctl_header; | |
struct pmcraid_ioarcb ioarcb; | |
struct pmcraid_ioasa ioasa; | |
- u8 request_buffer[1]; | |
} __attribute__ ((packed)); | |
/* | |
diff -u -p ./fs/cifs/ntlmssp.h /tmp/nothing/fs/cifs/ntlmssp.h | |
--- ./fs/cifs/ntlmssp.h | |
+++ /tmp/nothing/fs/cifs/ntlmssp.h | |
@@ -96,7 +96,6 @@ typedef struct _NEGOTIATE_MESSAGE { | |
SECURITY_BUFFER WorkstationName; /* RFC 1001 and ASCII */ | |
/* SECURITY_BUFFER for version info not present since we | |
do not set the version is present flag */ | |
- char DomainString[0]; | |
/* followed by WorkstationString */ | |
} __attribute__((packed)) NEGOTIATE_MESSAGE, *PNEGOTIATE_MESSAGE; | |
@@ -124,7 +123,6 @@ typedef struct _AUTHENTICATE_MESSAGE { | |
__le32 NegotiateFlags; | |
/* SECURITY_BUFFER for version info not present since we | |
do not set the version is present flag */ | |
- char UserString[0]; | |
} __attribute__((packed)) AUTHENTICATE_MESSAGE, *PAUTHENTICATE_MESSAGE; | |
/* | |
diff -u -p ./fs/nfs/flexfilelayout/flexfilelayout.h /tmp/nothing/fs/nfs/flexfilelayout/flexfilelayout.h | |
--- ./fs/nfs/flexfilelayout/flexfilelayout.h | |
+++ /tmp/nothing/fs/nfs/flexfilelayout/flexfilelayout.h | |
@@ -115,7 +115,6 @@ struct nfs4_flexfile_layoutreturn_args { | |
struct nfs42_layoutstat_devinfo devinfo[FF_LAYOUTSTATS_MAXDEV]; | |
unsigned int num_errors; | |
unsigned int num_dev; | |
- struct page *pages[1]; | |
}; | |
static inline struct nfs4_flexfile_layout * | |
diff -u -p ./include/acpi/actbl3.h /tmp/nothing/include/acpi/actbl3.h | |
--- ./include/acpi/actbl3.h | |
+++ /tmp/nothing/include/acpi/actbl3.h | |
@@ -86,7 +86,6 @@ struct acpi_table_slic { | |
struct acpi_table_slit { | |
struct acpi_table_header header; /* Common ACPI table header */ | |
u64 locality_count; | |
- u8 entry[1]; /* Real size = localities^2 */ | |
}; | |
/******************************************************************************* | |
diff -u -p ./include/linux/ti_wilink_st.h /tmp/nothing/include/linux/ti_wilink_st.h | |
--- ./include/linux/ti_wilink_st.h | |
+++ /tmp/nothing/include/linux/ti_wilink_st.h | |
@@ -309,7 +309,6 @@ struct bts_action { | |
} __attribute__ ((packed)); | |
struct bts_action_send { | |
- u8 data[0]; | |
} __attribute__ ((packed)); | |
struct bts_action_wait { | |
diff -u -p ./drivers/gpu/drm/amd/amdgpu/mes_api_def.h /tmp/nothing/drivers/gpu/drm/amd/amdgpu/mes_api_def.h | |
--- ./drivers/gpu/drm/amd/amdgpu/mes_api_def.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/amdgpu/mes_api_def.h | |
@@ -150,7 +150,6 @@ struct MES_LOG_ENTRY_DATA { | |
struct MES_LOG_BUFFER { | |
struct MES_LOG_ENTRY_HEADER header; | |
- struct MES_LOG_ENTRY_DATA entries[1]; | |
}; | |
union MESAPI_SET_HW_RESOURCES { | |
diff -u -p ./drivers/staging/rtl8188eu/include/ieee80211.h /tmp/nothing/drivers/staging/rtl8188eu/include/ieee80211.h | |
--- ./drivers/staging/rtl8188eu/include/ieee80211.h | |
+++ /tmp/nothing/drivers/staging/rtl8188eu/include/ieee80211.h | |
@@ -235,7 +235,6 @@ struct ieee_param { | |
struct ieee_param_ex { | |
u32 cmd; | |
u8 sta_addr[ETH_ALEN]; | |
- u8 data[0]; | |
}; | |
struct sta_data { | |
diff -u -p ./drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h /tmp/nothing/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h | |
--- ./drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h | |
+++ /tmp/nothing/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h | |
@@ -44,7 +44,6 @@ MLXFW_MFA2_TLV(multi, struct mlxfw_mfa2_ | |
MLXFW_MFA2_TLV_MULTI_PART); | |
struct mlxfw_mfa2_tlv_psid { | |
- u8 psid[0]; | |
} __packed; | |
MLXFW_MFA2_TLV_VARSIZE(psid, struct mlxfw_mfa2_tlv_psid, | |
diff -u -p ./drivers/net/wireless/quantenna/qtnfmac/qlink.h /tmp/nothing/drivers/net/wireless/quantenna/qtnfmac/qlink.h | |
--- ./drivers/net/wireless/quantenna/qtnfmac/qlink.h | |
+++ /tmp/nothing/drivers/net/wireless/quantenna/qtnfmac/qlink.h | |
@@ -118,7 +118,6 @@ struct qlink_intf_info { | |
__le16 vlanid; | |
u8 mac_addr[ETH_ALEN]; | |
u8 use4addr; | |
- u8 rsvd[1]; | |
} __packed; | |
enum qlink_sta_flags { | |
@@ -407,7 +406,6 @@ struct qlink_cmd_mgmt_frame_register { | |
struct qlink_cmd chdr; | |
__le16 frame_type; | |
u8 do_register; | |
- u8 rsvd[1]; | |
} __packed; | |
/** | |
@@ -495,7 +493,6 @@ struct qlink_cmd_set_def_key { | |
u8 key_index; | |
u8 unicast; | |
u8 multicast; | |
- u8 rsvd[1]; | |
} __packed; | |
/** | |
@@ -918,7 +915,6 @@ struct qlink_cmd_ndev_changeupper { | |
__le32 netspace_id; | |
__le16 vlanid; | |
u8 upper_type; | |
- u8 rsvd[1]; | |
} __packed; | |
/** | |
@@ -1835,7 +1831,6 @@ struct qlink_sta_stats { | |
u8 plink_state; | |
u8 signal; | |
u8 signal_avg; | |
- u8 rsvd[1]; | |
}; | |
/** | |
diff -u -p ./drivers/message/fusion/mptbase.h /tmp/nothing/drivers/message/fusion/mptbase.h | |
--- ./drivers/message/fusion/mptbase.h | |
+++ /tmp/nothing/drivers/message/fusion/mptbase.h | |
@@ -331,11 +331,9 @@ typedef struct _MPT_FRAME_HDR { | |
#define MPT_REQ_MSGFLAGS_DROPME 0x80 | |
typedef struct _MPT_SGL_HDR { | |
- SGESimple32_t sge[1]; | |
} MPT_SGL_HDR; | |
typedef struct _MPT_SGL64_HDR { | |
- SGESimple64_t sge[1]; | |
} MPT_SGL64_HDR; | |
/* | |
@@ -500,7 +498,6 @@ typedef struct _SpiCfgData { | |
* is too short to check for SAF-TE | |
*/ | |
u8 bus_reset; /* 1 to allow bus reset */ | |
- u8 rsvd[1]; | |
}SpiCfgData; | |
typedef struct _SasCfgData { | |
diff -u -p ./net/ceph/auth_none.h /tmp/nothing/net/ceph/auth_none.h | |
--- ./net/ceph/auth_none.h | |
+++ /tmp/nothing/net/ceph/auth_none.h | |
@@ -16,7 +16,6 @@ struct ceph_none_authorizer { | |
struct ceph_authorizer base; | |
char buf[128]; | |
int buf_len; | |
- char reply_buf[0]; | |
}; | |
struct ceph_auth_none_info { | |
diff -u -p ./include/acpi/actbl1.h /tmp/nothing/include/acpi/actbl1.h | |
--- ./include/acpi/actbl1.h | |
+++ /tmp/nothing/include/acpi/actbl1.h | |
@@ -604,7 +604,6 @@ struct acpi_dmar_andd { | |
struct acpi_dmar_header header; | |
u8 reserved[3]; | |
u8 device_number; | |
- char device_name[1]; | |
}; | |
/******************************************************************************* | |
@@ -639,7 +638,6 @@ struct acpi_table_drtm { | |
struct acpi_drtm_vtable_list { | |
u32 validated_table_count; | |
- u64 validated_tables[1]; | |
}; | |
/* 2) Resources List (of Resource Descriptors) */ | |
@@ -654,7 +652,6 @@ struct acpi_drtm_resource { | |
struct acpi_drtm_resource_list { | |
u32 resource_count; | |
- struct acpi_drtm_resource resources[1]; | |
}; | |
/* 3) Platform-specific Identifiers List */ | |
@@ -677,7 +674,6 @@ struct acpi_table_ecdt { | |
struct acpi_generic_address data; /* Address of EC data register */ | |
u32 uid; /* Unique ID - must be same as the EC _UID method */ | |
u8 gpe; /* The GPE for the EC */ | |
- u8 id[1]; /* Full namepath of the EC in the ACPI namespace */ | |
}; | |
/******************************************************************************* | |
diff -u -p ./include/linux/greybus/module.h /tmp/nothing/include/linux/greybus/module.h | |
--- ./include/linux/greybus/module.h | |
+++ /tmp/nothing/include/linux/greybus/module.h | |
@@ -23,7 +23,6 @@ struct gb_module { | |
bool disconnected; | |
- struct gb_interface *interfaces[0]; | |
}; | |
#define to_gb_module(d) container_of(d, struct gb_module, dev) | |
diff -u -p ./drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr_ppt.h /tmp/nothing/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr_ppt.h | |
--- ./drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr_ppt.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr_ppt.h | |
@@ -48,7 +48,6 @@ typedef struct phm_ppt_v1_clock_voltage_ | |
struct phm_ppt_v1_clock_voltage_dependency_table { | |
uint32_t count; /* Number of entries. */ | |
- phm_ppt_v1_clock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
typedef struct phm_ppt_v1_clock_voltage_dependency_table phm_ppt_v1_clock_voltage_dependency_table; | |
@@ -71,7 +70,6 @@ typedef struct phm_ppt_v1_mm_clock_volta | |
struct phm_ppt_v1_mm_clock_voltage_dependency_table { | |
uint32_t count; /* Number of entries. */ | |
- phm_ppt_v1_mm_clock_voltage_dependency_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
typedef struct phm_ppt_v1_mm_clock_voltage_dependency_table phm_ppt_v1_mm_clock_voltage_dependency_table; | |
@@ -86,7 +84,6 @@ typedef struct phm_ppt_v1_voltage_lookup | |
struct phm_ppt_v1_voltage_lookup_table { | |
uint32_t count; | |
- phm_ppt_v1_voltage_lookup_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
typedef struct phm_ppt_v1_voltage_lookup_table phm_ppt_v1_voltage_lookup_table; | |
@@ -103,7 +100,6 @@ typedef struct phm_ppt_v1_pcie_record ph | |
struct phm_ppt_v1_pcie_table { | |
uint32_t count; /* Number of entries. */ | |
- phm_ppt_v1_pcie_record entries[1]; /* Dynamically allocate count entries. */ | |
}; | |
typedef struct phm_ppt_v1_pcie_table phm_ppt_v1_pcie_table; | |
diff -u -p ./drivers/gpu/drm/radeon/sislands_smc.h /tmp/nothing/drivers/gpu/drm/radeon/sislands_smc.h | |
--- ./drivers/gpu/drm/radeon/sislands_smc.h | |
+++ /tmp/nothing/drivers/gpu/drm/radeon/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/media/platform/qcom/venus/hfi_cmds.h /tmp/nothing/drivers/media/platform/qcom/venus/hfi_cmds.h | |
--- ./drivers/media/platform/qcom/venus/hfi_cmds.h | |
+++ /tmp/nothing/drivers/media/platform/qcom/venus/hfi_cmds.h | |
@@ -56,7 +56,6 @@ struct hfi_sys_set_resource_pkt { | |
struct hfi_pkt_hdr hdr; | |
u32 resource_handle; | |
u32 resource_type; | |
- u32 resource_data[1]; | |
}; | |
struct hfi_sys_release_resource_pkt { | |
@@ -68,13 +67,11 @@ struct hfi_sys_release_resource_pkt { | |
struct hfi_sys_set_property_pkt { | |
struct hfi_pkt_hdr hdr; | |
u32 num_properties; | |
- u32 data[1]; | |
}; | |
struct hfi_sys_get_property_pkt { | |
struct hfi_pkt_hdr hdr; | |
u32 num_properties; | |
- u32 data[1]; | |
}; | |
struct hfi_sys_set_buffers_pkt { | |
@@ -82,7 +79,6 @@ struct hfi_sys_set_buffers_pkt { | |
u32 buffer_type; | |
u32 buffer_size; | |
u32 num_buffers; | |
- u32 buffer_addr[1]; | |
}; | |
struct hfi_sys_ping_pkt { | |
@@ -117,7 +113,6 @@ struct hfi_session_set_buffers_pkt { | |
u32 extradata_size; | |
u32 min_buffer_size; | |
u32 num_buffers; | |
- u32 buffer_info[1]; | |
}; | |
struct hfi_session_get_sequence_header_pkt { | |
@@ -151,7 +146,6 @@ struct hfi_session_empty_buffer_compress | |
u32 input_tag; | |
u32 packet_buffer; | |
u32 extradata_buffer; | |
- u32 data[1]; | |
}; | |
struct hfi_session_empty_buffer_uncompressed_plane0_pkt { | |
@@ -168,7 +162,6 @@ struct hfi_session_empty_buffer_uncompre | |
u32 input_tag; | |
u32 packet_buffer; | |
u32 extradata_buffer; | |
- u32 data[1]; | |
}; | |
struct hfi_session_empty_buffer_uncompressed_plane1_pkt { | |
@@ -177,7 +170,6 @@ struct hfi_session_empty_buffer_uncompre | |
u32 filled_len; | |
u32 offset; | |
u32 packet_buffer2; | |
- u32 data[1]; | |
}; | |
struct hfi_session_empty_buffer_uncompressed_plane2_pkt { | |
@@ -186,7 +178,6 @@ struct hfi_session_empty_buffer_uncompre | |
u32 filled_len; | |
u32 offset; | |
u32 packet_buffer3; | |
- u32 data[1]; | |
}; | |
struct hfi_session_fill_buffer_pkt { | |
@@ -198,7 +189,6 @@ struct hfi_session_fill_buffer_pkt { | |
u32 output_tag; | |
u32 packet_buffer; | |
u32 extradata_buffer; | |
- u32 data[1]; | |
}; | |
struct hfi_session_flush_pkt { | |
@@ -217,7 +207,6 @@ struct hfi_session_resume_pkt { | |
struct hfi_session_get_property_pkt { | |
struct hfi_session_hdr_pkt shdr; | |
u32 num_properties; | |
- u32 data[1]; | |
}; | |
struct hfi_session_release_buffer_pkt { | |
@@ -227,7 +216,6 @@ struct hfi_session_release_buffer_pkt { | |
u32 extradata_size; | |
u32 response_req; | |
u32 num_buffers; | |
- u32 buffer_info[1]; | |
}; | |
struct hfi_session_release_resources_pkt { | |
@@ -242,7 +230,6 @@ struct hfi_session_parse_sequence_header | |
struct hfi_sfr { | |
u32 buf_size; | |
- u8 data[1]; | |
}; | |
struct hfi_sys_test_ssr_pkt { | |
diff -u -p ./drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h /tmp/nothing/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h | |
--- ./drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h | |
+++ /tmp/nothing/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h | |
@@ -12,7 +12,6 @@ struct pagelist { | |
u32 length; | |
u16 type; | |
u16 offset; | |
- u32 addrs[1]; /* N.B. 12 LSBs hold the number | |
* of following pages at consecutive | |
* addresses. | |
*/ | |
diff -u -p ./drivers/net/wireless/ath/ath11k/dbring.h /tmp/nothing/drivers/net/wireless/ath/ath11k/dbring.h | |
--- ./drivers/net/wireless/ath/ath11k/dbring.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/dbring.h | |
@@ -13,7 +13,6 @@ | |
struct ath11k_dbring_element { | |
dma_addr_t paddr; | |
- u8 payload[0]; | |
}; | |
struct ath11k_dbring_data { | |
diff -u -p ./drivers/scsi/esas2r/esas2r.h /tmp/nothing/drivers/scsi/esas2r/esas2r.h | |
--- ./drivers/scsi/esas2r/esas2r.h | |
+++ /tmp/nothing/drivers/scsi/esas2r/esas2r.h | |
@@ -517,7 +517,6 @@ struct esas2r_ioctl_fs { | |
u8 driver_ver; | |
u8 reserved[11]; | |
struct esas2r_ioctlfs_command command; | |
- u8 data[1]; | |
}; | |
struct esas2r_sas_nvram { | |
diff -u -p ./drivers/scsi/mvumi.h /tmp/nothing/drivers/scsi/mvumi.h | |
--- ./drivers/scsi/mvumi.h | |
+++ /tmp/nothing/drivers/scsi/mvumi.h | |
@@ -270,7 +270,6 @@ struct mvumi_msg_frame { | |
u16 request_id; | |
u16 reserved1; | |
u8 cdb[MAX_COMMAND_SIZE]; | |
- u32 payload[1]; | |
}; | |
/* | |
@@ -285,7 +284,6 @@ struct mvumi_rsp_frame { | |
u8 req_status; | |
u8 rsp_flag; /* Indicates the type of Data_Payload.*/ | |
u16 request_id; | |
- u32 payload[1]; | |
}; | |
struct mvumi_ob_data { | |
@@ -371,7 +369,6 @@ struct mvumi_hs_header { | |
u8 page_code; | |
u8 checksum; | |
u16 frame_length; | |
- u32 frame_content[1]; | |
}; | |
/* | |
diff -u -p ./drivers/usb/serial/io_edgeport.h /tmp/nothing/drivers/usb/serial/io_edgeport.h | |
--- ./drivers/usb/serial/io_edgeport.h | |
+++ /tmp/nothing/drivers/usb/serial/io_edgeport.h | |
@@ -121,7 +121,6 @@ struct edgeport_product_info { | |
struct string_block { | |
__u16 NumStrings; /* Number of strings in block */ | |
- __u16 Strings[1]; /* Start of string block */ | |
}; | |
diff -u -p ./arch/x86/include/asm/uv/bios.h /tmp/nothing/arch/x86/include/asm/uv/bios.h | |
--- ./arch/x86/include/asm/uv/bios.h | |
+++ /tmp/nothing/arch/x86/include/asm/uv/bios.h | |
@@ -93,10 +93,6 @@ struct uv_systab { | |
u32 revision; /* distinguish different firmware revs */ | |
u64 function; /* BIOS runtime callback function ptr */ | |
u32 size; /* systab size (starting with _VERSION_UV4) */ | |
- struct { | |
- u32 type:8; /* type of entry */ | |
- u32 offset:24; /* byte offset from struct start to entry */ | |
- } entry[1]; /* additional entries follow */ | |
}; | |
extern struct uv_systab *uv_systab; | |
/* (... end of definitions from UV BIOS ...) */ | |
diff -u -p ./include/linux/platform_data/cros_ec_proto.h /tmp/nothing/include/linux/platform_data/cros_ec_proto.h | |
--- ./include/linux/platform_data/cros_ec_proto.h | |
+++ /tmp/nothing/include/linux/platform_data/cros_ec_proto.h | |
@@ -69,7 +69,6 @@ struct cros_ec_command { | |
uint32_t outsize; | |
uint32_t insize; | |
uint32_t result; | |
- uint8_t data[0]; | |
}; | |
/** | |
diff -u -p ./block/scsi_ioctl.c /tmp/nothing/block/scsi_ioctl.c | |
--- ./block/scsi_ioctl.c | |
+++ /tmp/nothing/block/scsi_ioctl.c | |
@@ -653,7 +653,6 @@ struct compat_cdrom_generic_command { | |
unsigned char data_direction; | |
compat_int_t quiet; | |
compat_int_t timeout; | |
- compat_caddr_t reserved[1]; | |
}; | |
#endif | |
diff -u -p ./drivers/thunderbolt/tb_msgs.h /tmp/nothing/drivers/thunderbolt/tb_msgs.h | |
--- ./drivers/thunderbolt/tb_msgs.h | |
+++ /tmp/nothing/drivers/thunderbolt/tb_msgs.h | |
@@ -532,7 +532,6 @@ struct tb_xdp_properties_response { | |
u16 offset; | |
u16 data_length; | |
u32 generation; | |
- u32 data[0]; | |
}; | |
/* | |
diff -u -p ./drivers/tee/optee/optee_msg.h /tmp/nothing/drivers/tee/optee/optee_msg.h | |
--- ./drivers/tee/optee/optee_msg.h | |
+++ /tmp/nothing/drivers/tee/optee/optee_msg.h | |
@@ -199,7 +199,6 @@ struct optee_msg_arg { | |
u32 num_params; | |
/* num_params tells the actual number of element in params */ | |
- struct optee_msg_param params[0]; | |
}; | |
/** | |
diff -u -p ./kernel/params.c /tmp/nothing/kernel/params.c | |
--- ./kernel/params.c | |
+++ /tmp/nothing/kernel/params.c | |
@@ -529,7 +529,6 @@ struct module_param_attrs | |
{ | |
unsigned int num; | |
struct attribute_group grp; | |
- struct param_attribute attrs[0]; | |
}; | |
#ifdef CONFIG_SYSFS | |
diff -u -p ./lib/ubsan.h /tmp/nothing/lib/ubsan.h | |
--- ./lib/ubsan.h | |
+++ /tmp/nothing/lib/ubsan.h | |
@@ -11,7 +11,6 @@ enum { | |
struct type_descriptor { | |
u16 type_kind; | |
u16 type_info; | |
- char type_name[1]; | |
}; | |
struct source_location { | |
diff -u -p ./include/xen/interface/io/displif.h /tmp/nothing/include/xen/interface/io/displif.h | |
--- ./include/xen/interface/io/displif.h | |
+++ /tmp/nothing/include/xen/interface/io/displif.h | |
@@ -540,7 +540,6 @@ struct xendispl_dbuf_create_req { | |
struct xendispl_page_directory { | |
grant_ref_t gref_dir_next_page; | |
- grant_ref_t gref[1]; /* Variable length */ | |
}; | |
/* | |
diff -u -p ./drivers/gpu/drm/amd/powerplay/hwmgr/pptable_v1_0.h /tmp/nothing/drivers/gpu/drm/amd/powerplay/hwmgr/pptable_v1_0.h | |
--- ./drivers/gpu/drm/amd/powerplay/hwmgr/pptable_v1_0.h | |
+++ /tmp/nothing/drivers/gpu/drm/amd/powerplay/hwmgr/pptable_v1_0.h | |
@@ -164,7 +164,6 @@ typedef struct _ATOM_Tonga_State { | |
typedef struct _ATOM_Tonga_State_Array { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Tonga_State entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Tonga_State_Array; | |
typedef struct _ATOM_Tonga_MCLK_Dependency_Record { | |
@@ -179,7 +178,6 @@ typedef struct _ATOM_Tonga_MCLK_Dependen | |
typedef struct _ATOM_Tonga_MCLK_Dependency_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Tonga_MCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Tonga_MCLK_Dependency_Table; | |
typedef struct _ATOM_Tonga_SCLK_Dependency_Record { | |
@@ -194,7 +192,6 @@ typedef struct _ATOM_Tonga_SCLK_Dependen | |
typedef struct _ATOM_Tonga_SCLK_Dependency_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Tonga_SCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Tonga_SCLK_Dependency_Table; | |
typedef struct _ATOM_Polaris_SCLK_Dependency_Record { | |
@@ -210,7 +207,6 @@ typedef struct _ATOM_Polaris_SCLK_Depend | |
typedef struct _ATOM_Polaris_SCLK_Dependency_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Polaris_SCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Polaris_SCLK_Dependency_Table; | |
typedef struct _ATOM_Tonga_PCIE_Record { | |
@@ -222,7 +218,6 @@ typedef struct _ATOM_Tonga_PCIE_Record { | |
typedef struct _ATOM_Tonga_PCIE_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Tonga_PCIE_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Tonga_PCIE_Table; | |
typedef struct _ATOM_Polaris10_PCIE_Record { | |
@@ -235,7 +230,6 @@ typedef struct _ATOM_Polaris10_PCIE_Reco | |
typedef struct _ATOM_Polaris10_PCIE_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Polaris10_PCIE_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Polaris10_PCIE_Table; | |
@@ -252,7 +246,6 @@ typedef struct _ATOM_Tonga_MM_Dependency | |
typedef struct _ATOM_Tonga_MM_Dependency_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Tonga_MM_Dependency_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Tonga_MM_Dependency_Table; | |
typedef struct _ATOM_Tonga_Voltage_Lookup_Record { | |
@@ -265,7 +258,6 @@ typedef struct _ATOM_Tonga_Voltage_Looku | |
typedef struct _ATOM_Tonga_Voltage_Lookup_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; /* Number of entries. */ | |
- ATOM_Tonga_Voltage_Lookup_Record entries[1]; /* Dynamically allocate entries. */ | |
} ATOM_Tonga_Voltage_Lookup_Table; | |
typedef struct _ATOM_Tonga_Fan_Table { | |
@@ -337,7 +329,6 @@ typedef struct _ATOM_Tonga_VCE_State_Rec | |
typedef struct _ATOM_Tonga_VCE_State_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; | |
- ATOM_Tonga_VCE_State_Record entries[1]; | |
} ATOM_Tonga_VCE_State_Table; | |
typedef struct _ATOM_Tonga_PowerTune_Table { | |
@@ -416,7 +407,6 @@ typedef struct _ATOM_Tonga_Hard_Limit_Re | |
typedef struct _ATOM_Tonga_Hard_Limit_Table { | |
UCHAR ucRevId; | |
UCHAR ucNumEntries; | |
- ATOM_Tonga_Hard_Limit_Record entries[1]; | |
} ATOM_Tonga_Hard_Limit_Table; | |
typedef struct _ATOM_Tonga_GPIO_Table { | |
diff -u -p ./drivers/gpu/drm/nouveau/include/nvif/cl5070.h /tmp/nothing/drivers/gpu/drm/nouveau/include/nvif/cl5070.h | |
--- ./drivers/gpu/drm/nouveau/include/nvif/cl5070.h | |
+++ /tmp/nothing/drivers/gpu/drm/nouveau/include/nvif/cl5070.h | |
@@ -73,7 +73,6 @@ struct nv50_disp_sor_hdmi_pwr_v0 { | |
#define NV50_DISP_SOR_HDMI_PWR_V0_SCDC_SCRAMBLE (1 << 0) | |
#define NV50_DISP_SOR_HDMI_PWR_V0_SCDC_DIV_BY_4 (1 << 1) | |
__u8 scdc; | |
- __u8 pad07[1]; | |
}; | |
struct nv50_disp_sor_lvds_script_v0 { | |
diff -u -p ./drivers/media/pci/cx18/cx18-av-vbi.c /tmp/nothing/drivers/media/pci/cx18/cx18-av-vbi.c | |
--- ./drivers/media/pci/cx18/cx18-av-vbi.c | |
+++ /tmp/nothing/drivers/media/pci/cx18/cx18-av-vbi.c | |
@@ -51,7 +51,6 @@ struct vbi_anc_data { | |
u8 sdid; | |
u8 data_count; | |
u8 idid[2]; | |
- u8 payload[1]; /* data_count of payload */ | |
/* u8 checksum; */ | |
/* u8 fill[]; Variable number of fill bytes */ | |
}; | |
diff -u -p ./drivers/net/ethernet/intel/i40e/i40e_dcb.h /tmp/nothing/drivers/net/ethernet/intel/i40e/i40e_dcb.h | |
--- ./drivers/net/ethernet/intel/i40e/i40e_dcb.h | |
+++ /tmp/nothing/drivers/net/ethernet/intel/i40e/i40e_dcb.h | |
@@ -84,7 +84,6 @@ | |
struct i40e_lldp_org_tlv { | |
__be16 typelength; | |
__be32 ouisubtype; | |
- u8 tlvinfo[1]; | |
}; | |
struct i40e_cee_tlv_hdr { | |
@@ -104,7 +103,6 @@ struct i40e_cee_feat_tlv { | |
u8 en_will_err; /* Bits: |En|Will|Err|Reserved(5)| */ | |
#define I40E_CEE_FEAT_TLV_WILLING_MASK 0x40 | |
u8 subtype; | |
- u8 tlvinfo[1]; | |
}; | |
struct i40e_cee_app_prio { | |
diff -u -p ./drivers/net/wireless/ath/carl9170/fwdesc.h /tmp/nothing/drivers/net/wireless/ath/carl9170/fwdesc.h | |
--- ./drivers/net/wireless/ath/carl9170/fwdesc.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/carl9170/fwdesc.h | |
@@ -149,7 +149,6 @@ struct carl9170fw_fix_entry { | |
struct carl9170fw_fix_desc { | |
struct carl9170fw_desc_head head; | |
- struct carl9170fw_fix_entry data[0]; | |
} __packed; | |
#define CARL9170FW_FIX_DESC_SIZE \ | |
(sizeof(struct carl9170fw_fix_desc)) | |
diff -u -p ./drivers/net/wireless/realtek/rtlwifi/wifi.h /tmp/nothing/drivers/net/wireless/realtek/rtlwifi/wifi.h | |
--- ./drivers/net/wireless/realtek/rtlwifi/wifi.h | |
+++ /tmp/nothing/drivers/net/wireless/realtek/rtlwifi/wifi.h | |
@@ -1290,7 +1290,6 @@ struct p2p_ps_offload_t { | |
struct iqk_matrix_regs { | |
bool iqk_done; | |
- long value[1][IQK_MATRIX_REG_NUM]; | |
}; | |
struct phy_parameters { | |
@@ -2833,7 +2832,6 @@ struct rtl_priv { | |
* beyond this structure like: | |
* rtl_pci_priv or rtl_usb_priv | |
*/ | |
- u8 priv[0] __aligned(sizeof(void *)); | |
}; | |
#define rtl_priv(hw) (((struct rtl_priv *)(hw)->priv)) | |
diff -u -p ./fs/cifs/cifspdu.h /tmp/nothing/fs/cifs/cifspdu.h | |
--- ./fs/cifs/cifspdu.h | |
+++ /tmp/nothing/fs/cifs/cifspdu.h | |
@@ -506,7 +506,6 @@ put_bcc(__u16 count, struct smb_hdr *hdr | |
typedef struct negotiate_req { | |
struct smb_hdr hdr; /* wct = 0 */ | |
__le16 ByteCount; | |
- unsigned char DialectsArray[1]; | |
} __attribute__((packed)) NEGOTIATE_REQ; | |
/* Dialect index is 13 for LANMAN */ | |
@@ -530,7 +529,6 @@ typedef struct lanman_neg_rsp { | |
__le16 EncryptionKeyLength; | |
__le16 Reserved; | |
__u16 ByteCount; | |
- unsigned char EncryptionKey[1]; | |
} __attribute__((packed)) LANMAN_NEG_RSP; | |
#define READ_RAW_ENABLE 1 | |
@@ -737,7 +735,6 @@ typedef struct smb_com_tconx_req { | |
__le16 Flags; /* see below */ | |
__le16 PasswordLength; | |
__le16 ByteCount; | |
- unsigned char Password[1]; /* followed by */ | |
/* STRING Path *//* \\server\share name */ | |
/* STRING Service */ | |
} __attribute__((packed)) TCONX_REQ; | |
@@ -749,7 +746,6 @@ typedef struct smb_com_tconx_rsp { | |
__le16 AndXOffset; | |
__le16 OptionalSupport; /* see below */ | |
__u16 ByteCount; | |
- unsigned char Service[1]; /* always ASCII, not Unicode */ | |
/* STRING NativeFileSystem */ | |
} __attribute__((packed)) TCONX_RSP; | |
@@ -762,7 +758,6 @@ typedef struct smb_com_tconx_rsp_ext { | |
__le32 MaximalShareAccessRights; | |
__le32 GuestMaximalShareAccessRights; | |
__u16 ByteCount; | |
- unsigned char Service[1]; /* always ASCII, not Unicode */ | |
/* STRING NativeFileSystem */ | |
} __attribute__((packed)) TCONX_RSP_EXT; | |
@@ -799,14 +794,12 @@ typedef struct smb_com_echo_req { | |
struct smb_hdr hdr; | |
__le16 EchoCount; | |
__le16 ByteCount; | |
- char Data[1]; | |
} __attribute__((packed)) ECHO_REQ; | |
typedef struct smb_com_echo_rsp { | |
struct smb_hdr hdr; | |
__le16 SequenceNumber; | |
__le16 ByteCount; | |
- char Data[1]; | |
} __attribute__((packed)) ECHO_RSP; | |
typedef struct smb_com_logoff_andx_req { | |
@@ -906,7 +899,6 @@ typedef struct smb_com_open_req { /* als | |
__le32 ImpersonationLevel; | |
__u8 SecurityFlags; | |
__le16 ByteCount; | |
- char fileName[1]; | |
} __attribute__((packed)) OPEN_REQ; | |
/* open response: oplock levels */ | |
@@ -981,7 +973,6 @@ typedef struct smb_com_openx_req { | |
__le32 Timeout; | |
__le32 Reserved; | |
__le16 ByteCount; /* file name follows */ | |
- char fileName[1]; | |
} __attribute__((packed)) OPENX_REQ; | |
typedef struct smb_com_openx_rsp { | |
@@ -1129,7 +1120,6 @@ typedef struct smb_com_lock_req { | |
__le16 NumberOfUnlocks; | |
__le16 NumberOfLocks; | |
__le16 ByteCount; | |
- LOCKING_ANDX_RANGE Locks[1]; | |
} __attribute__((packed)) LOCK_REQ; | |
/* lock type */ | |
@@ -1158,7 +1148,6 @@ typedef struct smb_com_rename_req { | |
__le16 SearchAttributes; /* target file attributes */ | |
__le16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII or Unicode */ | |
- unsigned char OldFileName[1]; | |
/* followed by __u8 BufferFormat2 */ | |
/* followed by NewFileName */ | |
} __attribute__((packed)) RENAME_REQ; | |
@@ -1178,7 +1167,6 @@ typedef struct smb_com_copy_req { | |
__le16 Flags; | |
__le16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII or Unicode */ | |
- unsigned char OldFileName[1]; | |
/* followed by __u8 BufferFormat2 */ | |
/* followed by NewFileName string */ | |
} __attribute__((packed)) COPY_REQ; | |
@@ -1188,7 +1176,6 @@ typedef struct smb_com_copy_rsp { | |
__le16 CopyCount; /* number of files copied */ | |
__u16 ByteCount; /* may be zero */ | |
__u8 BufferFormat; /* 0x04 - only present if errored file follows */ | |
- unsigned char ErrorFileName[1]; /* only present if error in copy */ | |
} __attribute__((packed)) COPY_RSP; | |
#define CREATE_HARD_LINK 0x103 | |
@@ -1202,7 +1189,6 @@ typedef struct smb_com_nt_rename_req { / | |
__le32 ClusterCount; | |
__le16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII or Unicode */ | |
- unsigned char OldFileName[1]; | |
/* followed by __u8 BufferFormat2 */ | |
/* followed by NewFileName */ | |
} __attribute__((packed)) NT_RENAME_REQ; | |
@@ -1217,7 +1203,6 @@ typedef struct smb_com_delete_file_req { | |
__le16 SearchAttributes; | |
__le16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII */ | |
- unsigned char fileName[1]; | |
} __attribute__((packed)) DELETE_FILE_REQ; | |
typedef struct smb_com_delete_file_rsp { | |
@@ -1229,7 +1214,6 @@ typedef struct smb_com_delete_directory_ | |
struct smb_hdr hdr; /* wct = 0 */ | |
__le16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII */ | |
- unsigned char DirName[1]; | |
} __attribute__((packed)) DELETE_DIRECTORY_REQ; | |
typedef struct smb_com_delete_directory_rsp { | |
@@ -1241,7 +1225,6 @@ typedef struct smb_com_create_directory_ | |
struct smb_hdr hdr; /* wct = 0 */ | |
__le16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII */ | |
- unsigned char DirName[1]; | |
} __attribute__((packed)) CREATE_DIRECTORY_REQ; | |
typedef struct smb_com_create_directory_rsp { | |
@@ -1253,7 +1236,6 @@ typedef struct smb_com_query_information | |
struct smb_hdr hdr; /* wct = 0 */ | |
__le16 ByteCount; /* 1 + namelen + 1 */ | |
__u8 BufferFormat; /* 4 = ASCII */ | |
- unsigned char FileName[1]; | |
} __attribute__((packed)) QUERY_INFORMATION_REQ; | |
typedef struct smb_com_query_information_rsp { | |
@@ -1273,7 +1255,6 @@ typedef struct smb_com_setattr_req { | |
__le16 reserved[5]; /* must be zero */ | |
__u16 ByteCount; | |
__u8 BufferFormat; /* 4 = ASCII */ | |
- unsigned char fileName[1]; | |
} __attribute__((packed)) SETATTR_REQ; | |
typedef struct smb_com_setattr_rsp { | |
@@ -1355,7 +1336,6 @@ typedef struct smb_com_transaction_ioctl | |
__u8 IsRootFlag; /* 1 = apply command to root of share (must be DFS) */ | |
__le16 ByteCount; | |
__u8 Pad[3]; | |
- __u8 Data[1]; | |
} __attribute__((packed)) TRANSACT_IOCTL_REQ; | |
typedef struct smb_com_transaction_compr_ioctl_req { | |
@@ -1563,7 +1543,6 @@ struct cifs_quota_data { | |
__u64 space_used; | |
__u64 soft_limit; | |
__u64 hard_limit; | |
- char sid[1]; /* variable size? */ | |
} __attribute__((packed)); | |
/* quota sub commands */ | |
@@ -1715,7 +1694,6 @@ typedef struct smb_com_transaction2_qpi_ | |
__u8 Pad; | |
__le16 InformationLevel; | |
__u32 Reserved4; | |
- char FileName[1]; | |
} __attribute__((packed)) TRANSACTION2_QPI_REQ; | |
typedef struct smb_com_transaction2_qpi_rsp { | |
@@ -1748,7 +1726,6 @@ typedef struct smb_com_transaction2_spi_ | |
__u16 Pad1; | |
__le16 InformationLevel; | |
__u32 Reserved4; | |
- char FileName[1]; | |
} __attribute__((packed)) TRANSACTION2_SPI_REQ; | |
typedef struct smb_com_transaction2_spi_rsp { | |
@@ -1854,7 +1831,6 @@ typedef struct smb_com_transaction2_ffir | |
__le16 SearchFlags; | |
__le16 InformationLevel; | |
__le32 SearchStorageType; | |
- char FileName[1]; | |
} __attribute__((packed)) TRANSACTION2_FFIRST_REQ; | |
typedef struct smb_com_transaction2_ffirst_rsp { | |
@@ -1896,7 +1872,6 @@ typedef struct smb_com_transaction2_fnex | |
__le16 InformationLevel; | |
__u32 ResumeKey; | |
__le16 SearchFlags; | |
- char ResumeFileName[1]; | |
} __attribute__((packed)) TRANSACTION2_FNEXT_REQ; | |
typedef struct smb_com_transaction2_fnext_rsp { | |
@@ -2065,7 +2040,6 @@ typedef struct smb_com_transaction2_get_ | |
perhaps?) followed by one byte pad - doesn't | |
seem to matter though */ | |
__le16 MaxReferralLevel; | |
- char RequestFileName[1]; | |
} __attribute__((packed)) TRANSACTION2_GET_DFS_REFER_REQ; | |
#define DFS_VERSION cpu_to_le16(0x0003) | |
@@ -2094,7 +2068,6 @@ struct get_dfs_referral_rsp { | |
__le16 PathConsumed; | |
__le16 NumberOfReferrals; | |
__le32 DFSFlags; | |
- REFERRAL3 referrals[1]; /* array of level 3 dfs_referral structures */ | |
/* followed by the strings pointed to by the referral structures */ | |
} __packed; | |
@@ -2419,7 +2392,6 @@ struct file_end_of_file_info { | |
} __attribute__((packed)); /* size info, level 0x104 for set, 0x106 for query */ | |
struct file_alt_name_info { | |
- __u8 alt_name[1]; | |
} __attribute__((packed)); /* level 0x0108 */ | |
struct file_stream_info { | |
@@ -2620,19 +2592,16 @@ struct win_dev { | |
struct gea { | |
unsigned char name_len; | |
- char name[1]; | |
} __attribute__((packed)); | |
struct gealist { | |
unsigned long list_len; | |
- struct gea list[1]; | |
} __attribute__((packed)); | |
struct fea { | |
unsigned char EA_flags; | |
__u8 name_len; | |
__le16 value_len; | |
- char name[1]; | |
/* optionally followed by value */ | |
} __attribute__((packed)); | |
/* flags for _FEA.fEA */ | |
@@ -2640,7 +2609,6 @@ struct fea { | |
struct fealist { | |
__le32 list_len; | |
- struct fea list[1]; | |
} __attribute__((packed)); | |
/* used to hold an arbitrary blob of data */ | |
diff -u -p ./include/linux/greybus/hd.h /tmp/nothing/include/linux/greybus/hd.h | |
--- ./include/linux/greybus/hd.h | |
+++ /tmp/nothing/include/linux/greybus/hd.h | |
@@ -58,7 +58,6 @@ struct gb_host_device { | |
struct gb_svc *svc; | |
/* Private data for the host driver */ | |
- unsigned long hd_priv[0] __aligned(sizeof(s64)); | |
}; | |
#define to_gb_host_device(d) container_of(d, struct gb_host_device, dev) | |
diff -u -p ./include/linux/f2fs_fs.h /tmp/nothing/include/linux/f2fs_fs.h | |
--- ./include/linux/f2fs_fs.h | |
+++ /tmp/nothing/include/linux/f2fs_fs.h | |
@@ -171,7 +171,6 @@ struct f2fs_checkpoint { | |
unsigned char alloc_type[MAX_ACTIVE_LOGS]; | |
/* SIT and NAT version bitmap */ | |
- unsigned char sit_nat_version_bitmap[1]; | |
} __packed; | |
#define CP_CHKSUM_OFFSET 4092 /* default chksum offset in checkpoint */ | |
diff -u -p ./drivers/net/ethernet/mellanox/mlx5/core/en.h /tmp/nothing/drivers/net/ethernet/mellanox/mlx5/core/en.h | |
--- ./drivers/net/ethernet/mellanox/mlx5/core/en.h | |
+++ /tmp/nothing/drivers/net/ethernet/mellanox/mlx5/core/en.h | |
@@ -193,7 +193,6 @@ static inline int mlx5e_get_max_num_chan | |
struct mlx5e_tx_wqe { | |
struct mlx5_wqe_ctrl_seg ctrl; | |
struct mlx5_wqe_eth_seg eth; | |
- struct mlx5_wqe_data_seg data[0]; | |
}; | |
struct mlx5e_rx_wqe_ll { | |
@@ -202,14 +201,12 @@ struct mlx5e_rx_wqe_ll { | |
}; | |
struct mlx5e_rx_wqe_cyc { | |
- struct mlx5_wqe_data_seg data[0]; | |
}; | |
struct mlx5e_umr_wqe { | |
struct mlx5_wqe_ctrl_seg ctrl; | |
struct mlx5_wqe_umr_ctrl_seg uctrl; | |
struct mlx5_mkey_seg mkc; | |
- struct mlx5_mtt inline_mtts[0]; | |
}; | |
extern const char mlx5e_self_tests[][ETH_GSTRING_LEN]; | |
diff -u -p ./drivers/net/ethernet/apple/macmace.c /tmp/nothing/drivers/net/ethernet/apple/macmace.c | |
--- ./drivers/net/ethernet/apple/macmace.c | |
+++ /tmp/nothing/drivers/net/ethernet/apple/macmace.c | |
@@ -77,7 +77,6 @@ struct mace_frame { | |
u8 pad4; | |
u32 pad5; | |
u32 pad6; | |
- u8 data[1]; | |
/* And frame continues.. */ | |
}; | |
diff -u -p ./drivers/net/wireless/mediatek/mt76/mt7615/mcu.h /tmp/nothing/drivers/net/wireless/mediatek/mt76/mt7615/mcu.h | |
--- ./drivers/net/wireless/mediatek/mt76/mt7615/mcu.h | |
+++ /tmp/nothing/drivers/net/wireless/mediatek/mt76/mt7615/mcu.h | |
@@ -574,7 +574,6 @@ struct mt7615_arpns_tlv { | |
u8 mode; | |
u8 ips_num; | |
u8 option; | |
- u8 pad[1]; | |
} __packed; | |
/* offload mcu commands */ | |
diff -u -p ./drivers/net/wireless/ath/ath10k/htc.h /tmp/nothing/drivers/net/wireless/ath/ath10k/htc.h | |
--- ./drivers/net/wireless/ath/ath10k/htc.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath10k/htc.h | |
@@ -263,7 +263,6 @@ struct ath10k_htc_frame { | |
struct ath10k_htc_msg msg; | |
u8 payload[0]; | |
}; | |
- struct ath10k_htc_record trailer[0]; | |
} __packed __aligned(4); | |
/*******************/ | |
diff -u -p ./fs/hfs/btree.h /tmp/nothing/fs/hfs/btree.h | |
--- ./fs/hfs/btree.h | |
+++ /tmp/nothing/fs/hfs/btree.h | |
@@ -60,7 +60,6 @@ struct hfs_bnode { | |
wait_queue_head_t lock_wq; | |
atomic_t refcnt; | |
unsigned int page_offset; | |
- struct page *page[0]; | |
}; | |
#define HFS_BNODE_ERROR 0 | |
diff -u -p ./include/linux/hid.h /tmp/nothing/include/linux/hid.h | |
--- ./include/linux/hid.h | |
+++ /tmp/nothing/include/linux/hid.h | |
@@ -664,7 +664,6 @@ struct hid_descriptor { | |
__u8 bCountryCode; | |
__u8 bNumDescriptors; | |
- struct hid_class_descriptor desc[1]; | |
} __attribute__ ((packed)); | |
#define HID_DEVICE(b, g, ven, prod) \ | |
diff -u -p ./drivers/target/target_core_user.c /tmp/nothing/drivers/target/target_core_user.c | |
--- ./drivers/target/target_core_user.c | |
+++ /tmp/nothing/drivers/target/target_core_user.c | |
@@ -191,7 +191,6 @@ struct tcmu_tmr { | |
uint8_t tmr_type; | |
uint32_t tmr_cmd_cnt; | |
- int16_t tmr_cmd_ids[0]; | |
}; | |
/* | |
diff -u -p ./drivers/infiniband/hw/hfi1/mad.c /tmp/nothing/drivers/infiniband/hw/hfi1/mad.c | |
--- ./drivers/infiniband/hw/hfi1/mad.c | |
+++ /tmp/nothing/drivers/infiniband/hw/hfi1/mad.c | |
@@ -2439,49 +2439,13 @@ struct opa_port_data_counters_msg { | |
__be32 resolution; | |
/* Response fields follow */ | |
- struct _port_dctrs { | |
- u8 port_number; | |
- u8 reserved2[3]; | |
- __be32 link_quality_indicator; /* 29res, 3bit */ | |
/* Data counters */ | |
- __be64 port_xmit_data; | |
- __be64 port_rcv_data; | |
- __be64 port_xmit_pkts; | |
- __be64 port_rcv_pkts; | |
- __be64 port_multicast_xmit_pkts; | |
- __be64 port_multicast_rcv_pkts; | |
- __be64 port_xmit_wait; | |
- __be64 sw_port_congestion; | |
- __be64 port_rcv_fecn; | |
- __be64 port_rcv_becn; | |
- __be64 port_xmit_time_cong; | |
- __be64 port_xmit_wasted_bw; | |
- __be64 port_xmit_wait_data; | |
- __be64 port_rcv_bubble; | |
- __be64 port_mark_fecn; | |
- __be64 port_error_counter_summary; | |
/* Sum of error counts/port */ | |
- struct _vls_dctrs { | |
/* per-VL Data counters */ | |
- __be64 port_vl_xmit_data; | |
- __be64 port_vl_rcv_data; | |
- __be64 port_vl_xmit_pkts; | |
- __be64 port_vl_rcv_pkts; | |
- __be64 port_vl_xmit_wait; | |
- __be64 sw_port_vl_congestion; | |
- __be64 port_vl_rcv_fecn; | |
- __be64 port_vl_rcv_becn; | |
- __be64 port_xmit_time_cong; | |
- __be64 port_vl_xmit_wasted_bw; | |
- __be64 port_vl_xmit_wait_data; | |
- __be64 port_vl_rcv_bubble; | |
- __be64 port_vl_mark_fecn; | |
- } vls[0]; | |
/* array size defined by #bits set in vl_select_mask*/ | |
- } port[1]; /* array size defined by #ports in attribute modifier */ | |
}; | |
struct opa_port_error_counters64_msg { | |
@@ -2494,98 +2458,28 @@ struct opa_port_error_counters64_msg { | |
/* Response-only fields follow */ | |
__be32 reserved1; | |
- struct _port_ectrs { | |
- u8 port_number; | |
- u8 reserved2[7]; | |
- __be64 port_rcv_constraint_errors; | |
- __be64 port_rcv_switch_relay_errors; | |
- __be64 port_xmit_discards; | |
- __be64 port_xmit_constraint_errors; | |
- __be64 port_rcv_remote_physical_errors; | |
- __be64 local_link_integrity_errors; | |
- __be64 port_rcv_errors; | |
- __be64 excessive_buffer_overruns; | |
- __be64 fm_config_errors; | |
- __be32 link_error_recovery; | |
- __be32 link_downed; | |
- u8 uncorrectable_errors; | |
- u8 reserved3[7]; | |
- struct _vls_ectrs { | |
- __be64 port_vl_xmit_discards; | |
- } vls[0]; | |
/* array size defined by #bits set in vl_select_mask */ | |
- } port[1]; /* array size defined by #ports in attribute modifier */ | |
}; | |
struct opa_port_error_info_msg { | |
__be64 port_select_mask[4]; | |
__be32 error_info_select_mask; | |
__be32 reserved1; | |
- struct _port_ei { | |
- u8 port_number; | |
- u8 reserved2[7]; | |
/* PortRcvErrorInfo */ | |
- struct { | |
- u8 status_and_code; | |
- union { | |
- u8 raw[17]; | |
- struct { | |
/* EI1to12 format */ | |
- u8 packet_flit1[8]; | |
- u8 packet_flit2[8]; | |
- u8 remaining_flit_bits12; | |
- } ei1to12; | |
- struct { | |
- u8 packet_bytes[8]; | |
- u8 remaining_flit_bits; | |
- } ei13; | |
- } ei; | |
- u8 reserved3[6]; | |
- } __packed port_rcv_ei; | |
/* ExcessiveBufferOverrunInfo */ | |
- struct { | |
- u8 status_and_sc; | |
- u8 reserved4[7]; | |
- } __packed excessive_buffer_overrun_ei; | |
/* PortXmitConstraintErrorInfo */ | |
- struct { | |
- u8 status; | |
- u8 reserved5; | |
- __be16 pkey; | |
- __be32 slid; | |
- } __packed port_xmit_constraint_ei; | |
/* PortRcvConstraintErrorInfo */ | |
- struct { | |
- u8 status; | |
- u8 reserved6; | |
- __be16 pkey; | |
- __be32 slid; | |
- } __packed port_rcv_constraint_ei; | |
/* PortRcvSwitchRelayErrorInfo */ | |
- struct { | |
- u8 status_and_code; | |
- u8 reserved7[3]; | |
- __u32 error_info; | |
- } __packed port_rcv_switch_relay_ei; | |
/* UncorrectableErrorInfo */ | |
- struct { | |
- u8 status_and_code; | |
- u8 reserved8; | |
- } __packed uncorrectable_ei; | |
/* FMConfigErrorInfo */ | |
- struct { | |
- u8 status_and_code; | |
- u8 error_info; | |
- } __packed fm_config_ei; | |
- __u32 reserved9; | |
- } port[1]; /* actual array size defined by #ports in attr modifier */ | |
}; | |
/* opa_port_error_info_msg error_info_select_mask bit definitions */ | |
diff -u -p ./drivers/tty/vt/vt.c /tmp/nothing/drivers/tty/vt/vt.c | |
--- ./drivers/tty/vt/vt.c | |
+++ /tmp/nothing/drivers/tty/vt/vt.c | |
@@ -331,7 +331,6 @@ typedef uint32_t char32_t; | |
* scrolling only implies some pointer shuffling. | |
*/ | |
struct uni_screen { | |
- char32_t *lines[0]; | |
}; | |
static struct uni_screen *vc_uniscr_alloc(unsigned int cols, unsigned int rows) | |
diff -u -p ./drivers/crypto/caam/pdb.h /tmp/nothing/drivers/crypto/caam/pdb.h | |
--- ./drivers/crypto/caam/pdb.h | |
+++ /tmp/nothing/drivers/crypto/caam/pdb.h | |
@@ -144,7 +144,6 @@ struct ipsec_encap_pdb { | |
}; | |
u32 spi; | |
u32 ip_hdr_len; | |
- u32 ip_hdr[0]; | |
}; | |
/** | |
diff -u -p ./arch/s390/include/asm/sclp.h /tmp/nothing/arch/s390/include/asm/sclp.h | |
--- ./arch/s390/include/asm/sclp.h | |
+++ /tmp/nothing/arch/s390/include/asm/sclp.h | |
@@ -105,7 +105,6 @@ struct zpci_report_error_header { | |
* (OpenCrypto Successful Diagnostics Execution) | |
*/ | |
u16 length; /* Length of Subsequent Data (up to 4K – SCLP header */ | |
- u8 data[0]; /* Subsequent Data passed verbatim to SCLP ET 24 */ | |
} __packed; | |
int sclp_early_read_info(void); | |
diff -u -p ./drivers/media/common/siano/smscoreapi.h /tmp/nothing/drivers/media/common/siano/smscoreapi.h | |
--- ./drivers/media/common/siano/smscoreapi.h | |
+++ /tmp/nothing/drivers/media/common/siano/smscoreapi.h | |
@@ -621,7 +621,6 @@ struct sms_msg_hdr { | |
struct sms_msg_data { | |
struct sms_msg_hdr x_msg_header; | |
- u32 msg_data[1]; | |
}; | |
struct sms_msg_data2 { | |
@@ -671,7 +670,6 @@ struct sms_firmware { | |
u32 check_sum; | |
u32 length; | |
u32 start_address; | |
- u8 payload[1]; | |
}; | |
/* statistics information returned as response for | |
@@ -1051,13 +1049,11 @@ struct sms_i2c_req { | |
u32 device_address; /* I2c device address */ | |
u32 write_count; /* number of bytes to write */ | |
u32 read_count; /* number of bytes to read */ | |
- u8 Data[1]; | |
}; | |
struct sms_i2c_res { | |
u32 status; /* non-zero value in case of failure */ | |
u32 read_count; /* number of bytes read */ | |
- u8 Data[1]; | |
}; | |
diff -u -p ./drivers/net/ethernet/i825xx/sun3_82586.h /tmp/nothing/drivers/net/ethernet/i825xx/sun3_82586.h | |
--- ./drivers/net/ethernet/i825xx/sun3_82586.h | |
+++ /tmp/nothing/drivers/net/ethernet/i825xx/sun3_82586.h | |
@@ -250,7 +250,6 @@ struct mcsetup_cmd_struct | |
unsigned short cmd_cmd; | |
unsigned short cmd_link; | |
unsigned short mc_cnt; /* number of bytes in the MC-List */ | |
- unsigned char mc_list[0][6]; /* pointer to 6 bytes entries */ | |
}; | |
/* | |
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/rs.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/rs.h | |
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/rs.h | |
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/rs.h | |
@@ -206,7 +206,6 @@ struct iwl_tlc_config_cmd { | |
__le16 ht_rates[IWL_TLC_NSS_MAX][2]; | |
__le16 max_mpdu_len; | |
u8 sgi_ch_width_supp; | |
- u8 reserved2[1]; | |
} __packed; /* TLC_MNG_CONFIG_CMD_API_S_VER_2 */ | |
/** | |
diff -u -p ./drivers/message/fusion/lsi/mpi_ioc.h /tmp/nothing/drivers/message/fusion/lsi/mpi_ioc.h | |
--- ./drivers/message/fusion/lsi/mpi_ioc.h | |
+++ /tmp/nothing/drivers/message/fusion/lsi/mpi_ioc.h | |
@@ -448,7 +448,6 @@ typedef struct _MSG_EVENT_NOTIFY_REPLY | |
U32 IOCLogInfo; /* 10h */ | |
U32 Event; /* 14h */ | |
U32 EventContext; /* 18h */ | |
- U32 Data[1]; /* 1Ch */ | |
} MSG_EVENT_NOTIFY_REPLY, MPI_POINTER PTR_MSG_EVENT_NOTIFY_REPLY, | |
EventNotificationReply_t, MPI_POINTER pEventNotificationReply_t; | |
diff -u -p ./fs/crypto/fscrypt_private.h /tmp/nothing/fs/crypto/fscrypt_private.h | |
--- ./fs/crypto/fscrypt_private.h | |
+++ /tmp/nothing/fs/crypto/fscrypt_private.h | |
@@ -164,7 +164,6 @@ fscrypt_policy_flags(const union fscrypt | |
*/ | |
struct fscrypt_symlink_data { | |
__le16 len; | |
- char encrypted_path[1]; | |
} __packed; | |
/** | |
diff -u -p ./drivers/md/dm-writecache.c /tmp/nothing/drivers/md/dm-writecache.c | |
--- ./drivers/md/dm-writecache.c | |
+++ /tmp/nothing/drivers/md/dm-writecache.c | |
@@ -73,7 +73,6 @@ struct wc_memory_superblock { | |
}; | |
__le64 padding[8]; | |
}; | |
- struct wc_memory_entry entries[0]; | |
}; | |
struct wc_entry { | |
diff -u -p ./drivers/net/vmxnet3/vmxnet3_defs.h /tmp/nothing/drivers/net/vmxnet3/vmxnet3_defs.h | |
--- ./drivers/net/vmxnet3/vmxnet3_defs.h | |
+++ /tmp/nothing/drivers/net/vmxnet3/vmxnet3_defs.h | |
@@ -687,7 +687,6 @@ struct Vmxnet3_MemoryRegion { | |
struct Vmxnet3_MemRegs { | |
__le16 numRegs; | |
__le16 pad[3]; | |
- struct Vmxnet3_MemoryRegion memRegs[1]; | |
}; | |
enum Vmxnet3_RSSField { | |
diff -u -p ./drivers/net/wireless/ath/wil6210/fw.h /tmp/nothing/drivers/net/wireless/ath/wil6210/fw.h | |
--- ./drivers/net/wireless/ath/wil6210/fw.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/wil6210/fw.h | |
@@ -47,7 +47,6 @@ struct wil_fw_record_fill { /* type == w | |
* for informational purpose, data_size is @head.size from record header | |
*/ | |
struct wil_fw_record_comment { /* type == wil_fw_type_comment */ | |
- u8 data[0]; /* free-form data [data_size], see above */ | |
} __packed; | |
/* Comment header - common for all comment record types */ | |
@@ -131,7 +130,6 @@ struct wil_fw_data_dwrite { | |
* data_size is @head.size where @head is record header | |
*/ | |
struct wil_fw_record_direct_write { /* type == wil_fw_type_direct_write */ | |
- struct wil_fw_data_dwrite data[0]; | |
} __packed; | |
/* verify condition: [@addr] & @mask == @value | |
diff -u -p ./drivers/scsi/bfa/bfad_bsg.h /tmp/nothing/drivers/scsi/bfa/bfad_bsg.h | |
--- ./drivers/scsi/bfa/bfad_bsg.h | |
+++ /tmp/nothing/drivers/scsi/bfa/bfad_bsg.h | |
@@ -474,7 +474,6 @@ struct bfa_bsg_pcifn_s { | |
u16 bw_max; | |
u8 port; | |
enum bfi_pcifn_class pcifn_class; | |
- u8 rsvd[1]; | |
}; | |
struct bfa_bsg_adapter_cfg_mode_s { | |
diff -u -p ./sound/pci/hda/patch_hdmi.c /tmp/nothing/sound/pci/hda/patch_hdmi.c | |
--- ./sound/pci/hda/patch_hdmi.c | |
+++ /tmp/nothing/sound/pci/hda/patch_hdmi.c | |
@@ -215,7 +215,6 @@ struct dp_audio_infoframe { | |
union audio_infoframe { | |
struct hdmi_audio_infoframe hdmi; | |
struct dp_audio_infoframe dp; | |
- u8 bytes[0]; | |
}; | |
/* | |
diff -u -p ./include/linux/qed/iscsi_common.h /tmp/nothing/include/linux/qed/iscsi_common.h | |
--- ./include/linux/qed/iscsi_common.h | |
+++ /tmp/nothing/include/linux/qed/iscsi_common.h | |
@@ -521,7 +521,6 @@ struct iscsi_logout_response_hdr { | |
__le32 reserved4; | |
__le16 time_2_retain; | |
__le16 time_2_wait; | |
- __le32 reserved5[1]; | |
}; | |
/* iSCSI Text Request PDU header */ | |
diff -u -p ./drivers/gpu/drm/qxl/qxl_dev.h /tmp/nothing/drivers/gpu/drm/qxl/qxl_dev.h | |
--- ./drivers/gpu/drm/qxl/qxl_dev.h | |
+++ /tmp/nothing/drivers/gpu/drm/qxl/qxl_dev.h | |
@@ -271,7 +271,6 @@ struct qxl_mode { | |
/* qxl-1 compat: fixed */ | |
struct qxl_modes { | |
uint32_t n_modes; | |
- struct qxl_mode modes[0]; | |
}; | |
/* qxl-1 compat: append only */ | |
@@ -382,12 +381,10 @@ struct qxl_data_chunk { | |
uint32_t data_size; | |
QXLPHYSICAL prev_chunk; | |
QXLPHYSICAL next_chunk; | |
- uint8_t data[0]; | |
}; | |
struct qxl_message { | |
union qxl_release_info release_info; | |
- uint8_t data[0]; | |
}; | |
struct qxl_compat_update_cmd { | |
@@ -469,7 +466,6 @@ struct qxl_raster_glyph { | |
struct qxl_point glyph_origin; | |
uint16_t width; | |
uint16_t height; | |
- uint8_t data[0]; | |
}; | |
struct qxl_string { | |
@@ -768,7 +764,6 @@ enum { | |
struct qxl_path_seg { | |
uint32_t flags; | |
uint32_t count; | |
- struct qxl_point_fix points[0]; | |
}; | |
struct qxl_path { | |
@@ -819,7 +814,6 @@ struct qxl_image_descriptor { | |
struct qxl_palette { | |
uint64_t unique; | |
uint16_t num_ents; | |
- uint32_t ents[0]; | |
}; | |
struct qxl_bitmap { | |
@@ -838,7 +832,6 @@ struct qxl_surface_id { | |
struct qxl_encoder_data { | |
uint32_t data_size; | |
- uint8_t data[0]; | |
}; | |
struct qxl_image { | |
@@ -868,7 +861,6 @@ struct qxl_monitors_config { | |
uint16_t count; | |
uint16_t max_allowed; /* If it is 0 no fixed limit is given by the | |
driver */ | |
- struct qxl_head heads[0]; | |
}; | |
#pragma pack(pop) | |
diff -u -p ./drivers/gpu/drm/radeon/nislands_smc.h /tmp/nothing/drivers/gpu/drm/radeon/nislands_smc.h | |
--- ./drivers/gpu/drm/radeon/nislands_smc.h | |
+++ /tmp/nothing/drivers/gpu/drm/radeon/nislands_smc.h | |
@@ -138,7 +138,6 @@ struct NISLANDS_SMC_SWSTATE | |
uint8_t levelCount; | |
uint8_t padding2; | |
uint8_t padding3; | |
- NISLANDS_SMC_HW_PERFORMANCE_LEVEL levels[1]; | |
}; | |
typedef struct NISLANDS_SMC_SWSTATE NISLANDS_SMC_SWSTATE; | |
diff -u -p ./drivers/gpu/drm/radeon/atombios.h /tmp/nothing/drivers/gpu/drm/radeon/atombios.h | |
--- ./drivers/gpu/drm/radeon/atombios.h | |
+++ /tmp/nothing/drivers/gpu/drm/radeon/atombios.h | |
@@ -3615,7 +3615,6 @@ typedef struct _ATOM_FAKE_EDID_PATCH_REC | |
{ | |
UCHAR ucRecordType; | |
UCHAR ucFakeEDIDLength; | |
- UCHAR ucFakeEDIDString[1]; // This actually has ucFakeEdidLength elements. | |
} ATOM_FAKE_EDID_PATCH_RECORD; | |
typedef struct _ATOM_PANEL_RESOLUTION_PATCH_RECORD | |
@@ -3893,7 +3892,6 @@ typedef struct _ATOM_GPIO_PIN_ASSIGNMENT | |
typedef struct _ATOM_GPIO_PIN_LUT | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_GPIO_PIN_ASSIGNMENT asGPIO_Pin[1]; | |
}ATOM_GPIO_PIN_LUT; | |
/****************************************************************************/ | |
@@ -4020,7 +4018,6 @@ typedef struct _ATOM_DISPLAY_OBJECT_PAT | |
USHORT usSize; //the size of ATOM_DISPLAY_OBJECT_PATH | |
USHORT usConnObjectId; //Connector Object ID | |
USHORT usGPUObjectId; //GPU ID | |
- USHORT usGraphicObjIds[1]; //1st Encoder Obj source from GPU to last Graphic Obj destinate to connector. | |
}ATOM_DISPLAY_OBJECT_PATH; | |
typedef struct _ATOM_DISPLAY_EXTERNAL_OBJECT_PATH | |
@@ -4037,7 +4034,6 @@ typedef struct _ATOM_DISPLAY_OBJECT_PATH | |
UCHAR ucNumOfDispPath; | |
UCHAR ucVersion; | |
UCHAR ucPadding[2]; | |
- ATOM_DISPLAY_OBJECT_PATH asDispPath[1]; | |
}ATOM_DISPLAY_OBJECT_PATH_TABLE; | |
@@ -4053,7 +4049,6 @@ typedef struct _ATOM_OBJECT_TABLE | |
{ | |
UCHAR ucNumberOfObjects; | |
UCHAR ucPadding[3]; | |
- ATOM_OBJECT asObjects[1]; | |
}ATOM_OBJECT_TABLE; | |
typedef struct _ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT //usSrcDstTableOffset pointing to this structure | |
@@ -4061,7 +4056,6 @@ typedef struct _ATOM_SRC_DST_TABLE_FOR_O | |
UCHAR ucNumberOfSrc; | |
USHORT usSrcObjectID[1]; | |
UCHAR ucNumberOfDst; | |
- USHORT usDstObjectID[1]; | |
}ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT; | |
@@ -4233,7 +4227,6 @@ typedef struct _ATOM_CONNECTOR_DEVICE_T | |
ATOM_COMMON_RECORD_HEADER sheader; | |
UCHAR ucNumberOfDevice; | |
UCHAR ucReserved; | |
- ATOM_CONNECTOR_DEVICE_TAG asDeviceTag[1]; //This Id is same as "ATOM_DEVICE_XXX_SUPPORT", 1 is only for allocation | |
}ATOM_CONNECTOR_DEVICE_TAG_RECORD; | |
@@ -4293,7 +4286,6 @@ typedef struct _ATOM_OBJECT_GPIO_CNTL_R | |
ATOM_COMMON_RECORD_HEADER sheader; | |
UCHAR ucFlags; // Future expnadibility | |
UCHAR ucNumberOfPins; // Number of GPIO pins used to control the object | |
- ATOM_GPIO_PIN_CONTROL_PAIR asGpio[1]; // the real gpio pin pair determined by number of pins ucNumberOfPins | |
}ATOM_OBJECT_GPIO_CNTL_RECORD; | |
//Definitions for GPIO pin state | |
@@ -4444,7 +4436,6 @@ typedef struct _ATOM_BRACKET_LAYOUT_REC | |
UCHAR ucWidth; | |
UCHAR ucConnNum; | |
UCHAR ucReserved; | |
- ATOM_CONNECTOR_LAYOUT_INFO asConnInfo[1]; | |
}ATOM_BRACKET_LAYOUT_RECORD; | |
/****************************************************************************/ | |
@@ -4600,7 +4591,6 @@ typedef struct _ATOM_I2C_VOLTAGE_OBJECT | |
UCHAR ucVoltageControlAddress; | |
UCHAR ucVoltageControlOffset; | |
ULONG ulReserved; | |
- VOLTAGE_LUT_ENTRY asVolI2cLut[1]; // end with 0xff | |
}ATOM_I2C_VOLTAGE_OBJECT_V3; | |
// ATOM_I2C_VOLTAGE_OBJECT_V3.ucVoltageControlFlag | |
@@ -4615,7 +4605,6 @@ typedef struct _ATOM_GPIO_VOLTAGE_OBJEC | |
UCHAR ucPhaseDelay; // phase delay in unit of micro second | |
UCHAR ucReserved; | |
ULONG ulGpioMaskVal; // GPIO Mask value | |
- VOLTAGE_LUT_ENTRY_V2 asVolGpioLut[1]; | |
}ATOM_GPIO_VOLTAGE_OBJECT_V3; | |
typedef struct _ATOM_LEAKAGE_VOLTAGE_OBJECT_V3 | |
@@ -4625,7 +4614,6 @@ typedef struct _ATOM_LEAKAGE_VOLTAGE_OB | |
UCHAR ucLeakageEntryNum; // indicate the entry number of LeakageId/Voltage Lut table | |
UCHAR ucReserved[2]; | |
ULONG ulMaxVoltageLevel; | |
- LEAKAGE_VOLTAGE_LUT_ENTRY_V2 asLeakageIdLut[1]; | |
}ATOM_LEAKAGE_VOLTAGE_OBJECT_V3; | |
@@ -4753,7 +4741,6 @@ typedef struct _ATOM_POWER_SOURCE_INFO | |
{ | |
ATOM_COMMON_TABLE_HEADER asHeader; | |
UCHAR asPwrbehave[16]; | |
- ATOM_POWER_SOURCE_OBJECT asPwrObj[1]; | |
}ATOM_POWER_SOURCE_INFO; | |
@@ -5440,7 +5427,6 @@ typedef struct _ATOM_FUSION_SYSTEM_INFO_ | |
typedef struct _ATOM_I2C_DATA_RECORD | |
{ | |
UCHAR ucNunberOfBytes; //Indicates how many bytes SW needs to write to the external ASIC for one block, besides to "Start" and "Stop" | |
- UCHAR ucI2CData[1]; //I2C data in bytes, should be less than 16 bytes usually | |
}ATOM_I2C_DATA_RECORD; | |
@@ -5451,14 +5437,12 @@ typedef struct _ATOM_I2C_DEVICE_SETUP_IN | |
UCHAR ucSSChipID; //SS chip being used | |
UCHAR ucSSChipSlaveAddr; //Slave Address to set up this SS chip | |
UCHAR ucNumOfI2CDataRecords; //number of data block | |
- ATOM_I2C_DATA_RECORD asI2CData[1]; | |
}ATOM_I2C_DEVICE_SETUP_INFO; | |
//========================================================================================== | |
typedef struct _ATOM_ASIC_MVDD_INFO | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_I2C_DEVICE_SETUP_INFO asI2CSetup[1]; | |
}ATOM_ASIC_MVDD_INFO; | |
//========================================================================================== | |
@@ -5520,7 +5504,6 @@ typedef struct _ATOM_ASIC_INTERNAL_SS_IN | |
typedef struct _ATOM_ASIC_INTERNAL_SS_INFO_V2 | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_ASIC_SS_ASSIGNMENT_V2 asSpreadSpectrum[1]; //this is point only. | |
}ATOM_ASIC_INTERNAL_SS_INFO_V2; | |
typedef struct _ATOM_ASIC_SS_ASSIGNMENT_V3 | |
@@ -5542,7 +5525,6 @@ typedef struct _ATOM_ASIC_SS_ASSIGNMENT_ | |
typedef struct _ATOM_ASIC_INTERNAL_SS_INFO_V3 | |
{ | |
ATOM_COMMON_TABLE_HEADER sHeader; | |
- ATOM_ASIC_SS_ASSIGNMENT_V3 asSpreadSpectrum[1]; //this is pointer only. | |
}ATOM_ASIC_INTERNAL_SS_INFO_V3; | |
@@ -6027,7 +6009,6 @@ typedef struct _ENABLE_SCALER_PARAMETERS | |
UCHAR ucScaler; // ATOM_SCALER1, ATOM_SCALER2 | |
UCHAR ucEnable; // ATOM_SCALER_DISABLE or ATOM_SCALER_CENTER or ATOM_SCALER_EXPANSION | |
UCHAR ucTVStandard; // | |
- UCHAR ucPadding[1]; | |
}ENABLE_SCALER_PARAMETERS; | |
#define ENABLE_SCALER_PS_ALLOCATION ENABLE_SCALER_PARAMETERS | |
@@ -6282,7 +6263,6 @@ typedef union _ATOM_MEMORY_SETTING_ID_CO | |
typedef struct _ATOM_MEMORY_SETTING_DATA_BLOCK{ | |
ATOM_MEMORY_SETTING_ID_CONFIG_ACCESS ulMemoryID; | |
- ULONG aulMemData[1]; | |
}ATOM_MEMORY_SETTING_DATA_BLOCK; | |
@@ -6296,7 +6276,6 @@ typedef struct _ATOM_INIT_REG_BLOCK{ | |
USHORT usRegIndexTblSize; //size of asRegIndexBuf | |
USHORT usRegDataBlkSize; //size of ATOM_MEMORY_SETTING_DATA_BLOCK | |
ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1]; | |
- ATOM_MEMORY_SETTING_DATA_BLOCK asRegDataBuf[1]; | |
}ATOM_INIT_REG_BLOCK; | |
#define END_OF_REG_INDEX_BLOCK 0x0ffff | |
@@ -7041,7 +7020,6 @@ typedef struct _ATOM_DISP_OUT_INFO | |
USHORT ptrTransmitterInfo; | |
USHORT ptrEncoderInfo; | |
ASIC_TRANSMITTER_INFO asTransmitterInfo[1]; | |
- ASIC_ENCODER_INFO asEncoderInfo[1]; | |
}ATOM_DISP_OUT_INFO; | |
typedef struct _ATOM_DISP_OUT_INFO_V2 | |
@@ -7051,7 +7029,6 @@ typedef struct _ATOM_DISP_OUT_INFO_V2 | |
USHORT ptrEncoderInfo; | |
USHORT ptrMainCallParserFar; // direct address of main parser call in VBIOS binary. | |
ASIC_TRANSMITTER_INFO asTransmitterInfo[1]; | |
- ASIC_ENCODER_INFO asEncoderInfo[1]; | |
}ATOM_DISP_OUT_INFO_V2; | |
@@ -7092,7 +7069,6 @@ typedef struct _ATOM_DISP_OUT_INFO_V3 | |
UCHAR ucCoreRefClkSource; // value of CORE_REF_CLK_SOURCE | |
UCHAR ucDispCaps; | |
UCHAR ucReserved[2]; | |
- ASIC_TRANSMITTER_INFO_V2 asTransmitterInfo[1]; // for alligment only | |
}ATOM_DISP_OUT_INFO_V3; | |
//ucDispCaps | |
@@ -7324,12 +7300,10 @@ typedef struct _CLOCK_CONDITION_SETTING_ | |
USHORT usMaxClockFreq; | |
UCHAR ucEncodeMode; | |
UCHAR ucPhySel; | |
- ULONG ulAnalogSetting[1]; | |
}CLOCK_CONDITION_SETTING_ENTRY; | |
typedef struct _CLOCK_CONDITION_SETTING_INFO{ | |
USHORT usEntrySize; | |
- CLOCK_CONDITION_SETTING_ENTRY asClkCondSettingEntry[1]; | |
}CLOCK_CONDITION_SETTING_INFO; | |
typedef struct _PHY_CONDITION_REG_VAL{ | |
@@ -7346,27 +7320,23 @@ typedef struct _PHY_CONDITION_REG_VAL_V2 | |
typedef struct _PHY_CONDITION_REG_INFO{ | |
USHORT usRegIndex; | |
USHORT usSize; | |
- PHY_CONDITION_REG_VAL asRegVal[1]; | |
}PHY_CONDITION_REG_INFO; | |
typedef struct _PHY_CONDITION_REG_INFO_V2{ | |
USHORT usRegIndex; | |
USHORT usSize; | |
- PHY_CONDITION_REG_VAL_V2 asRegVal[1]; | |
}PHY_CONDITION_REG_INFO_V2; | |
typedef struct _PHY_ANALOG_SETTING_INFO{ | |
UCHAR ucEncodeMode; | |
UCHAR ucPhySel; | |
USHORT usSize; | |
- PHY_CONDITION_REG_INFO asAnalogSetting[1]; | |
}PHY_ANALOG_SETTING_INFO; | |
typedef struct _PHY_ANALOG_SETTING_INFO_V2{ | |
UCHAR ucEncodeMode; | |
UCHAR ucPhySel; | |
USHORT usSize; | |
- PHY_CONDITION_REG_INFO_V2 asAnalogSetting[1]; | |
}PHY_ANALOG_SETTING_INFO_V2; | |
typedef struct _GFX_HAVESTING_PARAMETERS { | |
@@ -7550,13 +7520,11 @@ typedef struct _ATOM_TMDS_INFO | |
typedef struct _ATOM_ENCODER_ANALOG_ATTRIBUTE | |
{ | |
UCHAR ucTVStandard; //Same as TV standards defined above, | |
- UCHAR ucPadding[1]; | |
}ATOM_ENCODER_ANALOG_ATTRIBUTE; | |
typedef struct _ATOM_ENCODER_DIGITAL_ATTRIBUTE | |
{ | |
UCHAR ucAttribute; //Same as other digital encoder attributes defined above | |
- UCHAR ucPadding[1]; | |
}ATOM_ENCODER_DIGITAL_ATTRIBUTE; | |
typedef union _ATOM_ENCODER_ATTRIBUTE | |
diff -u -p ./drivers/misc/habanalabs/include/goya/goya_packets.h /tmp/nothing/drivers/misc/habanalabs/include/goya/goya_packets.h | |
--- ./drivers/misc/habanalabs/include/goya/goya_packets.h | |
+++ /tmp/nothing/drivers/misc/habanalabs/include/goya/goya_packets.h | |
@@ -62,7 +62,6 @@ struct goya_packet { | |
/* The rest of the packet data follows. Use the corresponding | |
* packet_XXX struct to deference the data, based on packet type | |
*/ | |
- u8 contents[0]; | |
}; | |
struct packet_nop { | |
@@ -86,7 +85,6 @@ struct packet_wreg32 { | |
struct packet_wreg_bulk { | |
__le32 size64; | |
__le32 ctl; | |
- __le64 values[0]; /* data starts here */ | |
}; | |
struct packet_msg_long { | |
diff -u -p ./drivers/scsi/sym53c8xx_2/sym_fw2.h /tmp/nothing/drivers/scsi/sym53c8xx_2/sym_fw2.h | |
--- ./drivers/scsi/sym53c8xx_2/sym_fw2.h | |
+++ /tmp/nothing/drivers/scsi/sym53c8xx_2/sym_fw2.h | |
@@ -185,7 +185,6 @@ struct SYM_FWB_SCR { | |
u32 pm1_data_addr [ 1]; | |
u32 done_pos [ 1]; | |
u32 startpos [ 1]; | |
- u32 targtbl [ 1]; | |
}; | |
/* | |
diff -u -p ./drivers/scsi/be2iscsi/be_cmds.h /tmp/nothing/drivers/scsi/be2iscsi/be_cmds.h | |
--- ./drivers/scsi/be2iscsi/be_cmds.h | |
+++ /tmp/nothing/drivers/scsi/be2iscsi/be_cmds.h | |
@@ -424,7 +424,6 @@ struct mgmt_session_info { | |
u8 target_name[224]; | |
u8 initiator_iscsiname[224]; | |
struct mgmt_session_login_options negotiated_login_options; | |
- struct mgmt_conn_info conn_list[1]; | |
} __packed; | |
struct be_cmd_get_session_req { | |
@@ -1248,7 +1247,6 @@ struct be_fw_cfg { | |
struct be_cmd_get_all_if_id_req { | |
struct be_cmd_req_hdr hdr; | |
u32 if_count; | |
- u32 if_hndl_list[1]; | |
} __packed; | |
struct be_cmd_get_port_name { | |
diff -u -p ./drivers/scsi/qla2xxx/qla_def.h /tmp/nothing/drivers/scsi/qla2xxx/qla_def.h | |
--- ./drivers/scsi/qla2xxx/qla_def.h | |
+++ /tmp/nothing/drivers/scsi/qla2xxx/qla_def.h | |
@@ -3022,12 +3022,6 @@ struct ct_sns_gpnft_rsp { | |
uint8_t vendor_unique; | |
}; | |
/* Assume the largest number of targets for the union */ | |
- struct ct_sns_gpn_ft_data { | |
- u8 control_byte; | |
- u8 port_id[3]; | |
- u32 reserved; | |
- u8 port_name[8]; | |
- } entries[1]; | |
}; | |
/* CT command response */ | |
diff -u -p ./arch/s390/include/asm/fcx.h /tmp/nothing/arch/s390/include/asm/fcx.h | |
--- ./arch/s390/include/asm/fcx.h | |
+++ /tmp/nothing/arch/s390/include/asm/fcx.h | |
@@ -214,7 +214,6 @@ struct dcw_intrg_data { | |
u32 :32; | |
u64 time; | |
u64 prog_id; | |
- u8 prog_data[0]; | |
} __attribute__ ((packed)); | |
#define DCW_FLAGS_CC (1 << (7 - 1)) | |
@@ -241,7 +240,6 @@ struct dcw { | |
u32 :8; | |
u32 cd_count:8; | |
u32 count; | |
- u8 cd[0]; | |
} __attribute__ ((packed)); | |
#define TCCB_FORMAT_DEFAULT 0x7f | |
@@ -286,7 +284,6 @@ struct tccb_tcat { | |
*/ | |
struct tccb { | |
struct tccb_tcah tcah; | |
- u8 tca[0]; | |
} __attribute__ ((packed, aligned(8))); | |
struct tcw *tcw_get_intrg(struct tcw *tcw); | |
diff -u -p ./arch/powerpc/boot/rs6000.h /tmp/nothing/arch/powerpc/boot/rs6000.h | |
--- ./arch/powerpc/boot/rs6000.h | |
+++ /tmp/nothing/arch/powerpc/boot/rs6000.h | |
@@ -149,7 +149,6 @@ struct external_syment | |
char e_scnum[2]; | |
char e_type[2]; | |
char e_sclass[1]; | |
- char e_numaux[1]; | |
}; | |
@@ -230,7 +229,6 @@ struct external_reloc { | |
char r_vaddr[4]; | |
char r_symndx[4]; | |
char r_size[1]; | |
- char r_type[1]; | |
}; | |
diff -u -p ./arch/um/include/shared/net_kern.h /tmp/nothing/arch/um/include/shared/net_kern.h | |
--- ./arch/um/include/shared/net_kern.h | |
+++ /tmp/nothing/arch/um/include/shared/net_kern.h | |
@@ -39,7 +39,6 @@ struct uml_net_private { | |
void (*add_address)(unsigned char *, unsigned char *, void *); | |
void (*delete_address)(unsigned char *, unsigned char *, void *); | |
- char user[0]; | |
}; | |
struct net_kern_info { | |
diff -u -p ./drivers/xen/xen-front-pgdir-shbuf.c /tmp/nothing/drivers/xen/xen-front-pgdir-shbuf.c | |
--- ./drivers/xen/xen-front-pgdir-shbuf.c | |
+++ /tmp/nothing/drivers/xen/xen-front-pgdir-shbuf.c | |
@@ -38,7 +38,6 @@ | |
*/ | |
struct xen_page_directory { | |
grant_ref_t gref_dir_next_page; | |
- grant_ref_t gref[1]; /* Variable length */ | |
}; | |
/** | |
diff -u -p ./drivers/staging/wlan-ng/hfa384x.h /tmp/nothing/drivers/staging/wlan-ng/hfa384x.h | |
--- ./drivers/staging/wlan-ng/hfa384x.h | |
+++ /tmp/nothing/drivers/staging/wlan-ng/hfa384x.h | |
@@ -973,15 +973,12 @@ struct hfa384x_pdr_nicid { | |
} __packed; | |
struct hfa384x_pdr_refdac_measurements { | |
- u16 value[0]; | |
} __packed; | |
struct hfa384x_pdr_vgdac_measurements { | |
- u16 value[0]; | |
} __packed; | |
struct hfa384x_pdr_level_comp_measurements { | |
- u16 value[0]; | |
} __packed; | |
struct hfa384x_pdr_mac_address { | |
diff -u -p ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | |
--- ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | |
+++ /tmp/nothing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | |
@@ -158,7 +158,6 @@ struct brcmf_p2p_pub_act_frame { | |
u8 oui_type; | |
u8 subtype; | |
u8 dialog_token; | |
- u8 elts[1]; | |
}; | |
/** | |
@@ -177,7 +176,6 @@ struct brcmf_p2p_action_frame { | |
u8 type; | |
u8 subtype; | |
u8 dialog_token; | |
- u8 elts[1]; | |
}; | |
/** | |
@@ -192,7 +190,6 @@ struct brcmf_p2psd_gas_pub_act_frame { | |
u8 category; | |
u8 action; | |
u8 dialog_token; | |
- u8 query_data[1]; | |
}; | |
/** | |
diff -u -p ./drivers/scsi/qla4xxx/ql4_def.h /tmp/nothing/drivers/scsi/qla4xxx/ql4_def.h | |
--- ./drivers/scsi/qla4xxx/ql4_def.h | |
+++ /tmp/nothing/drivers/scsi/qla4xxx/ql4_def.h | |
@@ -535,7 +535,6 @@ struct ql4_conn_info { | |
struct ql4_boot_session_info { | |
u8 target_name[224]; | |
- struct ql4_conn_info conn_list[1]; | |
}; | |
struct ql4_boot_tgt_info { | |
diff -u -p ./drivers/scsi/smartpqi/smartpqi.h /tmp/nothing/drivers/scsi/smartpqi/smartpqi.h | |
--- ./drivers/scsi/smartpqi/smartpqi.h | |
+++ /tmp/nothing/drivers/scsi/smartpqi/smartpqi.h | |
@@ -346,7 +346,6 @@ struct pqi_event_config { | |
u8 reserved[2]; | |
u8 num_event_descriptors; | |
u8 reserved1; | |
- struct pqi_event_descriptor descriptors[1]; | |
}; | |
#define PQI_MAX_EVENT_DESCRIPTORS 255 | |
@@ -453,7 +452,6 @@ struct pqi_ofa_memory { | |
__le32 bytes_allocated; /* total allocated memory in bytes */ | |
__le16 num_memory_descriptors; | |
u8 reserved1[2]; | |
- struct pqi_sg_descriptor sg_descriptor[1]; | |
}; | |
struct pqi_aio_error_info { | |
@@ -849,7 +847,6 @@ struct report_log_lun_extended_entry { | |
struct report_log_lun_extended { | |
struct report_lun_header header; | |
- struct report_log_lun_extended_entry lun_entries[1]; | |
}; | |
struct report_phys_lun_extended_entry { | |
@@ -867,7 +864,6 @@ struct report_phys_lun_extended_entry { | |
struct report_phys_lun_extended { | |
struct report_lun_header header; | |
- struct report_phys_lun_extended_entry lun_entries[1]; | |
}; | |
struct raid_map_disk_data { | |
diff -u -p ./arch/xtensa/include/asm/processor.h /tmp/nothing/arch/xtensa/include/asm/processor.h | |
--- ./arch/xtensa/include/asm/processor.h | |
+++ /tmp/nothing/arch/xtensa/include/asm/processor.h | |
@@ -154,7 +154,6 @@ struct thread_struct { | |
struct perf_event *ptrace_wp[XCHAL_NUM_DBREAK]; | |
#endif | |
/* Make structure 16 bytes aligned. */ | |
- int align[0] __attribute__ ((aligned(16))); | |
}; | |
/* This decides where the kernel will search for a free chunk of vm | |
diff -u -p ./arch/x86/include/asm/fpu/types.h /tmp/nothing/arch/x86/include/asm/fpu/types.h | |
--- ./arch/x86/include/asm/fpu/types.h | |
+++ /tmp/nothing/arch/x86/include/asm/fpu/types.h | |
@@ -280,7 +280,6 @@ struct xstate_header { | |
struct xregs_state { | |
struct fxregs_state i387; | |
struct xstate_header header; | |
- u8 extended_state_area[0]; | |
} __attribute__ ((packed, aligned (64))); | |
/* | |
diff -u -p ./arch/x86/include/asm/microcode_amd.h /tmp/nothing/arch/x86/include/asm/microcode_amd.h | |
--- ./arch/x86/include/asm/microcode_amd.h | |
+++ /tmp/nothing/arch/x86/include/asm/microcode_amd.h | |
@@ -38,7 +38,6 @@ struct microcode_header_amd { | |
struct microcode_amd { | |
struct microcode_header_amd hdr; | |
- unsigned int mpb[0]; | |
}; | |
#define PATCH_MAX_SIZE (3 * PAGE_SIZE) | |
diff -u -p ./fs/freevxfs/vxfs_dir.h /tmp/nothing/fs/freevxfs/vxfs_dir.h | |
--- ./fs/freevxfs/vxfs_dir.h | |
+++ /tmp/nothing/fs/freevxfs/vxfs_dir.h | |
@@ -50,7 +50,6 @@ | |
struct vxfs_dirblk { | |
__fs16 d_free; /* free space in dirblock */ | |
__fs16 d_nhash; /* no of hash chains */ | |
- __fs16 d_hash[1]; /* hash chain */ | |
}; | |
/* | |
diff -u -p ./include/linux/net/intel/i40e_client.h /tmp/nothing/include/linux/net/intel/i40e_client.h | |
--- ./include/linux/net/intel/i40e_client.h | |
+++ /tmp/nothing/include/linux/net/intel/i40e_client.h | |
@@ -48,7 +48,6 @@ struct i40e_qv_info { | |
struct i40e_qvlist_info { | |
u32 num_vectors; | |
- struct i40e_qv_info qv_info[1]; | |
}; | |
diff -u -p ./drivers/hid/hid-hyperv.c /tmp/nothing/drivers/hid/hid-hyperv.c | |
--- ./drivers/hid/hid-hyperv.c | |
+++ /tmp/nothing/drivers/hid/hid-hyperv.c | |
@@ -61,7 +61,6 @@ struct synthhid_msg_hdr { | |
struct synthhid_msg { | |
struct synthhid_msg_hdr header; | |
- char data[1]; /* Enclosed message */ | |
}; | |
union synthhid_version { | |
@@ -99,7 +98,6 @@ struct synthhid_device_info_ack { | |
struct synthhid_input_report { | |
struct synthhid_msg_hdr header; | |
- char buffer[1]; | |
}; | |
#pragma pack(pop) | |
@@ -118,7 +116,6 @@ enum pipe_prot_msg_type { | |
struct pipe_prt_msg { | |
enum pipe_prot_msg_type type; | |
u32 size; | |
- char data[1]; | |
}; | |
struct mousevsc_prt_msg { | |
diff -u -p ./drivers/s390/cio/chsc.h /tmp/nothing/drivers/s390/cio/chsc.h | |
--- ./drivers/s390/cio/chsc.h | |
+++ /tmp/nothing/drivers/s390/cio/chsc.h | |
@@ -119,7 +119,6 @@ struct chsc_scpd { | |
u32 zeroes1; | |
struct chsc_header response; | |
u32:32; | |
- u8 data[0]; | |
} __packed __aligned(PAGE_SIZE); | |
struct chsc_sda_area { | |
diff -u -p ./drivers/staging/rtl8723bs/include/wlan_bssdef.h /tmp/nothing/drivers/staging/rtl8723bs/include/wlan_bssdef.h | |
--- ./drivers/staging/rtl8723bs/include/wlan_bssdef.h | |
+++ /tmp/nothing/drivers/staging/rtl8723bs/include/wlan_bssdef.h | |
@@ -68,7 +68,6 @@ struct ndis_802_11_fix_ie { | |
struct ndis_80211_var_ie { | |
u8 ElementID; | |
u8 Length; | |
- u8 data[1]; | |
}; | |
/* Length is the 4 bytes multiples of the sum of | |
diff -u -p ./drivers/video/fbdev/hyperv_fb.c /tmp/nothing/drivers/video/fbdev/hyperv_fb.c | |
--- ./drivers/video/fbdev/hyperv_fb.c | |
+++ /tmp/nothing/drivers/video/fbdev/hyperv_fb.c | |
@@ -169,7 +169,6 @@ struct video_output_situation { | |
struct synthvid_situation_update { | |
u64 user_ctx; | |
u8 video_output_count; | |
- struct video_output_situation video_output[1]; | |
} __packed; | |
struct synthvid_situation_update_ack { | |
@@ -215,7 +214,6 @@ struct rect { | |
struct synthvid_dirt { | |
u8 video_output; | |
u8 dirt_count; | |
- struct rect rect[1]; | |
} __packed; | |
struct synthvid_msg { | |
diff -u -p ./drivers/net/wireless/intel/iwlwifi/fw/api/sta.h /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/sta.h | |
--- ./drivers/net/wireless/intel/iwlwifi/fw/api/sta.h | |
+++ /tmp/nothing/drivers/net/wireless/intel/iwlwifi/fw/api/sta.h | |
@@ -526,7 +526,6 @@ struct iwl_mvm_wep_key_cmd { | |
u8 decryption_type; | |
u8 flags; | |
u8 reserved; | |
- struct iwl_mvm_wep_key wep_key[0]; | |
} __packed; /* SEC_CURR_WEP_KEY_CMD_API_S_VER_2 */ | |
/** | |
diff -u -p ./drivers/scsi/qla4xxx/ql4_fw.h /tmp/nothing/drivers/scsi/qla4xxx/ql4_fw.h | |
--- ./drivers/scsi/qla4xxx/ql4_fw.h | |
+++ /tmp/nothing/drivers/scsi/qla4xxx/ql4_fw.h | |
@@ -1029,7 +1029,6 @@ struct crash_record { | |
uint8_t out_RISC_reg_dump[256]; /* 80 -17F */ | |
uint8_t in_RISC_reg_dump[256]; /*180 -27F */ | |
- uint8_t in_out_RISC_stack_dump[0]; /*280 - ??? */ | |
}; | |
struct conn_event_log_entry { | |
diff -u -p ./drivers/scsi/megaraid/megaraid_sas_fusion.h /tmp/nothing/drivers/scsi/megaraid/megaraid_sas_fusion.h | |
--- ./drivers/scsi/megaraid/megaraid_sas_fusion.h | |
+++ /tmp/nothing/drivers/scsi/megaraid/megaraid_sas_fusion.h | |
@@ -942,7 +942,6 @@ struct MR_FW_RAID_MAP { | |
u8 reserved2[7]; | |
struct MR_ARRAY_INFO arMapInfo[MAX_RAIDMAP_ARRAYS]; | |
struct MR_DEV_HANDLE_INFO devHndlInfo[MAX_RAIDMAP_PHYSICAL_DEVICES]; | |
- struct MR_LD_SPAN_MAP ldSpanMap[1]; | |
}; | |
struct IO_REQUEST_INFO { | |
@@ -1053,7 +1052,6 @@ struct MR_FW_RAID_MAP_DYNAMIC { | |
struct MR_RAID_MAP_DESC_TABLE | |
raid_map_desc_table[RAID_MAP_DESC_TYPE_COUNT]; | |
/* Variable Size buffer containing all data */ | |
- u32 raid_map_desc_data[1]; | |
}; /* Dynamicaly sized RAID MAp structure */ | |
#define IEEE_SGE_FLAGS_ADDR_MASK (0x03) | |
@@ -1182,7 +1180,6 @@ struct MR_DRV_RAID_MAP { | |
devHndlInfo[MAX_RAIDMAP_PHYSICAL_DEVICES_DYN]; | |
u16 ldTgtIdToLd[MAX_LOGICAL_DRIVES_DYN]; | |
struct MR_ARRAY_INFO arMapInfo[MAX_API_ARRAYS_DYN]; | |
- struct MR_LD_SPAN_MAP ldSpanMap[1]; | |
}; | |
@@ -1249,7 +1246,6 @@ struct MR_PD_CFG_SEQ { | |
struct MR_PD_CFG_SEQ_NUM_SYNC { | |
__le32 size; | |
__le32 count; | |
- struct MR_PD_CFG_SEQ seq[1]; | |
} __packed; | |
/* stream detection */ | |
diff -u -p ./arch/x86/include/asm/microcode_intel.h /tmp/nothing/arch/x86/include/asm/microcode_intel.h | |
--- ./arch/x86/include/asm/microcode_intel.h | |
+++ /tmp/nothing/arch/x86/include/asm/microcode_intel.h | |
@@ -19,7 +19,6 @@ struct microcode_header_intel { | |
struct microcode_intel { | |
struct microcode_header_intel hdr; | |
- unsigned int bits[0]; | |
}; | |
/* microcode format is extended from prescott processors */ | |
@@ -33,7 +32,6 @@ struct extended_sigtable { | |
unsigned int count; | |
unsigned int cksum; | |
unsigned int reserved[3]; | |
- struct extended_signature sigs[0]; | |
}; | |
#define DEFAULT_UCODE_DATASIZE (2000) | |
diff -u -p ./fs/select.c /tmp/nothing/fs/select.c | |
--- ./fs/select.c | |
+++ /tmp/nothing/fs/select.c | |
@@ -97,7 +97,6 @@ u64 select_estimate_accuracy(struct time | |
struct poll_table_page { | |
struct poll_table_page * next; | |
struct poll_table_entry * entry; | |
- struct poll_table_entry entries[0]; | |
}; | |
#define POLL_TABLE_FULL(table) \ | |
@@ -836,7 +835,6 @@ SYSCALL_DEFINE1(old_select, struct sel_a | |
struct poll_list { | |
struct poll_list *next; | |
int len; | |
- struct pollfd entries[0]; | |
}; | |
#define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd)) | |
diff -u -p ./include/net/devlink.h /tmp/nothing/include/net/devlink.h | |
--- ./include/net/devlink.h | |
+++ /tmp/nothing/include/net/devlink.h | |
@@ -46,7 +46,6 @@ struct devlink { | |
u8 reload_failed:1, | |
reload_enabled:1, | |
registered:1; | |
- char priv[0] __aligned(NETDEV_ALIGN); | |
}; | |
struct devlink_port_phys_attrs { | |
diff -u -p ./include/linux/nfs_xdr.h /tmp/nothing/include/linux/nfs_xdr.h | |
--- ./include/linux/nfs_xdr.h | |
+++ /tmp/nothing/include/linux/nfs_xdr.h | |
@@ -394,7 +394,6 @@ struct nfs42_layout_error { | |
__u64 offset; | |
__u64 length; | |
nfs4_stateid stateid; | |
- struct nfs42_device_error errors[1]; | |
}; | |
#define NFS42_LAYOUTERROR_MAX 5 | |
diff -u -p ./include/linux/sctp.h /tmp/nothing/include/linux/sctp.h | |
--- ./include/linux/sctp.h | |
+++ /tmp/nothing/include/linux/sctp.h | |
@@ -238,7 +238,6 @@ struct sctp_idatahdr { | |
__u32 ppid; | |
__be32 fsn; | |
}; | |
- __u8 payload[0]; | |
}; | |
struct sctp_idata_chunk { | |
diff -u -p ./drivers/net/fddi/skfp/h/smt.h /tmp/nothing/drivers/net/fddi/skfp/h/smt.h | |
--- ./drivers/net/fddi/skfp/h/smt.h | |
+++ /tmp/nothing/drivers/net/fddi/skfp/h/smt.h | |
@@ -764,7 +764,6 @@ struct smt_sif_operation { | |
struct smt_p_setcount setcount ; /* Set Count mandatory */ | |
#endif | |
/* must be last */ | |
- struct smt_p_lem lem[1] ; /* phy lem status */ | |
} ; | |
#define SIZEOF_SMT_SIF_OPERATION (sizeof(struct smt_sif_operation)- \ | |
sizeof(struct smt_p_lem)) | |
diff -u -p ./drivers/net/wireless/ath/ath11k/core.h /tmp/nothing/drivers/net/wireless/ath/ath11k/core.h | |
--- ./drivers/net/wireless/ath/ath11k/core.h | |
+++ /tmp/nothing/drivers/net/wireless/ath/ath11k/core.h | |
@@ -715,7 +715,6 @@ struct ath11k_base { | |
u32 num_db_cap; | |
/* must be last */ | |
- u8 drv_priv[0] __aligned(sizeof(void *)); | |
}; | |
struct ath11k_fw_stats_pdev { | |
diff -u -p ./drivers/net/wireless/rayctl.h /tmp/nothing/drivers/net/wireless/rayctl.h | |
--- ./drivers/net/wireless/rayctl.h | |
+++ /tmp/nothing/drivers/net/wireless/rayctl.h | |
@@ -577,7 +577,6 @@ struct tx_msg { | |
struct tib_structure tib; | |
struct phy_header phy; | |
struct mac_header mac; | |
- UCHAR var[1]; | |
}; | |
/****** ECF Receive Control Structure (RCS) Area at Shared RAM offset 0x0800 */ | |
diff -u -p ./arch/sparc/include/asm/leon_amba.h /tmp/nothing/arch/sparc/include/asm/leon_amba.h | |
--- ./arch/sparc/include/asm/leon_amba.h | |
+++ /tmp/nothing/arch/sparc/include/asm/leon_amba.h | |
@@ -146,7 +146,6 @@ struct leon3_gptimer_regs_map { | |
struct amba_device_table { | |
int devnr; /* number of devices on AHB or APB bus */ | |
unsigned int *addr[16]; /* addresses to the devices configuration tables */ | |
- unsigned int allocbits[1]; /* 0=unallocated, 1=allocated driver */ | |
}; | |
struct amba_apbslv_device_table { | |
diff -u -p ./arch/sparc/include/asm/hvtramp.h /tmp/nothing/arch/sparc/include/asm/hvtramp.h | |
--- ./arch/sparc/include/asm/hvtramp.h | |
+++ /tmp/nothing/arch/sparc/include/asm/hvtramp.h | |
@@ -17,7 +17,6 @@ struct hvtramp_descr { | |
__u64 fault_info_va; | |
__u64 fault_info_pa; | |
__u64 thread_reg; | |
- struct hvtramp_mapping maps[1]; | |
}; | |
void hv_cpu_startup(unsigned long hvdescr_pa); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment