Skip to contentSkip to conversation

virtio_console: fix uapi header

PATCH In review Michael S. Tsirkin 2 participants 2 messages May 16, 2013 – May 17, 2013

Subsystems (3)
lore
Share & tools
lore

Michael S. Tsirkin

author maintainer
#0 lore raw

PATCH 1/1 virtio_console: fix uapi header

uapi should use __u32 not u32.
Fix a macro in virtio_console.h which uses u32.

---
 include/uapi/linux/virtio_console.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/virtio_console.h +1 -1
index ee13ab6..c312f16 100644
@@ -39,7 +39,7 @@
 #define VIRTIO_CONSOLE_F_SIZE	0	/* Does host provide console size? */
 #define VIRTIO_CONSOLE_F_MULTIPORT 1	/* Does host provide multiple ports? */
 
-#define VIRTIO_CONSOLE_BAD_ID		(~(u32)0)
+#define VIRTIO_CONSOLE_BAD_ID		(~(__u32)0)
 
 struct virtio_console_config {
 	/* colums of the screens */
Signature · 1 line
MST
#1 lore raw
Quoted 4 lines · Michael S. Tsirkin

uapi should use __u32 not u32.
Fix a macro in virtio_console.h which uses u32.

Ouch. Added CC:stable, and put into fixes. Mainly because it's embarrassing :)

Cheers,
Rusty.