lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sun,  5 Oct 2014 19:01:01 +0200
From:	Fabian Frederick <fabf@...net.be>
To:	linux-kernel@...r.kernel.org
Cc:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Fabian Frederick <fabf@...net.be>,
	linux-serial@...r.kernel.org, sparclinux@...r.kernel.org
Subject: [PATCH 00/13 linux-next] drivers/tty: use container_of where possible

Small patchset using container_of instead of casting on first structure member address.
All patches (cross)compiled but untested.


Fabian Frederick (13):
  serial: use container_of to resolve uart_sio_port from uart_port
  serial: sa1100: use container_of to resolve sa1100_port from uart_port
  serial: use container_of to resolve uart_ip22zilog_port from uart_port
  serial: mpsc: use container_of to resolve mpsc_port_info from
    uart_port
  serial: cpm_uart: use container_of to resolve uart_cpm_port from
    uart_port
  TTY: jsm: use container_of to resolve jsm_channel from uart_port
  tty: use container_of to resolve uart_pmac_port from uart_port
  serial: sunsu: use container_of to resolve uart_sunsu_port from
    uart_port
  serial: sunsab: use container_of to resolve uart_sunsu_port from
    uart_port
  serial: amba-pl010: use container_of to resolve uart_amba_port from
    uart_port
  serial: pnx8xxx:  use container_of to resolve pnx8xxx_port from
    uart_port
  serial: use container_of to resolve uart_sunzilog_port from uart_port
  tty: ar933x_uart: use container_of to resolve ar933x_uart_port from
    uart_port

 drivers/tty/serial/amba-pl010.c             | 36 ++++++++++++++--------
 drivers/tty/serial/ar933x_uart.c            | 30 ++++++++++++------
 drivers/tty/serial/cpm_uart/cpm_uart_core.c | 48 +++++++++++++++++++----------
 drivers/tty/serial/ip22zilog.c              | 18 +++++++----
 drivers/tty/serial/jsm/jsm_tty.c            | 30 ++++++++++++------
 drivers/tty/serial/m32r_sio.c               | 42 ++++++++++++++++---------
 drivers/tty/serial/mpsc.c                   | 39 +++++++++++++++--------
 drivers/tty/serial/pmac_zilog.c             |  9 ++++--
 drivers/tty/serial/pnx8xxx_uart.c           | 48 +++++++++++++++++++----------
 drivers/tty/serial/sa1100.c                 | 45 ++++++++++++++++++---------
 drivers/tty/serial/sunsab.c                 | 36 ++++++++++++++--------
 drivers/tty/serial/sunsu.c                  | 39 +++++++++++++++--------
 drivers/tty/serial/sunzilog.c               | 24 ++++++++++-----
 13 files changed, 296 insertions(+), 148 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ