Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2021 13:30:07 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 30626f9ad5ef - stable/13 - sys/dev/md: Drop unncessary __GLOBL(mfs_root)
Message-ID:  <202104101330.13ADU7oI004920@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=30626f9ad5effa12daa2f9f4b9c30c98e20b0200

commit 30626f9ad5effa12daa2f9f4b9c30c98e20b0200
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-30 13:53:41 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-04-10 13:01:05 +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 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?202104101330.13ADU7oI004920>