Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] mm/swap_state: Fix "nocast type" warnings

Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Victor Fusco and committed by
Linus Torvalds
9de75d11 e776eba0

+2 -2
+2 -2
mm/swap_state.c
··· 67 67 * __add_to_swap_cache resembles add_to_page_cache on swapper_space, 68 68 * but sets SwapCache flag and private instead of mapping and index. 69 69 */ 70 - static int __add_to_swap_cache(struct page *page, 71 - swp_entry_t entry, int gfp_mask) 70 + static int __add_to_swap_cache(struct page *page, swp_entry_t entry, 71 + unsigned int __nocast gfp_mask) 72 72 { 73 73 int error; 74 74