[tty:tty-next 27/36] drivers/staging/sb105x/sb_pci_mp.c:2118:4: warning: passing argument 1 of 'tty_insert_flip_char' from incompatible pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-next
head:   4e18585d51434c28269e625e56a06396d70d0ff2
commit: 92a19f9cec9a80ad93c06e115822deb729e2c6ad [27/36] TTY: switch tty_insert_flip_char
config: make ARCH=x86_64 allmodconfig

All warnings:

   drivers/staging/sb105x/sb_pci_mp.c: In function 'receive_chars':
>> drivers/staging/sb105x/sb_pci_mp.c:2118:4: warning: passing argument 1 of 'tty_insert_flip_char' from incompatible pointer type [enabled by default]
   In file included from drivers/staging/sb105x/sb_pci_mp.h:4:0,
                    from drivers/staging/sb105x/sb_pci_mp.c:1:
   include/linux/tty_flip.h:15:19: note: expected 'struct tty_port *' but argument is of type 'struct tty_struct *'
   drivers/staging/sb105x/sb_pci_mp.c:2123:4: warning: passing argument 1 of 'tty_insert_flip_char' from incompatible pointer type [enabled by default]
   In file included from drivers/staging/sb105x/sb_pci_mp.h:4:0,
                    from drivers/staging/sb105x/sb_pci_mp.c:1:
   include/linux/tty_flip.h:15:19: note: expected 'struct tty_port *' but argument is of type 'struct tty_struct *'

vim +/tty_insert_flip_char +2118 drivers/staging/sb105x/sb_pci_mp.c

  2102				} 
  2103				if (lsr & UART_LSR_PE)
  2104				{
  2105					mtpt->port.icount.parity++;
  2106					flag = TTY_PARITY;
  2107				}
  2108				if (lsr & UART_LSR_FE)
  2109				{
  2110					mtpt->port.icount.frame++;
  2111					flag = TTY_FRAME;
  2112				}
  2113				if (lsr & UART_LSR_OE)
  2114				{
  2115					mtpt->port.icount.overrun++;
  2116					flag = TTY_OVERRUN;
  2117				}
> 2118				tty_insert_flip_char(tty, ch, flag);
  2119			}
  2120			else
  2121			{
  2122				ch = serial_inp(mtpt, UART_RX);
  2123				tty_insert_flip_char(tty, ch, 0);
  2124			}
  2125	ignore_char:
  2126			lsr = serial_inp(mtpt, UART_LSR);

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux