From 93a464e2ef05b7ef78b5679e366b89fcddf6a575 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 3581d1bf..6741d563 100755 --- a/tools/mdflush.py +++ b/tools/mdflush.py @@ -19,7 +19,7 @@ from time import strftime b = BPF(text=""" #include #include -#include +#include #include struct data_t { -- 2.37.1