mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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
This commit is contained in:
parent
e858ddfcc6
commit
7b80f11563
1 changed files with 2 additions and 0 deletions
|
|
@ -15,7 +15,9 @@
|
|||
#include <linux/list.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/seq_file.h>
|
||||
#ifndef __GENKSYMS__
|
||||
#include <linux/mm.h>
|
||||
#endif
|
||||
|
||||
#include "sysfs.h"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue