* [PATCH 7/8] virtio_console: do not export "u32" to userspace
@ 2013-04-01 18:02 Paul Bolle
0 siblings, 0 replies; only message in thread
From: Paul Bolle @ 2013-04-01 18:02 UTC (permalink / raw)
To: Amit Shah; +Cc: linux-kernel, virtualization
virtio_console.h exports "u32" to userspace. Use "__u32" instead.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
0) Tested with a kernel build.
1) Again. I'm guessing userspace doesn't use VIRTIO_CONSOLE_BAD_ID.
include/uapi/linux/virtio_console.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h
index ee13ab6..c312f16 100644
--- a/include/uapi/linux/virtio_console.h
+++ b/include/uapi/linux/virtio_console.h
@@ -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 */
--
1.7.11.7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-01 18:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-01 18:02 [PATCH 7/8] virtio_console: do not export "u32" to userspace Paul Bolle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox