[PATCH] tty: Remove include of screen_info.h from tty.h
authorJon Smirl <jonsmir@gmail.com>
Mon, 10 Jul 2006 11:44:13 +0000 (04:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:16 +0000 (13:24 -0700)
screen_info.h doesn't have anything to do with the tty layer and shouldn't be
included by tty.h.  This patches removes the include and modifies all users to
directly include screen_info.h.  struct screen_info is mainly used to
communicate with the console drivers in drivers/video/console.  Note that this
patch touches every arch and I have no way of testing it.  If there is a
mistake the worst thing that will happen is a compile error.

[akpm@osdl.org: fix arm build]
[akpm@osdl.org: fix alpha build]
Signed-off-by: Jon Smirl <jonsmir@gmail.com>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
32 files changed:
arch/alpha/kernel/alpha_ksyms.c
arch/alpha/kernel/setup.c
arch/alpha/kernel/sys_sio.c
arch/arm/kernel/setup.c
arch/arm26/kernel/setup.c
arch/cris/kernel/setup.c
arch/i386/kernel/setup.c
arch/ia64/dig/setup.c
arch/ia64/kernel/setup.c
arch/ia64/sn/kernel/setup.c
arch/m32r/kernel/setup.c
arch/mips/kernel/setup.c
arch/mips/mips-boards/malta/malta_setup.c
arch/mips/sibyte/swarm/setup.c
arch/mips/sni/setup.c
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kernel/setup-common.c
arch/ppc/kernel/ppc_ksyms.c
arch/ppc/kernel/setup.c
arch/ppc/platforms/prep_setup.c
arch/sh/kernel/setup.c
arch/sh64/kernel/setup.c
arch/sh64/kernel/sh_ksyms.c
arch/sparc/kernel/setup.c
arch/sparc64/kernel/setup.c
arch/x86_64/kernel/early_printk.c
arch/x86_64/kernel/setup.c
arch/xtensa/kernel/setup.c
drivers/video/console/dummycon.c
drivers/video/console/vgacon.c
drivers/video/sis/sis_main.c
include/linux/tty.h

index 425643762bf5889ca9a083f7973770155eba3961..f042cc42b00fc531f7c8e6528aae05002a72b172 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/in.h>
 #include <linux/in6.h>
 #include <linux/pci.h>
+#include <linux/screen_info.h>
 #include <linux/tty.h>
 #include <linux/mm.h>
 #include <linux/delay.h>
index 254c507a608c076f9e09aa8acb83edfea90d2975..2cb9c4380113e92e1eaa181558b105fe38a1f4eb 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/slab.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/delay.h>
 #include <linux/config.h>      /* CONFIG_ALPHA_LCA etc */
 #include <linux/mc146818rtc.h>
index cd85ef725e0e426446cfbb0957b6819f44bef64e..a654014d202a251a9e01b63d8919bdd3c1a63c2f 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/sched.h>
 #include <linux/pci.h>
 #include <linux/init.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 
 #include <asm/compiler.h>
 #include <asm/ptrace.h>
index ed1c4d62d999e4170df1de47d017da5968b1d76e..0a722e77c1438af559c9068399a3ec251862c2d8 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/console.h>
 #include <linux/bootmem.h>
 #include <linux/seq_file.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/init.h>
 #include <linux/root_dev.h>
 #include <linux/cpu.h>
index 843c29fe9af5d1aaf6f78fb55dfcec35e33c97a4..e7eb070f794fbb7d7d30fbf9f6900468998fafd8 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/console.h>
 #include <linux/bootmem.h>
 #include <linux/seq_file.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/init.h>
 #include <linux/root_dev.h>
 
index 6d941fb9f37969b73ea9470f74ec371c701c20ca..7af3d5d43e43b73466212ded824b131c46ba4886 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/bootmem.h>
 #include <asm/pgtable.h>
 #include <linux/seq_file.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/utsname.h>
 #include <linux/pfn.h>
 
index 08c00d20f1623c738d93117747aa9a7e016f9bfd..7864395c1441f0b2aef4b5672c52a7732ae5f0ad 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/mmzone.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/ioport.h>
 #include <linux/acpi.h>
 #include <linux/apm_bios.h>
index 5ab12b8351d020458a4da260c364cc893effd675..9196b330ff7fa917c0508ca6e5b35578b0bffc86 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/kdev_t.h>
 #include <linux/string.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/console.h>
 #include <linux/timex.h>
 #include <linux/sched.h>
index 6a33f414de5862835fc09c19fc9d7918118ea11d..7ad0d9cc6db65c1503cc3a69259954633c6c5991 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/seq_file.h>
 #include <linux/string.h>
 #include <linux/threads.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/dmi.h>
 #include <linux/serial.h>
 #include <linux/serial_core.h>
index dd6bcf4d58bf86b2c84836246aa285b32b3647f1..c119e8b620de6ca2e198433ca3dc7049bdbe4207 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/kernel.h>
 #include <linux/kdev_t.h>
 #include <linux/string.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/console.h>
 #include <linux/timex.h>
 #include <linux/sched.h>
index 0a6c6e677afe285105bacd0c38672c1f2b4f0d0b..3f35ab3d2dc28060b6030c76b37726887e8edd5f 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/root_dev.h>
 #include <linux/seq_file.h>
 #include <linux/timex.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/cpu.h>
 #include <linux/nodemask.h>
 #include <linux/pfn.h>
index 5edd8d4bb665c988f4cde96495b8643ecb7840e9..8c2b596a136f95376c45386b3fba0703d32f4991 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/user.h>
 #include <linux/utsname.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/bootmem.h>
 #include <linux/initrd.h>
 #include <linux/major.h>
index bc4ac6f018778251c687703992bc6a988b8adbcd..7a54195c78fb057f2131252514280b00cac5c7a7 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/sched.h>
 #include <linux/ioport.h>
 #include <linux/pci.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 
 #ifdef CONFIG_MTD
 #include <linux/mtd/partitions.h>
index a9a6dbc068495aadb870275dcf0907a380cc3534..2996e338cfbd4639e22acd644f5f9eb6cbff5402 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/blkdev.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/initrd.h>
 
 #include <asm/irq.h>
index 870486d6cd75e3611ea73c02ed52bedc45df4ce8..e5646b027f72501f04715db9888c9162bbeb7fd0 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/pci.h>
 #include <linux/console.h>
 #include <linux/fb.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 
 #ifdef CONFIG_ARC
 #include <asm/arc/types.h>
index e3b80f71748e96fd2cc064031d2241a25a83ee51..f6a05f090b25e4368496d1af769a1bb79925f628 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/elfcore.h>
 #include <linux/string.h>
 #include <linux/interrupt.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/vt_kern.h>
 #include <linux/nvram.h>
 #include <linux/console.h>
index c6d7b98af7d5b41f94cc7ccb16c8b0a85c22e3f5..499c3861074f708e39cdd2ff9509d13c6938bb9c 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/ioport.h>
 #include <linux/console.h>
 #include <linux/utsname.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/root_dev.h>
 #include <linux/notifier.h>
 #include <linux/cpu.h>
index 50c1b4739ca7021e5b43d28f119edf39f45faf51..d1735401384cbb6732aa19fe87d4f9b2607fe22c 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/elfcore.h>
 #include <linux/string.h>
 #include <linux/interrupt.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/vt_kern.h>
 #include <linux/nvram.h>
 #include <linux/console.h>
index faf2940300b0b79becf8bafecacb51161f5effa9..a74f46d9826fc4c6a670897b55e03c1524a15f3f 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/delay.h>
 #include <linux/initrd.h>
 #include <linux/ide.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/bootmem.h>
 #include <linux/seq_file.h>
 #include <linux/root_dev.h>
index 6436beffdc9688d6cd56855180957e10008963e5..1cb75a1f825e4a431589a4940772308c44381d5f 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/slab.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/major.h>
 #include <linux/interrupt.h>
 #include <linux/reboot.h>
index 9af22116c9a2b3a78e02c8533e59660769d95723..e75189cb1db7ab29424da9cd40a27e462ddc6faf 100644 (file)
@@ -10,7 +10,7 @@
  * This file handles the architecture-dependent parts of initialization
  */
 
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/ioport.h>
 #include <linux/init.h>
 #include <linux/initrd.h>
index 0359fa647bbcdc988fb793e0638108a4e7f2b00e..ffb310e33cefbe505ba25521e7b50a2e5bb5d2d4 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/slab.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/ioport.h>
 #include <linux/delay.h>
 #include <linux/init.h>
index 6efdfa2c3994b5f8d7228eb9c4298b7f2a145eab..4b2df7247b59397d03628e2c3de79391dae53af7 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/in6.h>
 #include <linux/interrupt.h>
 #include <linux/smp_lock.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 
 #include <asm/semaphore.h>
 #include <asm/processor.h>
index 8606ef4e52e9185d8e943cfb3fd6975011e0fa6b..35488d6c74574ff4e8a38d63480010780a9e49c7 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/smp.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/delay.h>
 #include <linux/fs.h>
 #include <linux/seq_file.h>
index a73140466e01347acd4cdd10c79a06f09840f284..958287448cfe89f1cec527fa93d15c4808bf5495 100644 (file)
@@ -16,7 +16,7 @@
 #include <asm/smp.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/delay.h>
 #include <linux/fs.h>
 #include <linux/seq_file.h>
index b93ef5b5198062a7abc10dd351d29aa9162fd545..140051e07fa64c7f07e2fd8b5e099ceaf15c3860 100644 (file)
@@ -2,7 +2,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/string.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/fcntl.h>
index 0925518b58d06c436e794e576a35ef474d5df5aa..8a099ff1f8bc151cc4968ed63991258fcf00241e 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/slab.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/ioport.h>
 #include <linux/delay.h>
 #include <linux/init.h>
index edb29410d9530b791816ef129337c9b0f510cf54..82684d05910a9aebd6efd61955f790f17ea7c8a5 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/proc_fs.h>
-#include <linux/tty.h>
+#include <linux/screen_info.h>
 #include <linux/bootmem.h>
 #include <linux/kernel.h>
 
index 7c8eeeb30a479eb55b7291a38fe16ceede8f9b6d..d9315d99445fe79c21d588d7d0e03d4821fc86a8 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/kdev_t.h>
 #include <linux/console.h>
 #include <linux/vt_kern.h>
+#include <linux/screen_info.h>
 #include <linux/init.h>
 #include <linux/module.h>
 
index 7f1f0e7a5b208d21236e901f7be07e0e442379f0..0a2c10a1abf88cff76baf460d9cfdf96dbd6cc41 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/spinlock.h>
 #include <linux/ioport.h>
 #include <linux/init.h>
+#include <linux/screen_info.h>
 #include <linux/smp_lock.h>
 #include <video/vga.h>
 #include <asm/io.h>
index f8dfabd73b003e062f483b9b6bad33d56d79f7a7..895ebda7d9e3547443785aa6e465589acd2457cf 100644 (file)
@@ -45,7 +45,7 @@
 #include <linux/string.h>
 #include <linux/mm.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
 #include <linux/tty.h>
 #else
 #include <linux/screen_info.h>
index 37937c8a11ab5d6cdc87fd60ff22e1e7d637281a..e421d5e34818cc30ea9af8707581a44129dcb80e 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/workqueue.h>
 #include <linux/tty_driver.h>
 #include <linux/tty_ldisc.h>
-#include <linux/screen_info.h>
 #include <linux/mutex.h>
 
 #include <asm/system.h>