Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1580899

[PATCH] m32r: mm: fix build warning

From Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] m32r: mm: fix build warning
Date 2017-02-14 23:10 +0100
Message-ID <taTsl-7x0-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The build of m32r was giving warning:
mm/pgtable-generic.c: In function 'ptep_clear_flush':
mm/pgtable-generic.c:76:20: warning:
	unused variable 'mm' [-Wunused-variable]

The implementation of ptep_get_and_clear() and pte_accessible()
does not use 'mm'.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
---

build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/201416051

 mm/pgtable-generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c
index 4ed5908..58f5937 100644
--- a/mm/pgtable-generic.c
+++ b/mm/pgtable-generic.c
@@ -73,7 +73,7 @@ int ptep_clear_flush_young(struct vm_area_struct *vma,
 pte_t ptep_clear_flush(struct vm_area_struct *vma, unsigned long address,
 		       pte_t *ptep)
 {
-	struct mm_struct *mm = (vma)->vm_mm;
+	struct mm_struct __maybe_unused *mm = (vma)->vm_mm;
 	pte_t pte;
 	pte = ptep_get_and_clear(mm, address, ptep);
 	if (pte_accessible(mm, pte))
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] m32r: mm: fix build warning Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2017-02-14 23:10 +0100
  Re: [PATCH] m32r: mm: fix build warning Andrew Morton <akpm@linux-foundation.org> - 2017-02-14 23:20 +0100
    Re: [PATCH] m32r: mm: fix build warning Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2017-02-15 12:40 +0100

csiph-web