public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4.35 compilation failed in LVM
@ 2007-08-07 13:24 Vincent Legoll
  2007-08-07 14:27 ` Willy Tarreau
  2007-08-07 14:43 ` Gabriel C
  0 siblings, 2 replies; 3+ messages in thread
From: Vincent Legoll @ 2007-08-07 13:24 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

Hello,

I tried to get 2.4.35 to compile on a file server I manage, and got that:

gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fno-builtin-sprintf -fomit-frame-pointer
-Wno-pointer-sign -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4/include/linux/modversions.h  -nostdinc -iwithprefix
include -DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c
lvm.c:397: error: static declaration of 'vg_count' follows non-static
declaration
lvm-internal.h:48: error: previous declaration of 'vg_count' was here

looking in the 2.4.35 patch, this has been modified, is there already
a fix for that ?

Reverting the attached patch hunk fixed the compilation for me...

-- 
Vincent Legoll

[-- Attachment #2: patch-fix-lvm-compil --]
[-- Type: application/octet-stream, Size: 330 bytes --]

diff --git a/drivers/md/lvm-internal.h b/drivers/md/lvm-internal.h
index aca8632..f95069e 100644
--- a/drivers/md/lvm-internal.h
+++ b/drivers/md/lvm-internal.h
@@ -45,6 +45,7 @@ extern int loadtime;
 extern const char *const lvm_name;
 
 
+extern uint vg_count;
 extern vg_t *vg[];
 extern struct file_operations lvm_chr_fops;
 

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

* Re: [PATCH] 2.4.35 compilation failed in LVM
  2007-08-07 13:24 [PATCH] 2.4.35 compilation failed in LVM Vincent Legoll
@ 2007-08-07 14:27 ` Willy Tarreau
  2007-08-07 14:43 ` Gabriel C
  1 sibling, 0 replies; 3+ messages in thread
From: Willy Tarreau @ 2007-08-07 14:27 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: linux-kernel

On Tue, Aug 07, 2007 at 03:24:17PM +0200, Vincent Legoll wrote:
> Hello,
> 
> I tried to get 2.4.35 to compile on a file server I manage, and got that:
> 
> gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fno-builtin-sprintf -fomit-frame-pointer
> -Wno-pointer-sign -pipe -mpreferred-stack-boundary=2 -march=i686
> -fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4/include/linux/modversions.h  -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c
> lvm.c:397: error: static declaration of 'vg_count' follows non-static
> declaration
> lvm-internal.h:48: error: previous declaration of 'vg_count' was here
> 
> looking in the 2.4.35 patch, this has been modified, is there already
> a fix for that ?

Yes, the fix is already queued in -git for 2.4.35.1 :

   http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.4.35.y.git;a=commitdiff_plain;h=0a1b1818b031b46e3755f12f5cff76df7a0661a8

Best regards,
Willy


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

* Re: [PATCH] 2.4.35 compilation failed in LVM
  2007-08-07 13:24 [PATCH] 2.4.35 compilation failed in LVM Vincent Legoll
  2007-08-07 14:27 ` Willy Tarreau
@ 2007-08-07 14:43 ` Gabriel C
  1 sibling, 0 replies; 3+ messages in thread
From: Gabriel C @ 2007-08-07 14:43 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: Willy Tarreau, linux-kernel

Vincent Legoll wrote:
> Hello,

Hi,

> 
> I tried to get 2.4.35 to compile on a file server I manage, and got that:
> 
> gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fno-builtin-sprintf -fomit-frame-pointer
> -Wno-pointer-sign -pipe -mpreferred-stack-boundary=2 -march=i686
> -fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4/include/linux/modversions.h  -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c
> lvm.c:397: error: static declaration of 'vg_count' follows non-static
> declaration
> lvm-internal.h:48: error: previous declaration of 'vg_count' was here
> 
> looking in the 2.4.35 patch, this has been modified, is there already
> a fix for that ?

Yes there is :

http://git.kernel.org/?p=linux/kernel/git/wtarreau/linux-2.4.git;a=commitdiff;h=0a1b1818b031b46e3755f12f5cff76df7a0661a8

 

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

end of thread, other threads:[~2007-08-07 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07 13:24 [PATCH] 2.4.35 compilation failed in LVM Vincent Legoll
2007-08-07 14:27 ` Willy Tarreau
2007-08-07 14:43 ` Gabriel C

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox