Skip to contentSkip to conversation

+ mm-memoryc-mark-functions-as-static.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 7, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-memoryc-mark-functions-as-static.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 07 Feb 2014 14:31:25 -0800

The patch titled
Subject: mm/memory.c: mark functions as static
has been added to the -mm tree. Its filename is
mm-memoryc-mark-functions-as-static.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-memoryc-mark-functions-as-static.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-memoryc-mark-functions-as-static.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Rashika Kheria <[email protected]>
Subject: mm/memory.c: mark functions as static

mark functions as static in memory.c because they are not used outside this file.

This eliminates the following warnings in mm/memory.c:
mm/memory.c:3530:5: warning: no previous prototype for numa_migrate_prep' [-Wmissing-prototypes] mm/memory.c:3545:5: warning: no previous prototype for do_numa_page' [-Wmissing-prototypes]

---

 mm/memory.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-memoryc-mark-functions-as-static +2 -2
diff -puN mm/memory.c~mm-memoryc-mark-functions-as-static mm/memory.c
@@ -3530,7 +3530,7 @@ static int do_nonlinear_fault(struct mm_
 	return __do_fault(mm, vma, address, pmd, pgoff, flags, orig_pte);
 }
 
-int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
+static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
 				unsigned long addr, int page_nid,
 				int *flags)
 {
@@ -3545,7 +3545,7 @@ int numa_migrate_prep(struct page *page,
 	return mpol_misplaced(page, vma, addr);
 }
 
-int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
+static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
 		   unsigned long addr, pte_t pte, pte_t *ptep, pmd_t *pmd)
 {
 	struct page *page = NULL;

_

Patches currently in -mm which might be from [email protected] are

mm-compactionc-mark-function-as-static.patch mm-memoryc-mark-functions-as-static.patch mm-mmapc-mark-function-as-static.patch mm-process_vm_accessc-mark-function-as-static.patch mm-page_cgroupc-mark-functions-as-static.patch mm-nobootmemc-mark-function-as-static.patch include-linux-mmh-remove-ifdef-condition.patch