git: d4f253ea50f7 - stable/12 - sys/dev/md: Drop unncessary __GLOBL(mfs_root)
Mateusz Guzik
mjg at FreeBSD.org
Sat Jun 26 16:28:21 UTC 2021
The branch stable/12 has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=d4f253ea50f7682f72d3f86bcc9019089dae096c
commit d4f253ea50f7682f72d3f86bcc9019089dae096c
Author: Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-03-30 13:53:41 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-06-26 15:52:06 +0000
sys/dev/md: Drop unncessary __GLOBL(mfs_root)
LLVM12 complains if you change the symbol binding:
error: mfs_root_end changed binding to STB_WEAK [-Werror,-Winline-asm]
error: mfs_root changed binding to STB_WEAK [-Werror,-Winline-asm]
(cherry picked from commit 69e18c9b7b12e7fd97a740d8748d8718021a1e34)
---
sys/dev/md/md.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index e134e8e94b69..9e795a4a933b 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -188,8 +188,6 @@ int mfs_root_size;
#else
extern volatile u_char __weak_symbol mfs_root;
extern volatile u_char __weak_symbol mfs_root_end;
-__GLOBL(mfs_root);
-__GLOBL(mfs_root_end);
#define mfs_root_size ((uintptr_t)(&mfs_root_end - &mfs_root))
#endif
#endif
More information about the dev-commits-src-branches
mailing list