[Drbd-dev] [PATCH 1/8] compat: fix include for submit_bio test
Michael D Labriola
michael.d.labriola at gmail.com
Sun Dec 13 06:06:57 CET 2020
Looks like this test is including the wrong header to get at struct
block_device_operations.
Signed-off-by: Michael D Labriola <michael.d.labriola at gmail.com>
---
drbd/drbd-kernel-compat/tests/have_submit_bio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drbd/drbd-kernel-compat/tests/have_submit_bio.c b/drbd/drbd-kernel-compat/tests/have_submit_bio.c
index 26bc7e8c..ca94cd27 100644
--- a/drbd/drbd-kernel-compat/tests/have_submit_bio.c
+++ b/drbd/drbd-kernel-compat/tests/have_submit_bio.c
@@ -1,6 +1,6 @@
/* { "version": "v5.8", "commit": "c62b37d96b6eb3ec5ae4cbe00db107bf15aebc93", "comment": "Since 5.8 make_request_fn has been replaced by a block_device_operations method called submit_bio", "author": "Christoph Hellwig <hch at lst.de>", "date": "Wed Jul 1 10:59:43 2020 +0200" } */
-#include <linux/blk_types.h>
+#include <linux/blkdev.h>
void foo(struct block_device_operations *ops)
{
--
2.17.1
More information about the drbd-dev
mailing list