lkml.org 
[lkml]   [2006]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: cleanup swap unused warning
Hi,

On Wed, 10 May 2006, Con Kolivas wrote:

> Are there any users of swp_entry_t when CONFIG_SWAP is not defined?
>
> This patch fixes a warning for !CONFIG_SWAP for me.
>
> ---
> if CONFIG_SWAP is not defined we get:
>
> mm/vmscan.c: In function ‘remove_mapping’:
> mm/vmscan.c:387: warning: unused variable ‘swap’

In similiar cases (e.g. spinlocks) we usually do something like this:

#define swap_free(swp) ((void)(swp))

bye, Roman
\
 
 \ /
  Last update: 2006-05-16 13:27    [W:0.093 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site