diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2019-04-17 11:43:57 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2019-04-17 13:57:38 +0100 |
commit | 2764128e9fe775fabe28b0b9be427c16754e7128 (patch) | |
tree | 7a6e35fabe4e340b4f5cec462cebacd0c8d1445d /hw/kdrive | |
parent | ba59427abae3a8b260e66fcfab90c9de96c3e01c (diff) |
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.
Diffstat (limited to 'hw/kdrive')
-rw-r--r-- | hw/kdrive/src/kdrive.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/kdrive/src/kdrive.c b/hw/kdrive/src/kdrive.c index 77114dc46..78a8f77d7 100644 --- a/hw/kdrive/src/kdrive.c +++ b/hw/kdrive/src/kdrive.c @@ -995,11 +995,13 @@ DeleteGPUDeviceRequest(struct OdevAttributes *attribs) } #endif +#if defined(CONFIG_UDEV) || defined(CONFIG_HAL) struct xf86_platform_device * xf86_find_platform_device_by_devnum(int major, int minor) { return NULL; } +#endif #ifdef SYSTEMD_LOGIND void |