Re: [PATCH] Missing include in swap.h for some architectures

From: Andrew Morton
Date: Mon Oct 20 2003 - 04:26:37 EST


"Noah J. Misch" <noah@xxxxxxxxxxx> wrote:
>
> # The linux/swap.h header uses the page_cache_release and release_pages
> # functions declared in linux/pagemap.h when CONFIG_SWAP is disabled. Add
> # an include of linux/pagemap.h so swap.h finds those declarations on
> # architectures that don't include pagemap.h indirectly.

This carries a small risk of breaking things. I think I'd prefer that the
offending .c files just include pagemap.h please.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/