* + lib-string-add-ull-suffix-to-the-constant-definition.patch added to -mm tree
@ 2015-11-10 20:58 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2015-11-10 20:58 UTC (permalink / raw)
To: andriy.shevchenko, mm-commits
The patch titled
Subject: lib/string.c: add ULL suffix to the constant definition
has been added to the -mm tree. Its filename is
lib-string-add-ull-suffix-to-the-constant-definition.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-string-add-ull-suffix-to-the-constant-definition.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-string-add-ull-suffix-to-the-constant-definition.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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: lib/string.c: add ULL suffix to the constant definition
8-byte constant is too big for long and compiler complains about this.
lib/string.c:907:20: warning: constant 0x0101010101010101 is so big it is long
Append ULL suffix to explicitly show its type.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/string.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN lib/string.c~lib-string-add-ull-suffix-to-the-constant-definition lib/string.c
--- a/lib/string.c~lib-string-add-ull-suffix-to-the-constant-definition
+++ a/lib/string.c
@@ -904,7 +904,7 @@ void *memchr_inv(const void *start, int
value64 = value;
#if defined(CONFIG_ARCH_HAS_FAST_MULTIPLIER) && BITS_PER_LONG == 64
- value64 *= 0x0101010101010101;
+ value64 *= 0x0101010101010101ULL;
#elif defined(CONFIG_ARCH_HAS_FAST_MULTIPLIER)
value64 *= 0x01010101;
value64 |= value64 << 32;
_
Patches currently in -mm which might be from andriy.shevchenko@linux.intel.com are
lib-string-add-ull-suffix-to-the-constant-definition.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-10 20:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-10 20:58 + lib-string-add-ull-suffix-to-the-constant-definition.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.