Mailing List Archive

drbd-9.0.25-1 doesn't build against linux 5.8
Hi all,

building 9.0.25-1 dkms modul against linux 5.8 gives:

/var/lib/dkms/drbd/9.0.25-1hsh1/build/make.log:

/var/lib/dkms/drbd/9.0.25-1hsh1/build/src/drbd/drbd_bitmap.c: In function ‘bm_realloc_pages’:
/var/lib/dkms/drbd/9.0.25-1hsh1/build/src/drbd/drbd_bitmap.c:368:15: error:
too many arguments to function ‘__vmalloc’
new_pages = __vmalloc(bytes,
^~~~~~~~~
In file included from /var/lib/dkms/drbd/9.0.25-1hsh1/build/src/drbd/drbd_bitmap.c:16:
/usr/src/linux-headers-5.8.0-0.bpo.2-common/include/linux/vmalloc.h:111:14: note: declared here
extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);

Indeed signatures have been changed:

5.7:
extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);

5.8:
extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);

will there be a short-term update?

Thanks in advance

Elimar
--
BOFH excuse #260:
We're upgrading /dev/null
_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user
Re: drbd-9.0.25-1 doesn't build against linux 5.8 [ In reply to ]
I didn't see any response to this on the archives, and am having the
same problem. I'm trying to install onto a raspberry pi 4 using ubuntu
20.10.

The last part of my compile log:

  CC [M]
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd/drbd_sender.o
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd/drbd_bitmap.c: In
function ‘bm_realloc_pages’:
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd/drbd_bitmap.c:368:15:
error: too many arguments to function ‘__vmalloc’
  368 |   new_pages = __vmalloc(bytes,
      |               ^~~~~~~~~
In file included from
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd/drbd_bitmap.c:16:
./include/linux/vmalloc.h:111:14: note: declared here
  111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
      |              ^~~~~~~~~
  CC [M]
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd/drbd_receiver.o
make[2]: *** [scripts/Makefile.build:290:
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd/drbd_bitmap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1783:
/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd] Error 2
make: *** [Makefile:132: kbuild] Error 2
make: Leaving directory
'/var/lib/dkms/drbd/9.0.25-1ppa1~focal1/build/src/drbd'

Is there a simple solution to this?

Regards,
Adam

On 12/10/20 00:54, Elimar Riesebieter wrote:
> Hi all,
>
> building 9.0.25-1 dkms modul against linux 5.8 gives:
>
> /var/lib/dkms/drbd/9.0.25-1hsh1/build/make.log:
>
> /var/lib/dkms/drbd/9.0.25-1hsh1/build/src/drbd/drbd_bitmap.c: In function ‘bm_realloc_pages’:
> /var/lib/dkms/drbd/9.0.25-1hsh1/build/src/drbd/drbd_bitmap.c:368:15: error:
> too many arguments to function ‘__vmalloc’
> new_pages = __vmalloc(bytes,
> ^~~~~~~~~
> In file included from /var/lib/dkms/drbd/9.0.25-1hsh1/build/src/drbd/drbd_bitmap.c:16:
> /usr/src/linux-headers-5.8.0-0.bpo.2-common/include/linux/vmalloc.h:111:14: note: declared here
> extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
>
> Indeed signatures have been changed:
>
> 5.7:
> extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
>
> 5.8:
> extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
>
> will there be a short-term update?
>
> Thanks in advance
>
> Elimar

--
Adam Goryachev
Website Managers
P: +61 2 8304 0000 adam@websitemanagers.com.au
F: +61 2 8304 0001 www.websitemanagers.com.au

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user