Linux MM tree latest commits
 help / color / mirror / Atom feed
* [merged] zsmalloc-use-u-suffix-for-negative-literals-being-shifted.patch removed from -mm tree
@ 2018-02-01 19:34 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2018-02-01 19:34 UTC (permalink / raw)
  To: andy.shevchenko, minchan, mm-commits, nick.desaulniers,
	sergey.senozhatsky, willy


The patch titled
     Subject: zsmalloc: use U suffix for negative literals being shifted
has been removed from the -mm tree.  Its filename was
     zsmalloc-use-u-suffix-for-negative-literals-being-shifted.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Nick Desaulniers <nick.desaulniers@gmail.com>
Subject: zsmalloc: use U suffix for negative literals being shifted

Fix warning about shifting unsigned literals being undefined behavior.

Link: http://lkml.kernel.org/r/1515642078-4259-1-git-send-email-nick.desaulniers@gmail.com
Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
Suggested-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Nick Desaulniers <nick.desaulniers@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

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

diff -puN mm/zsmalloc.c~zsmalloc-use-u-suffix-for-negative-literals-being-shifted mm/zsmalloc.c
--- a/mm/zsmalloc.c~zsmalloc-use-u-suffix-for-negative-literals-being-shifted
+++ a/mm/zsmalloc.c
@@ -1047,7 +1047,7 @@ static void init_zspage(struct size_clas
 			 * Reset OBJ_TAG_BITS bit to last link to tell
 			 * whether it's allocated object or not.
 			 */
-			link->next = -1 << OBJ_TAG_BITS;
+			link->next = -1UL << OBJ_TAG_BITS;
 		}
 		kunmap_atomic(vaddr);
 		page = next_page;
_

Patches currently in -mm which might be from nick.desaulniers@gmail.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-01 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 19:34 [merged] zsmalloc-use-u-suffix-for-negative-literals-being-shifted.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox