Commit 01a6ad9a authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Linus Torvalds
Browse files

zsmalloc: use U suffix for negative literals being shifted

Fix warning about shifting unsigned literals being undefined behavior.


Signed-off-by: default avatarNick Desaulniers <>
Suggested-by: default avatarMinchan Kim <>
Reviewed-by: default avatarSergey Senozhatsky <>
Cc: Andy Shevchenko <>
Cc: Matthew Wilcox <>
Cc: Nick Desaulniers <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6787c1da
......@@ -1047,7 +1047,7 @@ static void init_zspage(struct size_class *class, struct zspage *zspage)
* 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;
page = next_page;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment