mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
zsmalloc: use U suffix for negative literals being shifted
Fix warning about shifting unsigned literals being undefined behavior. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Nick Desaulniers <[email protected]> Suggested-by: Minchan Kim <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Nick Desaulniers <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6787c1dab1
commit
01a6ad9ac8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
kunmap_atomic(vaddr);
|
||||
page = next_page;
|
||||
|
|
|
|||
Loading…
Reference in a new issue