The patch titled mm: make swap token dummies static inlines has been added to the -mm tree. Its filename is mm-make-swap-token-dummies-static-inlines.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: make swap token dummies static inlines From: Johannes Weiner <hannes@xxxxxxxxxxx> Make use of the compiler's typechecking on !CONFIG_SWAP as well. Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> Reviewed-by: Rik van Riel <riel@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/swap.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff -puN include/linux/swap.h~mm-make-swap-token-dummies-static-inlines include/linux/swap.h --- a/include/linux/swap.h~mm-make-swap-token-dummies-static-inlines +++ a/include/linux/swap.h @@ -419,10 +419,22 @@ static inline swp_entry_t get_swap_page( } /* linux/mm/thrash.c */ -#define put_swap_token(mm) do { } while (0) -#define grab_swap_token(mm) do { } while (0) -#define has_swap_token(mm) 0 -#define disable_swap_token() do { } while (0) +static inline void put_swap_token(struct mm_struct *mm) +{ +} + +static inline void grab_swap_token(void) +{ +} + +static inline int has_swap_token(struct mm_struct *mm) +{ + return 0; +} + +static inline void disable_swap_token(struct mm_struct *mm) +{ +} static inline void mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) _ Patches currently in -mm which might be from hannes@xxxxxxxxxxx are origin.patch mm-pass-mm-to-grab_swap_token.patch mm-make-swap-token-dummies-static-inlines.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html