lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220525012624.388023-1-zhanggenjian@kylinos.cn>
Date:   Wed, 25 May 2022 09:26:24 +0800
From:   zhanggenjian <zhanggenjian123@...il.com>
To:     tsbogend@...ha.franken.de
Cc:     linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
        huhai@...inos.cn, zhanggenjian123@...il.com
Subject: [PATCH] MIPS: Export _machine_restart to modules

From: huhai <huhai@...inos.cn>

modpost complains once these drivers become modules.
  ERROR: modpost: "_machine_restart" [drivers/char/tb0219.ko] undefined!

Fix it by export them when that symbol is =m.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: huhai <huhai@...inos.cn>
---
 arch/mips/kernel/reset.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/kernel/reset.c b/arch/mips/kernel/reset.c
index 6288780b779e..f3420a871087 100644
--- a/arch/mips/kernel/reset.c
+++ b/arch/mips/kernel/reset.c
@@ -24,6 +24,9 @@
  * functions.
  */
 void (*_machine_restart)(char *command);
+#ifdef CONFIG_GPIO_TB0219_MODULE
+EXPORT_SYMBOL_GPL(_machine_restart);
+#endif
 void (*_machine_halt)(void);
 void (*pm_power_off)(void);
 
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ