Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff59f2a6 authored by Okash Khawaja's avatar Okash Khawaja Committed by Greg Kroah-Hartman
Browse files

staging: speakup: fix type mismatch warnings



Compiling speakup driver with sparse produces following warning:

drivers/staging/speakup/serialio.c:22:9: warning: incorrect type in
initializer (different base types)
drivers/staging/speakup/serialio.c:22:9:    expected unsigned int
[unsigned] flags
drivers/staging/speakup/serialio.c:22:9:    got restricted upf_t

This patch fixes it.

Signed-off-by: default avatarOkash Khawaja <okash.khawaja@gmail.com>
Acked-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b42ca86a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
#ifndef __sparc__
#include <linux/serial.h>
#endif
#include <linux/serial_core.h>

/*
 * this is cut&paste from 8250.h. Get rid of the structure, the definitions
@@ -16,7 +17,7 @@ struct old_serial_port {
	unsigned int baud_base;
	unsigned int port;
	unsigned int irq;
	unsigned int flags; /* unused */
	upf_t flags; /* unused */
};

/* countdown values for serial timeouts in us */