+ unwinder-warning-fixes.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     unwinder warning fixes

has been added to the -mm tree.  Its filename is

     unwinder-warning-fixes.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: unwinder warning fixes
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>

arch/x86_64/kernel/traps.c: In function 'show_trace':
arch/x86_64/kernel/traps.c:287: warning: cast to pointer from integer of different size
>
>That's
>
>			stack = (unsigned long *)UNW_SP(&info);
>
>which expands to
>
>     stack = (unsigned long *)((void)(&info), 0);
>
>because CONFIG_UNWIND_INFO=n.
>

Simple to fix I guess, although I think the compiler could do better
here (after all, they must already be special casing (void *)0 in order
for the conventional definition of NULL to not trigger the warning.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/asm-i386/unwind.h   |    4 ++--
 include/asm-x86_64/unwind.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff -puN include/asm-i386/unwind.h~unwinder-warning-fixes include/asm-i386/unwind.h
--- a/include/asm-i386/unwind.h~unwinder-warning-fixes
+++ a/include/asm-i386/unwind.h
@@ -86,8 +86,8 @@ static inline int arch_unw_user_mode(con
 
 #else
 
-#define UNW_PC(frame) ((void)(frame), 0)
-#define UNW_SP(frame) ((void)(frame), 0)
+#define UNW_PC(frame) ((void)(frame), 0UL)
+#define UNW_SP(frame) ((void)(frame), 0UL)
 
 static inline int arch_unw_user_mode(const void *info)
 {
diff -puN include/asm-x86_64/unwind.h~unwinder-warning-fixes include/asm-x86_64/unwind.h
--- a/include/asm-x86_64/unwind.h~unwinder-warning-fixes
+++ a/include/asm-x86_64/unwind.h
@@ -94,8 +94,8 @@ static inline int arch_unw_user_mode(con
 
 #else
 
-#define UNW_PC(frame) ((void)(frame), 0)
-#define UNW_SP(frame) ((void)(frame), 0)
+#define UNW_PC(frame) ((void)(frame), 0UL)
+#define UNW_SP(frame) ((void)(frame), 0UL)
 
 static inline int arch_unw_user_mode(const void *info)
 {
_

Patches currently in -mm which might be from jbeulich@xxxxxxxxxx are

origin.patch
revert-x86_64-mm-i386-remove-lock-section.patch
revert-x86_64-mm-detect-cfi.patch
unwinder-warning-fixes.patch
fix-intel-rng-detection.patch
unwind-fix-unused-variable-warning-when.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux