From: Petr Mladek <pmladek@suse.com>
Subject: kABI workaround for including mm.h in fs/sysfs/file.c
Patch-mainline: Never, kABI workaround for linux-5.3 based SUSE kernels
References: bsc#1200598 cve-2022-20166
Including the header changes kABI of sysfs API that is implemented
in fs/sysfs/file.c.
Signed-off-by: Petr Mladek <pmladek@suse.com>
---
fs/sysfs/file.c | 2 ++
1 file changed, 2 insertions(+)
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -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"