Skip to contentSkip to conversation

rapidio: fix missing include of <linux/rio_drv.h>

PATCH New Ben Dooks (Codethink) 1 participant 1 message Oct 17, 2019 Rapidio

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rapidio: fix missing include of <linux/rio_drv.h>

Include <linux/rio_drv.h> for the missing declarations of functions exported from this file. Fixes the following sparse warnings:

drivers/rapidio/rio-driver.c:53:16: warning: symbol 'rio_dev_get' was not declared. Should it be static? drivers/rapidio/rio-driver.c:70:6: warning: symbol 'rio_dev_put' was not declared. Should it be static? drivers/rapidio/rio-driver.c:150:5: warning: symbol 'rio_register_driver' was not declared. Should it be static? drivers/rapidio/rio-driver.c:169:6: warning: symbol 'rio_unregister_driver' was not declared. Should it be static?

---
Cc: Matt Porter <[email protected]>
Cc: Alexandre Bounine <[email protected]>
Cc: [email protected]

---
 drivers/rapidio/rio-driver.c | 1 +
 1 file changed, 1 insertion(+)
drivers/rapidio/rio-driver.c +1 -0
index 2d99a3712b72..72874153972e 100644
@@ -10,6 +10,7 @@
 #include <linux/module.h>
 #include <linux/rio.h>
 #include <linux/rio_ids.h>
+#include <linux/rio_drv.h>
 
 #include "rio.h"
 
Signature · 1 line
2.23.0