1
0
Fork 0

[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>
hifive-unleashed-5.1
Victor Fusco 2005-09-10 00:26:46 -07:00 committed by Linus Torvalds
parent e776eba0fe
commit 9de75d110c
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ void show_swap_cache_info(void)
* __add_to_swap_cache resembles add_to_page_cache on swapper_space,
* but sets SwapCache flag and private instead of mapping and index.
*/
static int __add_to_swap_cache(struct page *page,
swp_entry_t entry, int gfp_mask)
static int __add_to_swap_cache(struct page *page, swp_entry_t entry,
unsigned int __nocast gfp_mask)
{
int error;