Commit 3ce62cf4 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'flexible-array-transformations-5.18-rc1' of...

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
parents cd4699c5 5224f790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ struct memdesc_struct {
	unsigned long chksum;
	unsigned long optional_pa;
	unsigned long numclusters;
	struct memclust_struct cluster[0];
	struct memclust_struct cluster[];
};

struct dsr_struct {
+1 −1
Original line number Diff line number Diff line
@@ -420,7 +420,7 @@ 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];
	sal_log_mod_error_info_t info[];
	/*
	 * This is what the rest looked like if C supported variable-length arrays:
	 *
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ struct ccwgroup_device {
	unsigned int count;
	struct device	dev;
	struct work_struct ungroup_work;
	struct ccw_device *cdev[0];
	struct ccw_device *cdev[];
};

/**
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ struct chsc_pnso_area {
	struct chsc_header response;
	u32:32;
	struct chsc_pnso_naihdr naihdr;
	struct chsc_pnso_naid_l2 entries[0];
	struct chsc_pnso_naid_l2 entries[];
} __packed __aligned(PAGE_SIZE);

#endif /* _ASM_S390_CHSC_H */
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ struct aob {

struct aob_rq_header {
	struct scm_device *scmdev;
	char data[0];
	char data[];
};

struct scm_device {
Loading