Messages in this thread | | | Subject | Re: [PATCH] mm: cleanup swap unused warning | From | Daniel Walker <> | Date | Wed, 10 May 2006 11:20:55 -0700 |
| |
On Wed, 2006-05-10 at 04:38 -0700, Andrew Morton wrote: > Con Kolivas <kernel@kolivas.org> wrote: > > > > Are there any users of swp_entry_t when CONFIG_SWAP is not defined? > > Well there shouldn't be. Making accesses to swp_entry_t.val fail to > compile if !CONFIG_SWAP might be useful.
In mm/vmscan.c line 387 it defined swp_entry_t and sets val regardless of CONFIG_SWAP , but the value never really gets used .. Showed up in my warning reviews.
Daniel
- 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/
| |