|
|
@ -249,10 +249,10 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
|
- proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
|
|
- proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
|
|
- proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops);
|
|
|
|
- proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops);
|
|
|
|
+ if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) {
|
|
|
|
+ if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) {
|
|
|
|
+ proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
|
|
+ proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
|
|
+ proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops);
|
|
|
|
+ proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops);
|
|
|
|
+ proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
|
|
|
|
+ proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);
|
|
|
|
proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);
|
|
|
|