[PATCH 1/3] w1: fix "no previous prototype for 'w1_found'" warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch fixes the following compiler's warning:

drivers/w1/w1.c:459:6: warning: no previous prototype for ‘w1_found’ [-Wmissing-prototypes]
 void w1_found(struct w1_bus *bus, u64 rn)
      ^~~~~~~~

Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
---
 drivers/w1/w1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 694ffa853e..f74046c0b7 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -456,7 +456,7 @@ int w1_driver_register(struct w1_driver *drv)
 	return register_driver(&drv->drv);
 }
 
-void w1_found(struct w1_bus *bus, u64 rn)
+static void w1_found(struct w1_bus *bus, u64 rn)
 {
 	struct w1_device *dev;
 	u64 tmp = be64_to_cpu(rn);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux