dm vdo: include <asm/current.h> to resolve current being undeclared
authorMike Snitzer <snitzer@kernel.org>
Tue, 13 Feb 2024 15:51:19 +0000 (10:51 -0500)
committerMike Snitzer <snitzer@kernel.org>
Mon, 4 Mar 2024 20:07:55 +0000 (15:07 -0500)
Reported when building on loongarch.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
drivers/md/dm-vdo/logger.c
drivers/md/dm-vdo/thread-registry.c
drivers/md/dm-vdo/thread-utils.c

index 6ba7e99ee8f91011a5b72512a7952c63097860f1..a50edb0331fc810ba5d5cf954a15dcecc886e7f1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "logger.h"
 
+#include <asm/current.h>
 #include <linux/delay.h>
 #include <linux/hardirq.h>
 #include <linux/module.h>
index 1314d2b6a26f5e337d3d95c3a44dc4b522c27eae..03e2f45e8e78740f365bf4f19b555c8e08177dce 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "thread-registry.h"
 
+#include <asm/current.h>
 #include <linux/rculist.h>
 
 #include "permassert.h"
index 160679984d72bd9fbf97b839008da7430784145c..aeca14bba8529b7153843cbd582fd3536db74976 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "thread-utils.h"
 
+#include <asm/current.h>
 #include <linux/delay.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>