Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2021 14:19:58 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 69e18c9b7b12 - main - sys/dev/md: Drop unncessary __GLOBL(mfs_root)
Message-ID:  <202103301419.12UEJwSS012351@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=69e18c9b7b12e7fd97a740d8748d8718021a1e34

commit 69e18c9b7b12e7fd97a740d8748d8718021a1e34
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-30 13:53:41 +0000
Commit:     Alex Richardson <arichardson@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103301419.12UEJwSS012351>