Bug 243005

Summary: Cannot compile kernel with drm-current-kmod installed?
Product: Base System Reporter: mmatalka
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description mmatalka 2019-12-31 16:48:50 UTC
I'm not sure exactly what's happening but it looks like I cannot compile the latest source because I also do not have the latest drm-current-kmod source, but I believe I cannot install the latest drm-current-kmod until I have compiled the latest kernel.  Is that correct?

I receive the follow error message while building the kernel and world.

--- drm_os_freebsd.o ---
/usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_os_freebsd.c:47:3: error: implicit declaration of function 'untimeout' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                untimeout(clear_debug_func, NULL, reset_debug_log_handle);
                ^
/usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_os_freebsd.c:57:28: error: implicit declaration of function 'timeout' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                reset_debug_log_handle = timeout(clear_debug_func, NULL,
                                         ^
/usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_os_freebsd.c:57:26: error: assigning to 'struct callout_handle' from incompatible type 'int'
                reset_debug_log_handle = timeout(clear_debug_func, NULL,
                                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
*** [drm_os_freebsd.o] Error code 1
Comment 1 mmatalka 2020-01-09 14:24:25 UTC
Fixed this by updating the drm-current-kmod port and then recompiling.