From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Mon, 8 Jul 2019 01:38:40 +0000 Subject: [U-Boot] [PATCH V2 01/51] linux: compat: guard PAGE_SIZE In-Reply-To: <20190708015333.20411-1-peng.fan@nxp.com> References: <20190708015333.20411-1-peng.fan@nxp.com> Message-ID: <20190708015333.20411-2-peng.fan@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Some archs defined PAGE_SIZE, such as ARMv8, to avoid build warning, guard PAGE_SIZE. Cc: Joe Hershberger Cc: Bin Meng Signed-off-by: Peng Fan --- include/linux/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index d0f51baab4..c1f8bdf8f2 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -123,7 +123,9 @@ static inline void kmem_cache_destroy(struct kmem_cache *cachep) #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#ifndef PAGE_SIZE #define PAGE_SIZE 4096 +#endif /* drivers/char/random.c */ #define get_random_bytes(...) -- 2.16.4