From aacec93887e6418a843173132b644315bf29f8d4 Mon Sep 17 00:00:00 2001 From: Jerome Marchand Date: Mon, 1 Aug 2022 11:45:41 +0200 Subject: [PATCH] tools/mdflush: include blkdev.h instead of genhd.h In recent kernels, i.e. since commit 322cbb50de71 ("block: remove genhd.h"), genhd.h header has been removed and its content moved to blkdev.h. Since genhd.h has been included in blkdev.h since forever, including blkdev instead of genhd in the mdflush tool works for both older and newer kernel. --- tools/mdflush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mdflush.py b/tools/mdflush.py index 730d67a6c2b7..514098f20c7f 100755 --- a/tools/mdflush.py +++ b/tools/mdflush.py @@ -19,7 +19,7 @@ bpf_text=""" #include #include -#include +#include #include struct data_t {