git: 69e18c9b7b12 - main - sys/dev/md: Drop unncessary __GLOBL(mfs_root)
Alex Richardson
arichardson at FreeBSD.org
Tue Mar 30 14:19:59 UTC 2021
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=69e18c9b7b12e7fd97a740d8748d8718021a1e34
commit 69e18c9b7b12e7fd97a740d8748d8718021a1e34
Author: Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-03-30 13:53:41 +0000
Commit: Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-03-30 13:59:43 +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]
---
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 5c2cb2f25d2e..c5c90d9173ad 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -187,8 +187,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-all
mailing list