Skip to content

Commit 3ce62cf

Browse files
committed
Merge tag 'flexible-array-transformations-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
Pull flexible-array transformations from Gustavo Silva: "Treewide patch that replaces zero-length arrays with flexible-array members. This has been baking in linux-next for a whole development cycle" * tag 'flexible-array-transformations-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: treewide: Replace zero-length arrays with flexible-array members
2 parents cd4699c + 5224f79 commit 3ce62cf

66 files changed

Lines changed: 111 additions & 111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/alpha/include/asm/hwrpb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct memdesc_struct {
152152
unsigned long chksum;
153153
unsigned long optional_pa;
154154
unsigned long numclusters;
155-
struct memclust_struct cluster[0];
155+
struct memclust_struct cluster[];
156156
};
157157

158158
struct dsr_struct {

arch/ia64/include/asm/sal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ typedef struct sal_log_processor_info {
420420
* The rest of this structure consists of variable-length arrays, which can't be
421421
* expressed in C.
422422
*/
423-
sal_log_mod_error_info_t info[0];
423+
sal_log_mod_error_info_t info[];
424424
/*
425425
* This is what the rest looked like if C supported variable-length arrays:
426426
*

arch/s390/include/asm/ccwgroup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct ccwgroup_device {
2525
unsigned int count;
2626
struct device dev;
2727
struct work_struct ungroup_work;
28-
struct ccw_device *cdev[0];
28+
struct ccw_device *cdev[];
2929
};
3030

3131
/**

arch/s390/include/asm/chsc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct chsc_pnso_area {
6363
struct chsc_header response;
6464
u32:32;
6565
struct chsc_pnso_naihdr naihdr;
66-
struct chsc_pnso_naid_l2 entries[0];
66+
struct chsc_pnso_naid_l2 entries[];
6767
} __packed __aligned(PAGE_SIZE);
6868

6969
#endif /* _ASM_S390_CHSC_H */

arch/s390/include/asm/eadm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct aob {
7878

7979
struct aob_rq_header {
8080
struct scm_device *scmdev;
81-
char data[0];
81+
char data[];
8282
};
8383

8484
struct scm_device {

arch/s390/include/asm/fcx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct dcw_intrg_data {
214214
u32 :32;
215215
u64 time;
216216
u64 prog_id;
217-
u8 prog_data[0];
217+
u8 prog_data[];
218218
} __attribute__ ((packed));
219219

220220
#define DCW_FLAGS_CC (1 << (7 - 1))
@@ -241,7 +241,7 @@ struct dcw {
241241
u32 :8;
242242
u32 cd_count:8;
243243
u32 count;
244-
u8 cd[0];
244+
u8 cd[];
245245
} __attribute__ ((packed));
246246

247247
#define TCCB_FORMAT_DEFAULT 0x7f

arch/s390/include/asm/idals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ clear_normalized_cda(struct ccw1 * ccw)
108108
struct idal_buffer {
109109
size_t size;
110110
size_t page_order;
111-
void *data[0];
111+
void *data[];
112112
};
113113

114114
/*

arch/s390/include/asm/sclp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ struct zpci_report_error_header {
112112
* (OpenCrypto Successful Diagnostics Execution)
113113
*/
114114
u16 length; /* Length of Subsequent Data (up to 4K – SCLP header */
115-
u8 data[0]; /* Subsequent Data passed verbatim to SCLP ET 24 */
115+
u8 data[]; /* Subsequent Data passed verbatim to SCLP ET 24 */
116116
} __packed;
117117

118118
extern char *sclp_early_sccb;

arch/s390/include/asm/sysinfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ struct sysinfo_1_2_2 {
6767
unsigned short cpus_configured;
6868
unsigned short cpus_standby;
6969
unsigned short cpus_reserved;
70-
unsigned short adjustment[0];
70+
unsigned short adjustment[];
7171
};
7272

7373
struct sysinfo_1_2_2_extension {
7474
unsigned int alt_capability;
75-
unsigned short alt_adjustment[0];
75+
unsigned short alt_adjustment[];
7676
};
7777

7878
struct sysinfo_2_2_1 {
@@ -181,7 +181,7 @@ struct sysinfo_15_1_x {
181181
unsigned char reserved1;
182182
unsigned char mnest;
183183
unsigned char reserved2[4];
184-
union topology_entry tle[0];
184+
union topology_entry tle[];
185185
};
186186

187187
int stsi(void *sysinfo, int fc, int sel1, int sel2);

arch/sh/include/asm/thread_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct thread_info {
3232
int preempt_count; /* 0 => preemptable, <0 => BUG */
3333
unsigned long previous_sp; /* sp of previous stack in case
3434
of nested IRQ stacks */
35-
__u8 supervisor_stack[0];
35+
__u8 supervisor_stack[];
3636
};
3737

3838
#endif

0 commit comments

Comments
 (0)