[Drbd-dev] [PATCH drbd-9.0] compat: __vmalloc() pgprot argument was removed in v5.8
Lukas Wunner
lukas at wunner.de
Sun Oct 11 20:55:45 CEST 2020
On Sun, Oct 11, 2020 at 08:47:41PM +0200, Elimar Riesebieter wrote:
> * Elimar Riesebieter <riesebie at lxtec.de> [2020-10-11 20:39 +0200]:
> > /var/lib/dkms/drbd/9.0.25-1hsh2/build/src/drbd/drbd_bitmap.c: In function "bm_realloc_pages":
> > /var/lib/dkms/drbd/9.0.25-1hsh2/build/src/drbd/drbd_bitmap.c:368:15: error: too few arguments to function "__vmalloc"
>
> This was on 4.19. I think the changes must depend on KVERS as the
> modules should build from 4.19 upwards. Will try your patch against
> 5.8 tomorrow.
The patch tests whether __vmalloc() expects 2 arguments and applies
the coccinelle patch if not. The coccinelle patch adds the third
argument to the __vmalloc() invocation. This works independently
of the specific kernel version.
Thanks,
Lukas
More information about the drbd-dev
mailing list