diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 1513994ce207dc0edbc696aed7e86ded9b552b56..9b296ea41bb85a5543c915dad41748c59fdd1734 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -384,13 +384,13 @@ mem_cgroup_print_bad_page(struct page *page) } #endif -#ifdef CONFIG_INET enum { UNDER_LIMIT, SOFT_LIMIT, OVER_LIMIT, }; +#ifdef CONFIG_INET struct sock; #ifdef CONFIG_CGROUP_MEM_RES_CTLR_KMEM void sock_update_memcg(struct sock *sk);