Return-Path: <domen@homer.coderock.org>
Received: from localhost (bix [127.0.0.1])
	by localhost.localdomain (8.12.10/8.12.10) with ESMTP id j6ELjCHF024315
	for <akpm@localhost>; Thu, 14 Jul 2005 14:45:16 -0700
Received: from bix [127.0.0.1]
	by localhost with POP3 (fetchmail-6.2.0)
	for akpm@localhost (single-drop); Thu, 14 Jul 2005 14:45:16 -0700 (PDT)
Received: from smtp.osdl.org (smtp.osdl.org [65.172.181.4])
	by shell0.pdx.osdl.net (8.13.1/8.11.6) with ESMTP id j6ELiIoh005860
	for <akpm@mail.gateway.osdl.net>; Thu, 14 Jul 2005 14:44:23 -0700
Received: from trashy.coderock.org (postfix@coderock.org [193.77.147.115])
	by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id j6ELi3j9029315
	for <akpm@osdl.org>; Thu, 14 Jul 2005 14:44:09 -0700
Received: by trashy.coderock.org (Postfix, from userid 780)
	id BD2D91E8EB; Thu, 14 Jul 2005 23:43:58 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by trashy.coderock.org (Postfix) with ESMTP id A2B191E69C;
	Thu, 14 Jul 2005 23:43:57 +0200 (CEST)
Received: from homer.coderock.org (localhost [127.0.0.1])
	by trashy.coderock.org (Postfix) with ESMTP id 2A64E1E8CD;
	Thu, 14 Jul 2005 23:43:53 +0200 (CEST)
Received: (from domen@localhost)
	by homer.coderock.org (8.13.3/8.13.3/Submit) id j6ELhqYr031452;
	Thu, 14 Jul 2005 23:43:52 +0200
Message-Id: <20050714214352.197408000@homer>
Date: Thu, 14 Jul 2005 23:43:52 +0200
From: domen@coderock.org
To: akpm@osdl.org
Cc: linux-mm@kvack.org, Victor Fusco <victor@cetuc.puc-rio.br>,
        domen@coderock.org
Subject: [patch 1/1] mm/swap_state: Fix "nocast type" warnings
Content-Disposition: inline; filename=sparse-mm_swap_state
Received-SPF: none (domain of domen@homer.coderock.org does not designate permitted sender hosts)
X-MIMEDefang-Filter: osdl$Revision: 1.113 $
X-Scanned-By: MIMEDefang 2.36
X-Spam-Level: 
X-Spam-Status: No, score=-1.1 required=2.0 tests=AWL,BAYES_00,NO_REAL_NAME 
	autolearn=no version=3.0.2
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on bix

From: Victor Fusco <victor@cetuc.puc-rio.br>


Fix the sparse warning "implicit cast to nocast type"

File/Subsystem:mm/swap_state.c

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>

--

---
 swap_state.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: quilt/mm/swap_state.c
===================================================================
--- quilt.orig/mm/swap_state.c
+++ quilt/mm/swap_state.c
@@ -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;
 

--
