From: Sergey Senozhatsky Date: Tue, 25 Mar 2025 08:04:16 +0000 (+0900) Subject: zsmalloc: cleanup headers includes X-Git-Tag: v6.16-rc1~92^2~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7eeafde0ac05fa84a74d37af0efe5c6c5270bbef;p=thirdparty%2Fkernel%2Fstable.git zsmalloc: cleanup headers includes Remove unused headers includes from zsmalloc and move pagemap.h and migrate.h includes into zpdesc header. Link: https://lkml.kernel.org/r/20250325080427.3449359-1-senozhatsky@chromium.org Signed-off-by: Sergey Senozhatsky Cc: Minchan Kim Signed-off-by: Andrew Morton --- diff --git a/mm/zpdesc.h b/mm/zpdesc.h index fa47fece22372..57e7a4d6c6caf 100644 --- a/mm/zpdesc.h +++ b/mm/zpdesc.h @@ -7,6 +7,9 @@ #ifndef __MM_ZPDESC_H__ #define __MM_ZPDESC_H__ +#include +#include + /* * struct zpdesc - Memory descriptor for zpool memory. * @flags: Page flags, mostly unused by zsmalloc. diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 513b08c7c9413..999b513c7fdff 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -26,17 +26,10 @@ #include #include #include -#include #include #include #include #include -#include -#include -#include -#include -#include -#include #include #include #include @@ -44,11 +37,8 @@ #include #include #include -#include -#include -#include #include -#include +#include #include "zpdesc.h" #define ZSPAGE_MAGIC 0x58