--- zzzz-none-000/linux-4.1.38/fs/proc/root.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/fs/proc/root.c 2020-11-25 10:06:48.000000000 +0000 @@ -23,6 +23,11 @@ #include "internal.h" +#if defined(CONFIG_BCM_KF_PROC_BCM) +struct proc_dir_entry *proc_brcm; +extern void proc_brcm_init(struct proc_dir_entry *pentry); +#endif + static int proc_test_super(struct super_block *sb, void *data) { return sb->s_fs_info == data; @@ -40,11 +45,17 @@ enum { Opt_gid, Opt_hidepid, Opt_err, +#if defined(CONFIG_BCM_KF_PROC_DEFAULT) + Opt_default +#endif }; static const match_table_t tokens = { {Opt_hidepid, "hidepid=%u"}, {Opt_gid, "gid=%u"}, +#if defined(CONFIG_BCM_KF_PROC_DEFAULT) + {Opt_default, "defaults"}, +#endif {Opt_err, NULL}, }; @@ -79,6 +90,10 @@ } pid->hide_pid = option; break; +#if defined(CONFIG_BCM_KF_PROC_DEFAULT) + case Opt_default: + break; +#endif default: pr_err("proc: unrecognized mount option \"%s\" " "or missing value\n", p); @@ -193,6 +208,11 @@ #endif proc_tty_init(); proc_mkdir("bus", NULL); + +#if defined(CONFIG_BCM_KF_PROC_BCM) + proc_brcm = proc_mkdir("brcm", NULL); + proc_brcm_init(proc_brcm); +#endif proc_sys_init(); }