watchdog: watchdog_dev: include private header to pickup global symbol prototypes
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 20 Apr 2012 20:28:24 +0000 (13:28 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 30 May 2012 05:53:28 +0000 (07:53 +0200)
Include the private watchdog_dev.h header to pickup the prototypes for the
watchdog_dev_register/unregister functions.

This quiets the following sparse warnings:

warning: symbol 'watchdog_dev_register' was not declared. Should it be static?
warning: symbol 'watchdog_dev_unregister' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/watchdog_dev.c

index 8558da912c42fd76c5bde4ddd55528ed0be48615..6c18a58cfd1751d993eaf46f63a0dc74b399784c 100644 (file)
@@ -42,6 +42,8 @@
 #include <linux/init.h>                /* For __init/__exit/... */
 #include <linux/uaccess.h>     /* For copy_to_user/put_user/... */
 
+#include "watchdog_dev.h"
+
 /* make sure we only register one /dev/watchdog device */
 static unsigned long watchdog_dev_busy;
 /* the watchdog device behind /dev/watchdog */