From a36159eec6ca17402b0e146b86efaf76568dc353 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 20 Sep 2024 01:41:23 +0000
Subject: [PATCH] 重命名 AX88772C_eeprom/asix.c 为 asix_mac.c
---
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