* [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency
@ 2018-03-14 14:37 Arnd Bergmann
2018-03-14 14:37 ` [PATCH 09/16] mm: remove blackfin MPU support Arnd Bergmann
2018-03-14 17:41 ` [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Alexey Dobriyan
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2018-03-14 14:37 UTC (permalink / raw)
To: linux-arch, Andrew Morton
Cc: linux-kernel, Arnd Bergmann, Alexey Dobriyan, Akinobu Mita,
Dmitry Vyukov, Michal Hocko
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 <arnd@arndb.de>
---
fs/proc/base.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 9298324325ed..d53246863cfb 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -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),
--
2.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 09/16] mm: remove blackfin MPU support
2018-03-14 14:37 [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Arnd Bergmann
@ 2018-03-14 14:37 ` Arnd Bergmann
2018-03-14 17:41 ` [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Alexey Dobriyan
1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2018-03-14 14:37 UTC (permalink / raw)
To: linux-arch
Cc: linux-kernel, Arnd Bergmann, Jessica Yu, Steven Rostedt (VMware),
Kees Cook, Andrew Morton, Thomas Gleixner, Luis R. Rodriguez,
Jeremy Linton, linux-mm
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.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
kernel/module.c | 4 ----
mm/nommu.c | 20 --------------------
2 files changed, 24 deletions(-)
diff --git a/kernel/module.c b/kernel/module.c
index ad2d420024f6..2c1df850029b 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -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)
diff --git a/mm/nommu.c b/mm/nommu.c
index ebb6e618dade..838a8fdec5c2 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -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 */
--
2.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency
2018-03-14 14:37 [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Arnd Bergmann
2018-03-14 14:37 ` [PATCH 09/16] mm: remove blackfin MPU support Arnd Bergmann
@ 2018-03-14 17:41 ` Alexey Dobriyan
2018-03-14 20:18 ` Arnd Bergmann
1 sibling, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2018-03-14 17:41 UTC (permalink / raw)
To: Arnd Bergmann
Cc: linux-arch, Andrew Morton, linux-kernel, Akinobu Mita,
Dmitry Vyukov, Michal Hocko
On Wed, Mar 14, 2018 at 03:37:37PM +0100, Arnd Bergmann wrote:
> 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 <arnd@arndb.de>
ACK
Although it should go via tile tree for "atomicity".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency
2018-03-14 17:41 ` [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Alexey Dobriyan
@ 2018-03-14 20:18 ` Arnd Bergmann
0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2018-03-14 20:18 UTC (permalink / raw)
To: Alexey Dobriyan
Cc: linux-arch, Andrew Morton, Linux Kernel Mailing List,
Akinobu Mita, Dmitry Vyukov, Michal Hocko
On Wed, Mar 14, 2018 at 6:41 PM, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> On Wed, Mar 14, 2018 at 03:37:37PM +0100, Arnd Bergmann wrote:
>> 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 <arnd@arndb.de>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-14 20:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14 14:37 [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Arnd Bergmann
2018-03-14 14:37 ` [PATCH 09/16] mm: remove blackfin MPU support Arnd Bergmann
2018-03-14 17:41 ` [PATCH 08/16] procfs: remove CONFIG_HARDWALL dependency Alexey Dobriyan
2018-03-14 20:18 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).