Skip to content

Commit 9de75d1

Browse files
Victor FuscoLinus Torvalds
authored andcommitted
[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>
1 parent e776eba commit 9de75d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎mm/swap_state.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ void show_swap_cache_info(void)
6767
* __add_to_swap_cache resembles add_to_page_cache on swapper_space,
6868
* but sets SwapCache flag and private instead of mapping and index.
6969
*/
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)
7272
{
7373
int error;
7474

0 commit comments

Comments
 (0)