procfs: remove CONFIG_HARDWALL dependency
Arnd Bergmann
maintainerPATCH 8/16 procfs: remove CONFIG_HARDWALL dependency
Hardwall is a tile specific feature, and with the removal of the tile architecture, this has become dead code, so let's remove it.
--- fs/proc/base.c | 9 --------- 1 file changed, 9 deletions(-)
fs/proc/base.c +0 -9
@@ -94,9 +94,6 @@#include <linux/sched/stat.h> #include <linux/flex_array.h> #include <linux/posix-timers.h> -#ifdef CONFIG_HARDWALL -#include <asm/hardwall.h> -#endif #include <trace/events/oom.h> #include "internal.h" #include "fd.h"
@@ -3002,9 +2999,6 @@ static const struct pid_entry tgid_base_stuff[] = {#ifdef CONFIG_TASK_IO_ACCOUNTING ONE("io", S_IRUSR, proc_tgid_io_accounting),#endif -#ifdef CONFIG_HARDWALL - ONE("hardwall", S_IRUGO, proc_pid_hardwall), -#endif #ifdef CONFIG_USER_NS REG ("uid_map" ,S_IRUGO |S_IWUSR , proc_uid_map_operations), REG("gid_map", S_IRUGO|S_IWUSR, proc_gid_map_operations),
@@ -3393,9 +3387,6 @@ static const struct pid_entry tid_base_stuff[] = {#ifdef CONFIG_TASK_IO_ACCOUNTING ONE("io", S_IRUSR, proc_tid_io_accounting),#endif -#ifdef CONFIG_HARDWALL - ONE("hardwall", S_IRUGO, proc_pid_hardwall), -#endif #ifdef CONFIG_USER_NS REG ("uid_map" ,S_IRUGO |S_IWUSR , proc_uid_map_operations), REG("gid_map", S_IRUGO|S_IWUSR, proc_gid_map_operations),
Signature · 1 line
2.9.0
Arnd Bergmann
maintainerPATCH 9/16 mm: remove blackfin MPU support
The CONFIG_MPU option was only defined on blackfin, and that architecture is now being removed, so the respective code can be simplified.
A lot of other microcontrollers have an MPU, but I suspect that if we want to bring that support back, we'd do it differently anyway.
--- kernel/module.c | 4 ---- mm/nommu.c | 20 -------------------- 2 files changed, 24 deletions(-)
kernel/module.c +0 -4
@@ -2181,10 +2181,6 @@ static void free_module(struct module *mod)/* Finally, free the core (containing the module structure) */ disable_ro_nx (&mod->core_layout);module_memfree (mod->core_layout.base); - -#ifdef CONFIG_MPU -update_protections (current->mm); -#endif }void *__symbol_get (const char *symbol)
mm/nommu.c +0 -20
@@ -663,22 +663,6 @@ static void put_nommu_region(struct vm_region *region) }/* -* update protection on a vma -*/ -static void protect_vma (struct vm_area_struct *vma,unsigned long flags) -{ -#ifdef CONFIG_MPU -struct mm_struct *mm = vma->vm_mm; -long start = vma->vm_start &PAGE_MASK ; -while (start < vma->vm_end) { -protect_page (mm, start, flags); - start +=PAGE_SIZE ; - } -update_protections (mm); -#endif -} - -/* * add a VMA into a process's mm_struct in the appropriate place in the list * and tree and add to the address space's page tree also if not an anonymous * page
@@ -695,8 +679,6 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) mm->map_count++; vma->vm_mm = mm; -protect_vma (vma, vma->vm_flags); -/* add the VMA to the mapping */ if (vma->vm_file) { mapping = vma->vm_file->f_mapping;
@@ -757,8 +739,6 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)struct mm_struct *mm = vma->vm_mm;struct task_struct *curr = current; -protect_vma (vma,0 ); - mm->map_count--;for (i =0 ; i <VMACACHE_SIZE ; i++) {/* if the vma is cached, invalidate the entire cache */
Signature · 1 line
2.9.0
Quoted 4 lines · Arnd Bergmann
Hardwall is a tile specific feature, and with the removal of the tile architecture, this has become dead code, so let's remove it.
Signed-off-by Arnd Bergmann <[email protected]>
ACK
Although it should go via tile tree for "atomicity".
Arnd Bergmann
maintainerQuoted 9 lines · Alexey Dobriyan
Quoted 4 lines · Arnd Bergmann
Hardwall is a tile specific feature, and with the removal of the tile architecture, this has become dead code, so let's remove it.
Signed-off-by Arnd Bergmann <[email protected]>ACK
Although it should go via tile tree for "atomicity".
Both the arch/tile removal and this patch are in my asm-generic tree, as there is no longer a tile specific git.
Thanks for your Ack!
Arnd