Skip to content

Commit 9757275

Browse files
includecheck fix: include/linux, page_cgroup.h
fix the following 'make includecheck' warning: include/linux/page_cgroup.h: linux/swap.h is included more than once. Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Cc: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Paul Menage <menage@google.com>
1 parent 43cc960 commit 9757275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/page_cgroup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ static inline void __init page_cgroup_init_flatmem(void)
105105

106106
#endif
107107

108-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
109108
#include <linux/swap.h>
109+
110+
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
110111
extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id);
111112
extern unsigned short lookup_swap_cgroup(swp_entry_t ent);
112113
extern int swap_cgroup_swapon(int type, unsigned long max_pages);
113114
extern void swap_cgroup_swapoff(int type);
114115
#else
115-
#include <linux/swap.h>
116116

117117
static inline
118118
unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id)

0 commit comments

Comments
 (0)