From: H Hartley Sweeten Date: Fri, 20 Apr 2012 20:28:24 +0000 (-0700) Subject: watchdog: watchdog_dev: include private header to pickup global symbol prototypes X-Git-Tag: firefly_0821_release~3680^2~2717^2~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=09a46e739780aab2eadf47afdefa70c9cd69d83d;p=firefly-linux-kernel-4.4.55.git watchdog: watchdog_dev: include private header to pickup global symbol prototypes 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 Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index 8558da912c42..6c18a58cfd17 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c @@ -42,6 +42,8 @@ #include /* For __init/__exit/... */ #include /* 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 */