Skip to contentSkip to conversation

xenfb: Fix graphic_console_init() build failure

PATCH Applied Andreas Färber 4 participants 4 messages Mar 7, 2014 – Mar 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenfb: Fix graphic_console_init() build failure

In commit 5643706a095044d75df1c0588aac553a595b972b (console: add head to index to qemu consoles.) graphic_console_init() was extended to take an additional argument, but xenfb was not updated accordingly. Fix it.

---
 hw/display/xenfb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/display/xenfb.c +1 -1
index cb9d456..032eb7a 100644
@@ -992,7 +992,7 @@ wait_more:
 
     /* vfb */
     fb = container_of(xfb, struct XenFB, c.xendev);
-    fb->c.con = graphic_console_init(NULL, &xenfb_ops, fb);
+    fb->c.con = graphic_console_init(NULL, 0, &xenfb_ops, fb);
     fb->have_console = 1;
 
     /* vkbd */
Signature · 1 line
1.8.4.5
Reviewed-by on v1 1/1
#1 lore raw

I just found the same thing:

http://lists.xen.org/archives/html/xen-devel/2014-03/msg00678.html

So you can add my:

-Don Slutz

Quoted 23 lines · Andreas Färber

In commit 5643706a095044d75df1c0588aac553a595b972b (console: add head to index to qemu consoles.) graphic_console_init() was extended to take an additional argument, but xenfb was not updated accordingly. Fix it.

---
  hw/display/xenfb.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/display/xenfb.c +1 -1
index cb9d456..032eb7a 100644
@@ -992,7 +992,7 @@ wait_more:
 
      /* vfb */
      fb = container_of(xfb, struct XenFB, c.xendev);
-    fb->c.con = graphic_console_init(NULL, &xenfb_ops, fb);
+    fb->c.con = graphic_console_init(NULL, 0, &xenfb_ops, fb);
      fb->have_console = 1;
 
      /* vkbd */
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andreas Färber

Am 07.03.2014 22:42, schrieb Andreas Färber:

Quoted 16 lines

In commit 5643706a095044d75df1c0588aac553a595b972b (console: add head to index to qemu consoles.) graphic_console_init() was extended to take an additional argument, but xenfb was not updated accordingly. Fix it.

---
 hw/display/xenfb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/display/xenfb.c +0 -0
index cb9d456..032eb7a 100644

hw/display/xenfb.c wait_more: · line 998

Quoted 8 lines
hw/display/xenfb.c +1 -1
@@ -992,7 +992,7 @@ wait_more:
 
     /* vfb */
     fb = container_of(xfb, struct XenFB, c.xendev);
-    fb->c.con = graphic_console_init(NULL, &xenfb_ops, fb);
+    fb->c.con = graphic_console_init(NULL, 0, &xenfb_ops, fb);
     fb->have_console = 1;
 
     /* vkbd */

Same problem here. There is also a 2nd call of that function in the same file, but it is currently disabled by #if 0...#endif.

#3 lore raw
In reply to Andreas Färber
Quoted 6 lines · Andreas Färber

In commit 5643706a095044d75df1c0588aac553a595b972b (console: add head to index to qemu consoles.) graphic_console_init() was extended to take an additional argument, but xenfb was not updated accordingly. Fix it.

Applied to master, thanks. I've installed the xen dev libraries on my build box, so I should be able to catch xen build failures in future.

-- PMM