Skip to contentSkip to conversation

mm/{mmap,nommu}.c: several unexports

PATCH In review Adrian Bunk 2 participants 2 messages Mar 6, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/{mmap,nommu}.c: several unexports

I didn't find any possible modular usage in the kernel.

---

 mm/mmap.c  |    4 ----
 mm/nommu.c |    4 ----
 2 files changed, 8 deletions(-)
mm/mmap.c renamed from mm/mmap.c.old +0 -4
@@ -147,10 +147,6 @@
 	return -ENOMEM;
 }
 
-EXPORT_SYMBOL(sysctl_overcommit_memory);
-EXPORT_SYMBOL(sysctl_overcommit_ratio);
-EXPORT_SYMBOL(sysctl_max_map_count);
-EXPORT_SYMBOL(vm_committed_space);
 EXPORT_SYMBOL(__vm_enough_memory);
 
 /*
mm/nommu.c renamed from mm/nommu.c.old +0 -4
@@ -44,10 +44,6 @@
 int heap_stack_gap = 0;
 
 EXPORT_SYMBOL(mem_map);
-EXPORT_SYMBOL(sysctl_max_map_count);
-EXPORT_SYMBOL(sysctl_overcommit_memory);
-EXPORT_SYMBOL(sysctl_overcommit_ratio);
-EXPORT_SYMBOL(vm_committed_space);
 EXPORT_SYMBOL(__vm_enough_memory);
 
 /* list of shareable VMAs */
#1 lore raw
Quoted 3 lines · Adrian Bunk

I didn't find any possible modular usage in the kernel.

These were there because we had core MM dunctionality duplicated in every security module. They definitly shouldn't be exported.