From: Joe Perches Date: Tue, 23 Oct 2012 02:50:16 +0000 (+1100) Subject: printk: move to separate directory for easier modification X-Git-Tag: next-20121024~2^2~98 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6afeef917f52cd288600c3b1ed8cfe3611a06009;p=karo-tx-linux.git printk: move to separate directory for easier modification Make it easier to break up printk into bite-sized chunks. Remove printk path/filename from comment. Signed-off-by: Joe Perches Cc: Kay Sievers Signed-off-by: Andrew Morton --- diff --git a/kernel/Makefile b/kernel/Makefile index 0dfeca4324ee..d53980d61def 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -2,7 +2,7 @@ # Makefile for the linux kernel. # -obj-y = fork.o exec_domain.o panic.o printk.o \ +obj-y = fork.o exec_domain.o panic.o \ cpu.o exit.o itimer.o time.o softirq.o resource.o \ sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \ signal.o sys.o kmod.o workqueue.o pid.o task_work.o \ @@ -24,6 +24,7 @@ endif obj-y += sched/ obj-y += power/ +obj-y += printk/ ifeq ($(CONFIG_CHECKPOINT_RESTORE),y) obj-$(CONFIG_X86) += kcmp.o diff --git a/kernel/printk/Makefile b/kernel/printk/Makefile new file mode 100644 index 000000000000..36d306d9273c --- /dev/null +++ b/kernel/printk/Makefile @@ -0,0 +1 @@ +obj-y = printk.o diff --git a/kernel/printk.c b/kernel/printk/printk.c similarity index 99% rename from kernel/printk.c rename to kernel/printk/printk.c index ee79f14db358..449c9be5ef9a 100644 --- a/kernel/printk.c +++ b/kernel/printk/printk.c @@ -1,6 +1,4 @@ /* - * linux/kernel/printk.c - * * Copyright (C) 1991, 1992 Linus Torvalds * * Modified to make sys_syslog() more flexible: added commands to