dax: include bus.h for definition of run_dax()
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?
Signed-off-by Ben Dooks <[email protected]>
--- drivers/dax/super.c | 1 + 1 file changed, 1 insertion(+)
drivers/dax/super.c +1 -0
@@ -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
Quoted 5 lines · Ben Dooks
The
run_dax()prototype is defined in "bus.h" butdrivers/dax/super.cdoes not include this. Includebus.hto 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.
Thank you anyway,
Ira