File seabios.gcc5.patch of Package xen

[   96s] out/code16.o: In function `kbd_command':
[   96s] /home/abuild/rpmbuild/BUILD/xen-4.5.1.9/non-dbg/seabios-dir-remote/src/kbd.c:120: undefined reference to `usb_kbd_command'
[   96s] out/code16.o: In function `mouse_command':
[   96s] /home/abuild/rpmbuild/BUILD/xen-4.5.1.9/non-dbg/seabios-dir-remote/src/mouse.c:30: undefined reference to `usb_mouse_command'
[   96s] Makefile:170: recipe for target 'out/rom16.o' failed
[   96s] make[6]: *** [out/rom16.o] Error 1

---
 src/hw/usb-hid.c |    4 ++--
 src/hw/usb-hid.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Index: seabios-dir-remote/src/hw/usb-hid.c
===================================================================
--- seabios-dir-remote.orig/src/hw/usb-hid.c
+++ seabios-dir-remote/src/hw/usb-hid.c
@@ -317,7 +317,7 @@ usb_kbd_active(void)
 }
 
 // Handle a ps2 style keyboard command.
-inline int
+int
 usb_kbd_command(int command, u8 *param)
 {
     if (! CONFIG_USB_KEYBOARD)
@@ -389,7 +389,7 @@ usb_mouse_active(void)
 }
 
 // Handle a ps2 style mouse command.
-inline int
+int
 usb_mouse_command(int command, u8 *param)
 {
     if (! CONFIG_USB_MOUSE)
Index: seabios-dir-remote/src/hw/usb-hid.h
===================================================================
--- seabios-dir-remote.orig/src/hw/usb-hid.h
+++ seabios-dir-remote/src/hw/usb-hid.h
@@ -5,9 +5,9 @@
 struct usbdevice_s;
 int usb_hid_setup(struct usbdevice_s *usbdev);
 inline int usb_kbd_active(void);
-inline int usb_kbd_command(int command, u8 *param);
+int usb_kbd_command(int command, u8 *param);
 inline int usb_mouse_active(void);
-inline int usb_mouse_command(int command, u8 *param);
+int usb_mouse_command(int command, u8 *param);
 void usb_check_event(void);
 
 
openSUSE Build Service is sponsored by