dynamic_debug.h isn't included via kernel.h anymore. Since drbd_int.h needs
it to access dynamic_dev_dbg for dynamic_drbd_dbg, include the header
directly.
Removing inclusion of dynamic_debug.h from drbd_actlog.c since it is
already included via drbd_int.h.

Signed-off-by: Luis de Bethencourt <[email protected]>
---
Hi,

Thanks to kbuild test robot for pointing this out [0]

It only happened if CONFIG_DYNAMIC_DEBUG was not set, which is why I
accidentaly missed in my testing.

Luis


[0] https://lists.01.org/pipermail/kbuild-all/2016-July/021902.html

 drivers/block/drbd/drbd_actlog.c | 1 -
 drivers/block/drbd/drbd_int.h    | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c
index 0a1aaf8..2d3d50a 100644
--- a/drivers/block/drbd/drbd_actlog.c
+++ b/drivers/block/drbd/drbd_actlog.c
@@ -27,7 +27,6 @@
 #include <linux/crc32c.h>
 #include <linux/drbd.h>
 #include <linux/drbd_limits.h>
-#include <linux/dynamic_debug.h>
 #include "drbd_int.h"
 
 
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index 7b54354..4cb8f21 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -41,6 +41,7 @@
 #include <linux/backing-dev.h>
 #include <linux/genhd.h>
 #include <linux/idr.h>
+#include <linux/dynamic_debug.h>
 #include <net/tcp.h>
 #include <linux/lru_cache.h>
 #include <linux/prefetch.h>
-- 
2.5.3

Reply via email to