Commit 93f5061b authored by Richard Henderson's avatar Richard Henderson

Fix warnings of the form

  warning: right shift count >= width of type
by casting to long before shifting by HIGH_BITS_OFFSET.
parent 2a022093
...@@ -1885,7 +1885,7 @@ static int __register_serial(struct serial_struct *req, int line) ...@@ -1885,7 +1885,7 @@ static int __register_serial(struct serial_struct *req, int line)
port.line = line; port.line = line;
if (HIGH_BITS_OFFSET) if (HIGH_BITS_OFFSET)
port.iobase |= req->port_high << HIGH_BITS_OFFSET; port.iobase |= (long) req->port_high << HIGH_BITS_OFFSET;
/* /*
* If a clock rate wasn't specified by the low level * If a clock rate wasn't specified by the low level
......
...@@ -593,7 +593,7 @@ static int uart_get_info(struct uart_info *info, struct serial_struct *retinfo) ...@@ -593,7 +593,7 @@ static int uart_get_info(struct uart_info *info, struct serial_struct *retinfo)
tmp.line = port->line; tmp.line = port->line;
tmp.port = port->iobase; tmp.port = port->iobase;
if (HIGH_BITS_OFFSET) if (HIGH_BITS_OFFSET)
tmp.port_high = port->iobase >> HIGH_BITS_OFFSET; tmp.port_high = (long) port->iobase >> HIGH_BITS_OFFSET;
tmp.irq = port->irq; tmp.irq = port->irq;
tmp.flags = port->flags | info->flags; tmp.flags = port->flags | info->flags;
tmp.xmit_fifo_size = port->fifosize; tmp.xmit_fifo_size = port->fifosize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment