xserver/config
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Fourdan a83cd99cd2 config: Fix build with udev disabled
Commit b5b52979 has split the options "udev" and "udev_kms" for systems
without systemd.

Yet, when building with "-Dudev=false", "udev_kms" still defaults to
true.

That breaks the build because "config_udev_odev_probe()" is not defined:

| config/config.c: In function ‘config_odev_probe’:
| config/config.c:77:5: error: implicit declaration of function
|                       ‘config_udev_odev_probe’; did you mean
|                       ‘config_odev_probe’?
|                       [-Wimplicit-function-declaration]
|   77 |     config_udev_odev_probe(probe_callback);
|      |     ^~~~~~~~~~~~~~~~~~~~~~
|      |     config_odev_probe
| config/config.c:77:5: warning: nested extern declaration of
|                       ‘config_udev_odev_probe’ [-Wnested-externs]

Yet, the code of the function "config_udev_odev_probe()" in config/udev.c
is within a "#ifdef udev_kms" conditional, so it is built.

The problem is that the function definition is within an "#ifdef udev"
in the "config_backends.h" header.

So, even though the actual code is compiled, the compiler will fail to
find the function definition, hence the "implicit declaration" error.

To avoid the issue, move the function definition within a separate
"udev_kms" conditional in the "config-backends.h" header file.

Closes: https://gitlab.freedesktop.org/xorg/xserver/-/work_items/1890
Fixes: b5b52979 ("meson: split udev from udev_kms which requires systemd")
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2203>
2026-06-05 15:51:09 +02:00
..
10-nvidia-modules.conf.debian.in (release) xserver: config: split 10-nvidia.conf file 2026-05-04 16:58:37 +02:00
10-nvidia-modules.conf.in (release) xserver: config: split 10-nvidia.conf file 2026-05-04 16:58:37 +02:00
10-nvidia.conf.debian.in (release) xserver: config: split 10-nvidia.conf file 2026-05-04 16:58:37 +02:00
10-nvidia.conf.in (release) xserver: config: split 10-nvidia.conf file 2026-05-04 16:58:37 +02:00
10-quirks.conf config: add a quirk for Apple Silicon appledrm 2023-01-11 10:01:29 +00:00
config-backends.h config: Fix build with udev disabled 2026-06-05 15:51:09 +02:00
config.c config: fix build with -Dudev=false -Dudev_kms=true 2025-07-28 17:24:05 +02:00
dbus-api
dbus-core.c os: unexport internal logging functions 2025-06-12 17:21:46 +02:00
dbus-core.h include: move dbus-core.h to config 2024-04-23 01:46:24 +00:00
fdi2iclass.py fdi2iclass: remove unused local variable 2022-04-02 18:06:30 +00:00
hal.c os: unexport xstrtokenize() 2025-06-12 17:21:44 +02:00
hotplug_priv.h config: unexport config_init() and config_fini() 2025-11-20 14:11:27 +01:00
meson.build (release) xserver: config: split 10-nvidia.conf file 2026-05-04 16:58:37 +02:00
udev.c config: socket_handler(): fix -Wunused-parameter warning 2025-11-10 11:10:00 +01:00
wscons.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
x11-input.fdi