android_kernel_xiaomi_sm8350/fs/sysfs
Greg Kroah-Hartman 7b80f11563 ANDROID: GKI: hack up fs/sysfs/file.c to prevent GENKSYMS change
In commit 5f42436428 ("sysfs: Add sysfs_emit and sysfs_emit_at to
format sysfs output") in 5.4.103, a #include <linux/mm.h> addition is
added to the fs/sysfs/file.c file, before sysfs.h is included in the
build.  This ends up causing a previously "UNKNOWN" symbol type
definition of struct vm_operations_struct to become "known" which
propagates to a CRC change for some sysfs symbol definitions.

To prevent all this mess, add a simple #ifndef to prevent the mm.h file
from being included when running the symbol tool, and all is fine.

Bug: 161946584
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ibcc22bedc4f39d2ef49a52ebd7962a8dba5b0583
2021-03-08 10:09:14 +01:00
..
dir.c sysfs: convert BUG_ON to WARN_ON 2019-01-07 08:53:32 +01:00
file.c ANDROID: GKI: hack up fs/sysfs/file.c to prevent GENKSYMS change 2021-03-08 10:09:14 +01:00
group.c sysfs: Add sysfs_update_groups function 2019-06-03 11:58:20 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mount.c no need to protect against put_user_ns(NULL) 2019-05-25 17:59:54 -04:00
symlink.c sysfs: convert BUG_ON to WARN_ON 2019-01-07 08:53:32 +01:00
sysfs.h sysfs, kobject: allow creating kobject belonging to arbitrary users 2018-07-20 23:44:35 -07:00