linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.4 patch] fix a compile warning in sbc60xxwdt.c
@ 2003-08-03 10:57 Adrian Bunk
  2003-08-05 16:36 ` Marcelo Tosatti
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2003-08-03 10:57 UTC (permalink / raw)
  To: Marcelo Tosatti, Jakob Oestergaard; +Cc: Dave Jones, linux-kernel, trivial

I got the following compile warning in 2.4.22-pre10:

<--  snip  -->

...
gcc -D__KERNEL__ 
-I/home/bunk/linux/kernel-2.4/linux-2.4.22-pre10-full/include -
Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -pipe -mpreferred-stack-boundary=2 -march=k6   -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=sbc60xxwdt  -c -o sbc60xxwdt.o sbc60xxwdt.c
sbc60xxwdt.c: In function `sbc60xxwdt_init':
sbc60xxwdt.c:338: warning: label `err_out' defined but not used
...

<--  snip  -->


The following simple fix (taken from 2.6.0-test2) fixes it:

--- linux-2.4.22-pre10-full/drivers/char/sbc60xxwdt.c	2002-11-29 00:53:12.000000000 +0100
+++ linux-2.6.0-test2-full/drivers/char/watchdog/sbc60xxwdt.c	2003-07-27 19:05:13.000000000 +0200
@@ -335,7 +340,7 @@
 	release_region(WDT_START,1);
 err_out_region1:
 	release_region(WDT_STOP,1);
-err_out:
+/* err_out: */
 	return rc;
 }
 




I've tested the compilation with 2.4.22-pre10.

Please apply
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.4 patch] fix a compile warning in sbc60xxwdt.c
  2003-08-03 10:57 [2.4 patch] fix a compile warning in sbc60xxwdt.c Adrian Bunk
@ 2003-08-05 16:36 ` Marcelo Tosatti
  2003-08-05 21:41   ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Marcelo Tosatti @ 2003-08-05 16:36 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Jakob Oestergaard, Dave Jones, linux-kernel, trivial


Adrian, 

I really prefer having these warning fixes, even if they are Obviously
Right (tm), come to me through the maintainer.

If the respective maintainers dont respond in lets say 1 month, then 
please resend me saying "I've tried to contact the maintainer with no 
success". 

I appreciate your work, but I also care about driver maintainers.

Thank you.

On Sun, 3 Aug 2003, Adrian Bunk wrote:

> I got the following compile warning in 2.4.22-pre10:
> 
> <--  snip  -->
> 
> ...
> gcc -D__KERNEL__ 
> -I/home/bunk/linux/kernel-2.4/linux-2.4.22-pre10-full/include -
> Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
> -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6   -nostdinc -iwithprefix 
> include -DKBUILD_BASENAME=sbc60xxwdt  -c -o sbc60xxwdt.o sbc60xxwdt.c
> sbc60xxwdt.c: In function `sbc60xxwdt_init':
> sbc60xxwdt.c:338: warning: label `err_out' defined but not used


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.4 patch] fix a compile warning in sbc60xxwdt.c
  2003-08-05 16:36 ` Marcelo Tosatti
@ 2003-08-05 21:41   ` Adrian Bunk
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2003-08-05 21:41 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Jakob Oestergaard, Dave Jones, linux-kernel, trivial

On Tue, Aug 05, 2003 at 01:36:17PM -0300, Marcelo Tosatti wrote:

> Adrian, 

Hi Marcelo,

> I really prefer having these warning fixes, even if they are Obviously
> Right (tm), come to me through the maintainer.
> 
> If the respective maintainers dont respond in lets say 1 month, then 
> please resend me saying "I've tried to contact the maintainer with no 
> success". 
> 
> I appreciate your work, but I also care about driver maintainers.

that's OK.

I'll try to follow this.

> Thank you.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-05 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-03 10:57 [2.4 patch] fix a compile warning in sbc60xxwdt.c Adrian Bunk
2003-08-05 16:36 ` Marcelo Tosatti
2003-08-05 21:41   ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).