From 2f7c68cb55ecb7331f2381deb497c27155f32faf Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 03 Jan 2024 09:43:39 +0000
Subject: [PATCH] update kernel to 5.10.198

---
 kernel/include/linux/reboot.h |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/kernel/include/linux/reboot.h b/kernel/include/linux/reboot.h
index 64036b9..1c8d785 100644
--- a/kernel/include/linux/reboot.h
+++ b/kernel/include/linux/reboot.h
@@ -49,9 +49,25 @@
 extern int unregister_restart_handler(struct notifier_block *);
 extern void do_kernel_restart(char *cmd);
 
-extern int register_pre_restart_handler(struct notifier_block *);
-extern int unregister_pre_restart_handler(struct notifier_block *);
+#ifdef CONFIG_NO_GKI
+extern int register_pre_restart_handler(struct notifier_block *nb);
+extern int unregister_pre_restart_handler(struct notifier_block *nb);
 extern void do_kernel_pre_restart(char *cmd);
+#else
+static inline int register_pre_restart_handler(struct notifier_block *nb)
+{
+	return 0;
+}
+
+static inline int unregister_pre_restart_handler(struct notifier_block *nb)
+{
+	return 0;
+}
+
+static inline void do_kernel_pre_restart(char *cmd)
+{
+}
+#endif
 
 /*
  * Architecture-specific implementations of sys_reboot commands.

--
Gitblit v1.6.2