Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964931AbWEJLmW (ORCPT ); Wed, 10 May 2006 07:42:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964932AbWEJLmW (ORCPT ); Wed, 10 May 2006 07:42:22 -0400 Received: from wr-out-0506.google.com ([64.233.184.226]:5994 "EHLO wr-out-0506.google.com") by vger.kernel.org with ESMTP id S964931AbWEJLmV convert rfc822-to-8bit (ORCPT ); Wed, 10 May 2006 07:42:21 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=HXPOpUuVEMstTF1cpUKA1AkVWSOj2yuU82t5UdNmBeIsRf1DyLw1DXZ3lgnZ95RP8Og1o8Pgtl1NEVsj+NBguUk1zfX6MoYUI009QiJWeZSpgyjZq+rMFMKSvtljbhq66hqhg3mzWJUBh2DWMxGN3LuZXyspoV6HJAPRCiVKQvQ= Message-ID: <84144f020605100442g617e9ddfk45ce444483ea86b8@mail.gmail.com> Date: Wed, 10 May 2006 14:42:20 +0300 From: "Pekka Enberg" To: "Con Kolivas" Subject: Re: [PATCH] mm: cleanup swap unused warning Cc: "linux list" , linux-mm@kvack.org, "Andrew Morton" In-Reply-To: <200605102132.41217.kernel@kolivas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <200605102132.41217.kernel@kolivas.org> X-Google-Sender-Auth: 86b31a03400b7790 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 25 On 5/10/06, Con Kolivas wrote: > +/* > + * A swap entry has to fit into a "unsigned long", as > + * the entry is hidden in the "index" field of the > + * swapper address space. > + */ > +#ifdef CONFIG_SWAP > typedef struct { > unsigned long val; > } swp_entry_t; > +#else > +typedef struct { > + unsigned long val; > +} swp_entry_t __attribute__((__unused__)); > +#endif Or we could make swap_free() an empty static inline function for the non-CONFIG_SWAP case. Pekka - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/