Messages in this thread | | | Date | Tue, 16 May 2006 13:24:22 +0200 (CEST) | From | Roman Zippel <> | Subject | Re: [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 | |