ANDROID: fix up crc problems 5.10.231
In commit a32712d54c61 ("mm: refactor arch_calc_vm_flag_bits() and arm64
MTE handling"), new .h files are included which break the CRC generation
of some symbols. Fix this up by only including the .h files for when a
real build happens to preserve the ABI.
Fixes: a32712d54c61 ("mm: refactor arch_calc_vm_flag_bits() and arm64 MTE handling")
Change-Id: I1f0990d75a4813c4f2dcb01ead3396cfbc7c452c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
diff --git a/arch/arm64/include/asm/mman.h b/arch/arm64/include/asm/mman.h
index 56bc2e4..c06b5e18 100644
--- a/arch/arm64/include/asm/mman.h
+++ b/arch/arm64/include/asm/mman.h
@@ -3,8 +3,10 @@
#define __ASM_MMAN_H__
#include <linux/compiler.h>
+#ifndef __GENKSYMS__
#include <linux/fs.h>
#include <linux/shmem_fs.h>
+#endif
#include <linux/types.h>
#include <uapi/asm/mman.h>
diff --git a/include/linux/mman.h b/include/linux/mman.h
index 5994365..a9ad907 100644
--- a/include/linux/mman.h
+++ b/include/linux/mman.h
@@ -2,7 +2,9 @@
#ifndef _LINUX_MMAN_H
#define _LINUX_MMAN_H
+#ifndef __GENKSYMS__
#include <linux/fs.h>
+#endif
#include <linux/mm.h>
#include <linux/percpu_counter.h>