Re: [PATCH] watchdog: watchdog-test: make term() static

2012-07-26 Thread Jerry Snitselaar
On Thu, Jul 26, 2012 at 8:52 PM, Jerry Snitselaar  wrote:
> In 3.5 warning during build 'no previous prototype for term'. Since it
> is only used in watchdog-test.c make term() static.
>
> Signed-off-by: Jerry Snitselaar 
> ---
>  Documentation/watchdog/src/watchdog-test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/watchdog/src/watchdog-test.c 
> b/Documentation/watchdog/src/watchdog-test.c
> index 73ff5cc..3da8229 100644
> --- a/Documentation/watchdog/src/watchdog-test.c
> +++ b/Documentation/watchdog/src/watchdog-test.c
> @@ -31,7 +31,7 @@ static void keep_alive(void)
>   * or "-e" to enable the card.
>   */
>
> -void term(int sig)
> +static void term(int sig)
>  {
>  close(fd);
>  fprintf(stderr, "Stopping watchdog ticks...\n");
> --
> 1.7.12.rc0
>

Disregard this patch. I didn't see Randy's patch when I did a search
in my email.

Jerry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] watchdog: watchdog-test: make term() static

2012-07-26 Thread Jerry Snitselaar
In 3.5 warning during build 'no previous prototype for term'. Since it
is only used in watchdog-test.c make term() static.

Signed-off-by: Jerry Snitselaar 
---
 Documentation/watchdog/src/watchdog-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/watchdog/src/watchdog-test.c 
b/Documentation/watchdog/src/watchdog-test.c
index 73ff5cc..3da8229 100644
--- a/Documentation/watchdog/src/watchdog-test.c
+++ b/Documentation/watchdog/src/watchdog-test.c
@@ -31,7 +31,7 @@ static void keep_alive(void)
  * or "-e" to enable the card.
  */
 
-void term(int sig)
+static void term(int sig)
 {
 close(fd);
 fprintf(stderr, "Stopping watchdog ticks...\n");
-- 
1.7.12.rc0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] watchdog: watchdog-test: make term() static

2012-07-26 Thread Jerry Snitselaar
In 3.5 warning during build 'no previous prototype for term'. Since it
is only used in watchdog-test.c make term() static.

Signed-off-by: Jerry Snitselaar d...@snitselaar.org
---
 Documentation/watchdog/src/watchdog-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/watchdog/src/watchdog-test.c 
b/Documentation/watchdog/src/watchdog-test.c
index 73ff5cc..3da8229 100644
--- a/Documentation/watchdog/src/watchdog-test.c
+++ b/Documentation/watchdog/src/watchdog-test.c
@@ -31,7 +31,7 @@ static void keep_alive(void)
  * or -e to enable the card.
  */
 
-void term(int sig)
+static void term(int sig)
 {
 close(fd);
 fprintf(stderr, Stopping watchdog ticks...\n);
-- 
1.7.12.rc0

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] watchdog: watchdog-test: make term() static

2012-07-26 Thread Jerry Snitselaar
On Thu, Jul 26, 2012 at 8:52 PM, Jerry Snitselaar d...@snitselaar.org wrote:
 In 3.5 warning during build 'no previous prototype for term'. Since it
 is only used in watchdog-test.c make term() static.

 Signed-off-by: Jerry Snitselaar d...@snitselaar.org
 ---
  Documentation/watchdog/src/watchdog-test.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/Documentation/watchdog/src/watchdog-test.c 
 b/Documentation/watchdog/src/watchdog-test.c
 index 73ff5cc..3da8229 100644
 --- a/Documentation/watchdog/src/watchdog-test.c
 +++ b/Documentation/watchdog/src/watchdog-test.c
 @@ -31,7 +31,7 @@ static void keep_alive(void)
   * or -e to enable the card.
   */

 -void term(int sig)
 +static void term(int sig)
  {
  close(fd);
  fprintf(stderr, Stopping watchdog ticks...\n);
 --
 1.7.12.rc0


Disregard this patch. I didn't see Randy's patch when I did a search
in my email.

Jerry
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/