linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compilation of 2.5.1-pre11 fails w/LVM as module
@ 2001-12-16 14:36 s.rivoir
  2001-12-17  6:05 ` Thorkild Stray
  0 siblings, 1 reply; 2+ messages in thread
From: s.rivoir @ 2001-12-16 14:36 UTC (permalink / raw)
  To: linux-kernel


As stated in the subject, this is 'make modules' output:

make[2]: Entering directory `/us2/usr/src/linux/drivers/md'
gcc -D__KERNEL__ -I/us2/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing-fno-common -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4  -DMODULE   -c -o lvm.o lvm.clvm.c: In function `lvm_user_bmap':
lvm.c:1046: request for member `bv_len' in something not a structure or union
make[2]: *** [lvm.o] Error 1
make[2]: Leaving directory `/us2/usr/src/linux/drivers/md'
make[1]: *** [_modsubdir_md] Error 2
make[1]: Leaving directory `/us2/usr/src/linux/drivers'
make: *** [_mod_drivers] Error 2

Sorry if already issued by someone else :)

Bye

-- 
Stefano





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

* Re: Compilation of 2.5.1-pre11 fails w/LVM as module
  2001-12-16 14:36 Compilation of 2.5.1-pre11 fails w/LVM as module s.rivoir
@ 2001-12-17  6:05 ` Thorkild Stray
  0 siblings, 0 replies; 2+ messages in thread
From: Thorkild Stray @ 2001-12-17  6:05 UTC (permalink / raw)
  To: linux-kernel

<s.rivoir@gts.it> writes:

> As stated in the subject, this is 'make modules' output:
> 
> make[2]: Entering directory `/us2/usr/src/linux/drivers/md'
> gcc -D__KERNEL__ -I/us2/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing-fno-common -pipe -mpreferred-stack-boundary=2 -march=i686
> -malign-functions=4  -DMODULE   -c -o lvm.o lvm.clvm.c: In function `lvm_user_bmap':
> lvm.c:1046: request for member `bv_len' in something not a structure or union
> make[2]: *** [lvm.o] Error 1
> make[2]: Leaving directory `/us2/usr/src/linux/drivers/md'
> make[1]: *** [_modsubdir_md] Error 2
> make[1]: Leaving directory `/us2/usr/src/linux/drivers'
> make: *** [_mod_drivers] Error 2
> Sorry if already issued by someone else :)

This can be fixed (so that is compiles) by just changing line 1046 from:

bio.bi_io_vec.bv_len = lvm_get_blksize(bio.bi_dev);

to

bio.bi_io_vec->bv_len = lvm_get_blksize(bio.bi_dev);

This is due to changes in the I/O layer. You used to only have one
bio_vec struct in the bio struct, but now it has changed to a linked
list.

Warning: This makes it compile, but it does not necessarily make it
work, but I might. :) Since the rest of LVM hasn't been changed to
use the new linked-list-possibility, it shouldn't make a difference.


-- 
Thorkild Stray, Linpro AS                              <thorkild@linpro.no>

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

end of thread, other threads:[~2001-12-17  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-16 14:36 Compilation of 2.5.1-pre11 fails w/LVM as module s.rivoir
2001-12-17  6:05 ` Thorkild Stray

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).