Reported by Marco Gatti :
I decided to upgrade from 2.4.34 to 2.4.35 in one of my servers but i
encountered a compile problem:
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
I know this was an already fixed bug but now it seems to come out again
compiling 2.4.35 vanilla with gcc version 4.1.3
20070629 (prerelease) (Debian
4.1.2-13). 2.4.34.6 vanilla compiled fine.
Simple fix below tested and confirmed by Marco.
/* static char rootvg[NAME_LEN] = { 0, }; */
static int lock = 0;
static int _lock_open_count = 0;
-static uint vg_count = 0;
+uint vg_count = 0;
static long lvm_chr_open_count = 0;
static DECLARE_WAIT_QUEUE_HEAD(lvm_wait);