[DRBD-user] drbd 8.4.2rc2 (git) bugs

Dzianis Kahanovich mahatma at bspu.unibel.by
Mon Sep 3 19:00:43 CEST 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

Philipp Reisner написал:

>>>> 2) Building module: detecting security_netlink_recv
>>>> (COMPAT_HAVE_SECURITY_NETLINK_RECV defined) false positive.
>>> On what kernel? (Version and dist flavour)
>> 3.5.3 vanilla (sys-kernel/vanilla-sources "from Gentoo", real vanilla
>> sources).
>> I use next code in my ebuild (gentoo-ish) to workaround:
>> grep -qw security_netlink_recv "${KERNEL_DIR}/include/linux/security.h" ||
>> sed -i -e 's:ifdef COMPAT_HAVE_SECURITY_NETLINK_RECV:if 0:' drbd_nl.c
> Sorry, I can not reproduce this issue on my machine. I guess it has something
> to do with different gcc versions or Gentoo's gcc being more relaxed about
> warnings:

Oh. I use system-wide "-w" flag to speedup builds (and system-wide compiler
flags to kernel) and reduce log trashing. Usually warnings is ignorable in
normal production builds (99%).

> Pleas replace it (compat/tests/have_security_netlink_recv.c) with:
> --snip--
> #include <linux/security.h>
> void *p = security_netlink_recv;
> --snap--
> If this makes it work for you (compilation of 
> compat/tests/have_security_netlink_recv.c fails) I will commit it...

Yes, this works.

WBR, Dzianis Kahanovich AKA Denis Kaganovich, http://mahatma.bspu.unibel.by/

More information about the drbd-user mailing list