]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
printk: move to separate directory for easier modification
authorJoe Perches <joe@perches.com>
Tue, 23 Oct 2012 02:50:16 +0000 (13:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 24 Oct 2012 03:20:13 +0000 (14:20 +1100)
Make it easier to break up printk into bite-sized chunks.

Remove printk path/filename from comment.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Kay Sievers <kay@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/Makefile
kernel/printk/Makefile [new file with mode: 0644]
kernel/printk/printk.c [moved from kernel/printk.c with 99% similarity]

index 0dfeca4324ee06dbb6566db568b9874758344232..d53980d61defbcc2b924e30ef7de29c07841dfd3 100644 (file)
@@ -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 (file)
index 0000000..36d306d
--- /dev/null
@@ -0,0 +1 @@
+obj-y  = printk.o
similarity index 99%
rename from kernel/printk.c
rename to kernel/printk/printk.c
index ee79f14db358f1f996313739dfc7d9fc47f8a61c..449c9be5ef9acf2af1481be848d8b94ef09427bf 100644 (file)
@@ -1,6 +1,4 @@
 /*
- *  linux/kernel/printk.c
- *
  *  Copyright (C) 1991, 1992  Linus Torvalds
  *
  * Modified to make sys_syslog() more flexible: added commands to