xfree86: amdgpu: fix amdgpu_mode_hotplug() conditional build

If HAVE_LIBUDEV isn't set, this function isn't needed, so also should
be ifdef'ed out.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-04 14:18:41 +02:00
committed by Joseph Crowell
parent 54e52ecf82
commit 29bcf7cead

View File

@@ -3646,6 +3646,7 @@ drmmode_find_output(ScrnInfoPtr scrn, int output_id, int *num_dvi,
return FALSE;
}
#ifdef HAVE_LIBUDEV
static void
amdgpu_mode_hotplug(ScrnInfoPtr scrn, drmmode_ptr drmmode)
{
@@ -3761,7 +3762,6 @@ out:
RRGetInfo(xf86ScrnToScreen(scrn), TRUE);
}
#ifdef HAVE_LIBUDEV
static void drmmode_handle_uevents(int fd, void *closure)
{
drmmode_ptr drmmode = closure;