Fix missing prototype warning for xf86_find_platform_device_by_devnum()
../hw/kdrive/src/kdrive.c:999:1: warning: no previous prototype for ‘xf86_find_platform_device_by_devnum’ [-Wmissing-prototypes] Place the same guards around this stub as are around including the hotplug.h header which declares the prototype.
This commit is contained in:
parent
ba59427aba
commit
2764128e9f
|
@ -995,11 +995,13 @@ DeleteGPUDeviceRequest(struct OdevAttributes *attribs)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_UDEV) || defined(CONFIG_HAL)
|
||||||
struct xf86_platform_device *
|
struct xf86_platform_device *
|
||||||
xf86_find_platform_device_by_devnum(int major, int minor)
|
xf86_find_platform_device_by_devnum(int major, int minor)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SYSTEMD_LOGIND
|
#ifdef SYSTEMD_LOGIND
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user