[Bug 274306] The nlsysevent kernel module fails to load.

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Oct 2023 13:13:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274306

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |markj@FreeBSD.org

--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
A quick hack which fixes the problem is to make sys/modules/nlsysevent/Makefile
define NETLINK_MODULE.  But these parts of netlink_message_writer.h don't
really make sense:

 84 #if defined(NETLINK) || defined(NETLINK_MODULE)                             
 85 /* Provide optimized calls to the functions inside the same linking unit */
...
163 #else                                                                       
164 /* Provide access to the functions via netlink_glue.c */

The implementations in netlink_glue.c are just stubs that get defined when the
kernel is compiled without netlink support, so these comments are just wrong. 
I'm not sure what the intent is.  Do we want to support loading netlink kernel
modules even when the kernel is compiled without netlink support?

-- 
You are receiving this mail because:
You are the assignee for the bug.