Skip to content

Commit 6407d75

Browse files
mstsirkinrustyrussell
authored andcommitted
virtio_console: fix uapi header
uapi should use __u32 not u32. Fix a macro in virtio_console.h which uses u32. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: stable@kernel.org
1 parent d2f83e9 commit 6407d75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/uapi/linux/virtio_console.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define VIRTIO_CONSOLE_F_SIZE 0 /* Does host provide console size? */
4040
#define VIRTIO_CONSOLE_F_MULTIPORT 1 /* Does host provide multiple ports? */
4141

42-
#define VIRTIO_CONSOLE_BAD_ID (~(u32)0)
42+
#define VIRTIO_CONSOLE_BAD_ID (~(__u32)0)
4343

4444
struct virtio_console_config {
4545
/* colums of the screens */

0 commit comments

Comments
 (0)