+ linux-next-build-warning-after-merge-of-the-akpm-current-tree.patch added to -mm tree

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

 



The patch titled
     Subject: byteswap-try-to-avoid-__builtin_constant_p-gcc-bug-fix
has been added to the -mm tree.  Its filename is
     linux-next-build-warning-after-merge-of-the-akpm-current-tree.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/linux-next-build-warning-after-merge-of-the-akpm-current-tree.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/linux-next-build-warning-after-merge-of-the-akpm-current-tree.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: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Subject: byteswap-try-to-avoid-__builtin_constant_p-gcc-bug-fix

We probably need to add a (__u64) cast to the return value of
__builtin_bswap64(), like:

Cc: Arnd Bergmann <arnd@xxxxxxxx>
Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/uapi/linux/swab.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/uapi/linux/swab.h~linux-next-build-warning-after-merge-of-the-akpm-current-tree include/uapi/linux/swab.h
--- a/include/uapi/linux/swab.h~linux-next-build-warning-after-merge-of-the-akpm-current-tree
+++ a/include/uapi/linux/swab.h
@@ -123,7 +123,7 @@ static inline __attribute_const__ __u32
  * @x: value to byteswap
  */
 #ifdef __HAVE_BUILTIN_BSWAP64__
-#define __swab64(x) __builtin_bswap64((__u64)(x))
+#define __swab64(x) (__u64)__builtin_bswap64((__u64)(x))
 #else
 #define __swab64(x)				\
 	(__builtin_constant_p((__u64)(x)) ?	\
_

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

linux-next-build-warning-after-merge-of-the-akpm-current-tree.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