Skip to content

Commit

Permalink
[PATCH] mm/swap_state: Fix "nocast type" warnings
Browse files Browse the repository at this point in the history
Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Victor Fusco authored and Linus Torvalds committed Sep 10, 2005
1 parent e776eba commit 9de75d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/swap_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9de75d1

Please sign in to comment.