Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97572751 authored by Jaswinder Singh Rajput's avatar Jaswinder Singh Rajput
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: default avatarJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarPaul Menage <menage@google.com>
parent 43cc9609
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,14 +105,14 @@ static inline void __init page_cgroup_init_flatmem(void)

#endif

#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
#include <linux/swap.h>

#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id);
extern unsigned short lookup_swap_cgroup(swp_entry_t ent);
extern int swap_cgroup_swapon(int type, unsigned long max_pages);
extern void swap_cgroup_swapoff(int type);
#else
#include <linux/swap.h>

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