All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Include: block: blk_types: Removed unneeded union from bio struct
@ 2016-08-23 18:59 ` John Pittman
  0 siblings, 0 replies; 2+ messages in thread
From: John Pittman @ 2016-08-23 18:59 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, kernel-janitors, jpittman

In include/linux/blk_types.h a nameless, single member
union exists within the bio struct.  It seems to be left
over from earlier, edited patches added in 3.18.  Cleaned
up by removing the union and the tab given to its contents.

Signed-off-by: John Pittman <jpittman@redhat.com>
---
 include/linux/blk_types.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index 436f43f..972ace4 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -61,11 +61,10 @@ struct bio {
 	struct io_context	*bi_ioc;
 	struct cgroup_subsys_state *bi_css;
 #endif
-	union {
+
 #if defined(CONFIG_BLK_DEV_INTEGRITY)
-		struct bio_integrity_payload *bi_integrity; /* data integrity */
+	struct bio_integrity_payload *bi_integrity; /* data integrity */
 #endif
-	};
 
 	unsigned short		bi_vcnt;	/* how many bio_vec's */
 
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] Include: block: blk_types: Removed unneeded union from bio struct
@ 2016-08-23 18:59 ` John Pittman
  0 siblings, 0 replies; 2+ messages in thread
From: John Pittman @ 2016-08-23 18:59 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, kernel-janitors, jpittman

In include/linux/blk_types.h a nameless, single member
union exists within the bio struct.  It seems to be left
over from earlier, edited patches added in 3.18.  Cleaned
up by removing the union and the tab given to its contents.

Signed-off-by: John Pittman <jpittman@redhat.com>
---
 include/linux/blk_types.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index 436f43f..972ace4 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -61,11 +61,10 @@ struct bio {
 	struct io_context	*bi_ioc;
 	struct cgroup_subsys_state *bi_css;
 #endif
-	union {
+
 #if defined(CONFIG_BLK_DEV_INTEGRITY)
-		struct bio_integrity_payload *bi_integrity; /* data integrity */
+	struct bio_integrity_payload *bi_integrity; /* data integrity */
 #endif
-	};
 
 	unsigned short		bi_vcnt;	/* how many bio_vec's */
 
-- 
2.5.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-23 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 18:59 [PATCH] Include: block: blk_types: Removed unneeded union from bio struct John Pittman
2016-08-23 18:59 ` John Pittman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.