From: Zihao Tang <tangzihao1@xxxxxxxxxxxxx> Fix 2 "WARNING: Prefer 'unsigned int' to bare use of 'unsigned'" warnings reported by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #99: FILE: ./drivers/tty/serial/dz.c:99: +static u16 dz_in(struct dz_port *dport, unsigned offset) WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #106: FILE: ./drivers/tty/serial/dz.c:106: +static void dz_out(struct dz_port *dport, unsigned offset, u16 value) Signed-off-by: Zihao Tang <tangzihao1@xxxxxxxxxxxxx> Signed-off-by: Jay Fang <f.fangjian@xxxxxxxxxx> --- drivers/tty/serial/dz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c index 4552742..5ba26d2 100644 --- a/drivers/tty/serial/dz.c +++ b/drivers/tty/serial/dz.c @@ -96,14 +96,14 @@ static inline struct dz_port *to_dport(struct uart_port *uport) * ------------------------------------------------------------ */ -static u16 dz_in(struct dz_port *dport, unsigned offset) +static u16 dz_in(struct dz_port *dport, unsigned int offset) { void __iomem *addr = dport->port.membase + offset; return readw(addr); } -static void dz_out(struct dz_port *dport, unsigned offset, u16 value) +static void dz_out(struct dz_port *dport, unsigned int offset, u16 value) { void __iomem *addr = dport->port.membase + offset; -- 2.7.4