Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e0edd3f authored by Alexey Dobriyan's avatar Alexey Dobriyan
Browse files

proc: spread __init

parent 5bcd7ff9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
 * Copyright 1997 Paul Mackerras
 */
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
@@ -214,7 +215,7 @@ void proc_device_tree_add_node(struct device_node *np,
/*
 * Called on initialization to set up the /proc/device-tree subtree
 */
void proc_device_tree_init(void)
void __init proc_device_tree_init(void)
{
	struct device_node *root;
	if ( !have_of )
+2 −2
Original line number Diff line number Diff line
/*
 * /proc/sys support
 */

#include <linux/init.h>
#include <linux/sysctl.h>
#include <linux/proc_fs.h>
#include <linux/security.h>
@@ -395,7 +395,7 @@ static struct dentry_operations proc_sys_dentry_operations = {
	.d_compare	= proc_sys_compare,
};

int proc_sys_init(void)
int __init proc_sys_init(void)
{
	struct proc_dir_entry *proc_sys_root;