Dear All,

I'm trying to rebuild the blktap module from xenserver. I'm getting
following compile errors, any help or direction would be appreciated.

make[2]: Entering directory
`/root/rpmbuild/BUILD/blktap-3.2.0.xs1086/drivers'

/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..  -D_GNU_SOURCE
-I../include  -Wall -Werror -DXC_WANT_COMPAT_EVTCHN_API
-DXC_WANT_COMPAT_GNTTAB_API -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches   -m64 -mtune=generic -c -o td-req.lo td-req.c

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -I../include
-Wall -Werror -DXC_WANT_COMPAT_EVTCHN_API -DXC_WANT_COMPAT_GNTTAB_API -O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -mtune=generic -c td-req.c  -fPIC -DPIC -o .libs/td-req.o

*td-req.c:* In function '*guest_copy2*':

*td-req.c:359:18:* *error: *'*struct gntdev_grant_copy_segment*' has no
member named '*iov*'

         gcopy_seg->iov.iov_base = tapreq->vma + (i << PAGE_SHIFT) +
(blkif_seg->first_sect << SECTOR_SHIFT);

*                  ^*

*td-req.c:360:18:* *error: *'*struct gntdev_grant_copy_segment*' has no
member named '*iov*'

         gcopy_seg->iov.iov_len = (blkif_seg->last_sect -
blkif_seg->first_sect + 1) << SECTOR_SHIFT;

*                  ^*

*td-req.c:361:18:* *error: *'*struct gntdev_grant_copy_segment*' has no
member named '*ref*'

         gcopy_seg->ref = blkif_seg->gref;

*                  ^*

*td-req.c:362:18:* *error: *'*struct gntdev_grant_copy_segment*' has no
member named '*offset*'

         gcopy_seg->offset = blkif_seg->first_sect << SECTOR_SHIFT;

*                  ^*

*td-req.c:365:10:* *error: *'*struct ioctl_gntdev_grant_copy*' has no
member named '*dir*'

     gcopy.dir = blkif_rq_wr(&tapreq->msg);

*          ^*

*td-req.c:366:10:* *error: *'*struct ioctl_gntdev_grant_copy*' has no
member named '*domid*'

     gcopy.domid = blkif->domid;

*          ^*

make[2]: *** [td-req.lo] Error 1

make[2]: Leaving directory
`/root/rpmbuild/BUILD/blktap-3.2.0.xs1086/drivers'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/rpmbuild/BUILD/blktap-3.2.0.xs1086'

make: *** [all] Error 2


I can share updated structures on Xen side but not sure how to modify above
code to let it adhere to latest xen.


Thank you.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to