lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 16 Apr 2009 22:12:18 -0400
From:	"H Hartley Sweeten" <hartleys@...ionengravers.com>
To:	<linux-kernel@...r.kernel.org>
Subject: [PATCH] include/asm-generic/pgtable.h: fix sparse warnings

Fix a number of sparse warnings due to macro expansion.

  warning: symbol '__pte' shadows an earlier one

These sparse warning show up in the following sources:

  mm/fremap.c
  mm/mremap.c
  mm/memory.c
  mm/rmap.c

This trivial patch fixes all the warnings.

Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>

---

diff --git a/include/asm-generic/pgtable.h
b/include/asm-generic/pgtable.h
index 8e6d0ca..c51b173 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -53,9 +53,9 @@
 #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR
 #define ptep_get_and_clear(__mm, __address, __ptep)
\
 ({
\
-	pte_t __pte = *(__ptep);
\
+	pte_t ___pte = *(__ptep);
\
 	pte_clear((__mm), (__address), (__ptep));
\
-	__pte;
\
+	___pte;
\
 })
 #endif
  
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ