Skip to contentSkip to conversation

dax: include bus.h for definition of run_dax()

PATCH In review Ben Dooks 2 participants 2 messages Jun 16, 2023

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 dax: include bus.h for definition of run_dax()

The run_dax() prototype is defined in "bus.h" but drivers/dax/super.c does not include this. Include bus.h to silece the following sparse warning:

drivers/dax/super.c:337:6: warning: symbol 'run_dax' was not declared. Should it be static?

---
 drivers/dax/super.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dax/super.c +1 -0
index c4c4728a36e4..8c05dae19bfe 100644
@@ -14,6 +14,7 @@
 #include <linux/dax.h>
 #include <linux/fs.h>
 #include "dax-private.h"
+#include "bus.h"
 
 /**
  * struct dax_device - anchor object for dax services
Signature · 1 line
2.39.2
#1 lore raw
Quoted 5 lines · Ben Dooks

The run_dax() prototype is defined in "bus.h" but drivers/dax/super.c does not include this. Include bus.h to silece the following sparse warning:

drivers/dax/super.c:337:6: warning: symbol 'run_dax' was not declared. Should it be static?

A different version of this fix has already been queued up.

https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/commit/?h=libnvdimm-fixes&id=2d5153526f929838b0912ded26862840f72745f4

Thank you anyway,
Ira