提交 9de75d11 编写于 作者: V Victor Fusco 提交者: Linus Torvalds

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

Fix the sparse warning "implicit cast to nocast type"
Signed-off-by: NVictor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: NDomen Puncer <domen@coderock.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e776eba0
...@@ -67,8 +67,8 @@ void show_swap_cache_info(void) ...@@ -67,8 +67,8 @@ void show_swap_cache_info(void)
* __add_to_swap_cache resembles add_to_page_cache on swapper_space, * __add_to_swap_cache resembles add_to_page_cache on swapper_space,
* but sets SwapCache flag and private instead of mapping and index. * but sets SwapCache flag and private instead of mapping and index.
*/ */
static int __add_to_swap_cache(struct page *page, static int __add_to_swap_cache(struct page *page, swp_entry_t entry,
swp_entry_t entry, int gfp_mask) unsigned int __nocast gfp_mask)
{ {
int error; int error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册