Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

notifiers: vt: move vt notifiers into vt.h

It is not necessary to share the same notifier.h.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: David Miller <davem@davemloft.net>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Amerigo Wang and committed by
Linus Torvalds
a376d3d6 35eb6db1

+9 -7
+2 -7
include/linux/notifier.h
··· 193 193 194 194 /* Hibernation and suspend events are defined in include/linux/suspend.h. */ 195 195 196 + /* Virtual Terminal events are defined in include/linux/vt.h. */ 197 + 196 198 #define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */ 197 199 198 200 /* Console keyboard events. ··· 207 205 #define KBD_POST_KEYSYM 0x0005 /* Called after keyboard keysym interpretation */ 208 206 209 207 extern struct blocking_notifier_head reboot_notifier_list; 210 - 211 - /* Virtual Terminal events. */ 212 - #define VT_ALLOCATE 0x0001 /* Console got allocated */ 213 - #define VT_DEALLOCATE 0x0002 /* Console will be deallocated */ 214 - #define VT_WRITE 0x0003 /* A char got output */ 215 - #define VT_UPDATE 0x0004 /* A bigger update occurred */ 216 - #define VT_PREWRITE 0x0005 /* A char is about to be written to the console */ 217 208 218 209 #endif /* __KERNEL__ */ 219 210 #endif /* _LINUX_NOTIFIER_H */
+7
include/linux/vt.h
··· 86 86 87 87 #ifdef __KERNEL__ 88 88 89 + /* Virtual Terminal events. */ 90 + #define VT_ALLOCATE 0x0001 /* Console got allocated */ 91 + #define VT_DEALLOCATE 0x0002 /* Console will be deallocated */ 92 + #define VT_WRITE 0x0003 /* A char got output */ 93 + #define VT_UPDATE 0x0004 /* A bigger update occurred */ 94 + #define VT_PREWRITE 0x0005 /* A char is about to be written to the console */ 95 + 89 96 #ifdef CONFIG_VT_CONSOLE 90 97 91 98 extern int vt_kmsg_redirect(int new);