mm-fix-error-do-not-initialise-globals-to-0-or-null-and-coding-style.patch removed from -mm tree
Subsystems (3)
[email protected]
maintainerSubject: [merged] mm-fix-error-do-not-initialise-globals-to-0-or-null-and-coding-style.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Tue, 08 Apr 2014 13:48:11 -0700
The patch titled
Subject: mm: fix 'ERROR: do not initialise globals to 0 or NULL' and coding style
has been removed from the -mm tree. Its filename was
mm-fix-error-do-not-initialise-globals-to-0-or-null-and-coding-style.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Choi Gi-yong <[email protected]>
Subject: mm: fix 'ERROR: do not initialise globals to 0 or NULL' and coding style
---
mm/hugetlb.c | 3 +-- mm/nommu.c | 16 ++++++---------- 2 files changed, 7 insertions(+), 12 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-fix-error-do-not-initialise-globals-to-0-or-null-and-coding-style +1 -2
@@ -2898,8 +2898,7 @@ retry:if (anon_rmap) {ClearPagePrivate (page);hugepage_add_new_anon_rmap (page, vma, address); - } -else + }else page_dup_rmap (page); new_pte =make_huge_pte (vma, page, ((vma->vm_flags &VM_WRITE ) && (vma->vm_flags &VM_SHARED )));
mm/nommu.c renamed from mm/nommu.c~mm-fix-error-do-not-initialise-globals-to-0-or-null-and-coding-style +6 -10
@@ -298,7 +298,7 @@ long vwrite(char *buf, char *addr, unsig count = -(unsigned long ) addr;memcpy (addr, buf, count); -return (count); +return count; }/*
@@ -1012,8 +1012,7 @@ static int validate_mmap_request(struct/* we mustn't privatise shared mappings */ capabilities &= ~BDI_CAP_MAP_COPY ; - } -else { + }else {/* we're going to read the file into private memory we * allocate */ if (!(capabilities &BDI_CAP_MAP_COPY ))
@@ -1044,23 +1043,20 @@ static int validate_mmap_request(structif (file->f_path.mnt->mnt_flags &MNT_NOEXEC ) {if (prot &PROT_EXEC )return -EPERM ; - } -else if ((prot &PROT_READ ) && !(prot &PROT_EXEC )) { + }else if ((prot &PROT_READ ) && !(prot &PROT_EXEC )) {/* handle implication of PROT_EXEC by PROT_READ */ if (current->personality &READ_IMPLIES_EXEC ) {if (capabilities &BDI_CAP_EXEC_MAP ) prot |=PROT_EXEC ; } - } -else if ((prot &PROT_READ ) && + }else if ((prot &PROT_READ ) && (prot &PROT_EXEC ) && !(capabilities &BDI_CAP_EXEC_MAP ) ) {/* backing file is not executable, try to copy */ capabilities &= ~BDI_CAP_MAP_DIRECT ; } - } -else { + }else {/* anonymous mappings are always memory backed and can be * privately mapped */
@@ -1668,7 +1664,7 @@ int do_munmap(struct mm_struct *mm, unsi/* find the first potentially overlapping VMA */ vma =find_vma (mm, start);if (!vma) { -static int limit =0 ; +static int limit;if (limit <5 ) {printk (KERN_WARNING "munmap of memory not mmapped by process %d"
_
Patches currently in -mm which might be from [email protected] are
origin.patch