mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-03 17:15:26 +07:00
proc: move proc_console.c to fs/proc/consoles.c
Filename is supposed to match procfile name for random junk. Add __init while I'm at it. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3740a20c4f
commit
bf33cbdf8a
@ -10,12 +10,12 @@ proc-$(CONFIG_MMU) := mmu.o task_mmu.o
|
|||||||
proc-y += inode.o root.o base.o generic.o array.o \
|
proc-y += inode.o root.o base.o generic.o array.o \
|
||||||
proc_tty.o
|
proc_tty.o
|
||||||
proc-y += cmdline.o
|
proc-y += cmdline.o
|
||||||
|
proc-y += consoles.o
|
||||||
proc-y += cpuinfo.o
|
proc-y += cpuinfo.o
|
||||||
proc-y += devices.o
|
proc-y += devices.o
|
||||||
proc-y += interrupts.o
|
proc-y += interrupts.o
|
||||||
proc-y += loadavg.o
|
proc-y += loadavg.o
|
||||||
proc-y += meminfo.o
|
proc-y += meminfo.o
|
||||||
proc-y += proc_console.o
|
|
||||||
proc-y += stat.o
|
proc-y += stat.o
|
||||||
proc-y += uptime.o
|
proc-y += uptime.o
|
||||||
proc-y += version.o
|
proc-y += version.o
|
||||||
|
@ -106,9 +106,9 @@ static const struct file_operations proc_consoles_operations = {
|
|||||||
.release = seq_release,
|
.release = seq_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int register_proc_consoles(void)
|
static int __init proc_consoles_init(void)
|
||||||
{
|
{
|
||||||
proc_create("consoles", 0, NULL, &proc_consoles_operations);
|
proc_create("consoles", 0, NULL, &proc_consoles_operations);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
module_init(register_proc_consoles);
|
module_init(proc_consoles_init);
|
Loading…
Reference in New Issue
Block a user