1
0
Fork 0
alistair23-linux/arch/um/drivers
Jeff Dike b68e31d0eb [PATCH] const struct tty_operations
As part of an SMP cleanliness pass over UML, I consted a bunch of
structures in order to not have to document their locking.  One of these
structures was a struct tty_operations.  In order to const it in UML
without introducing compiler complaints, the declaration of
tty_set_operations needs to be changed, and then all of its callers need to
be fixed.

This patch declares all struct tty_operations in the tree as const.  In all
cases, they are static and used only as input to tty_set_operations.  As an
extra check, I ran an i386 allyesconfig build which produced no extra
warnings.

53 drivers are affected.  I checked the history of a bunch of them, and in
most cases, there have been only a handful of maintenance changes in the
last six months.  serial_core.c was the busiest one that I looked at.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-02 07:57:14 -07:00
..
Makefile [PATCH] uml: revert block driver use of host AIO 2005-10-12 08:22:26 -07:00
chan_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
chan_user.c [PATCH] uml: close TUN/TAP file descriptors 2006-02-07 16:12:32 -08:00
cow.h [PATCH] uml: avoid warnings for diffent names for an unsigned quadword 2006-04-11 06:18:37 -07:00
cow_sys.h [PATCH] uml: avoid warnings for diffent names for an unsigned quadword 2006-04-11 06:18:37 -07:00
cow_user.c [PATCH] uml: fix patch mismerge 2006-05-01 18:17:44 -07:00
daemon.h [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
daemon_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
daemon_user.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
fd.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
harddog_kern.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
harddog_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
hostaudio_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
line.c [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
mcast.h [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
mcast_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
mcast_user.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
mconsole_kern.c [PATCH] uml: stack consumption reduction 2006-09-29 09:18:04 -07:00
mconsole_user.c [PATCH] uml: stack consumption reduction 2006-09-29 09:18:04 -07:00
mmapper_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
net_kern.c [PATCH] uml build fix 2006-09-29 15:58:21 -07:00
net_user.c [PATCH] uml: don't roll my own random MAC generator 2006-09-29 09:18:04 -07:00
null.c [PATCH] uml: locking documentation 2006-09-29 09:18:04 -07:00
pcap_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
pcap_user.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
pcap_user.h
port.h
port_kern.c [PATCH] irq-flags: UM: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
port_user.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
pty.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
random.c [PATCH] uml: locking documentation 2006-09-29 09:18:04 -07:00
slip.h [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
slip_common.c
slip_common.h [PATCH] uml: fix hugest stack users 2006-02-01 08:53:22 -08:00
slip_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
slip_user.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
slirp.h [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
slirp_kern.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
slirp_user.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
ssl.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
ssl.h
stderr_console.c [PATCH] uml: locking documentation 2006-09-29 09:18:04 -07:00
stdio_console.c [PATCH] uml: locking documentation 2006-09-29 09:18:04 -07:00
stdio_console.h
tty.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
ubd_kern.c [PATCH] Remove ->rq_status from struct request 2006-09-30 20:29:23 +02:00
ubd_user.c [PATCH] uml: revert block driver use of host AIO 2005-10-12 08:22:26 -07:00
xterm.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
xterm.h
xterm_kern.c [PATCH] irq-flags: UM: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00