* [PATCH] libctf: Mark bswap_identity_64 inline function as static.
@ 2020-03-05 22:28 John Baldwin
2020-03-11 7:20 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: John Baldwin @ 2020-03-05 22:28 UTC (permalink / raw)
To: gdb-patches, binutils
This is similar to cbbbc402e059ee345cb781d3ceb757ae1cc679ee and fixes
a link error with duplicately defined symbols on FreeBSD.
libctf/ChangeLog:
* swap.h (bswap_identity_64): Make static.
---
libctf/ChangeLog | 4 ++++
libctf/swap.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 9da5827c26..6fe5394bab 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,7 @@
+2020-03-05 John Baldwin <jhb@FreeBSD.org>
+
+ * swap.h (bswap_identity_64): Make static.
+
2020-01-18 Nick Clifton <nickc@redhat.com>
Binutils 2.34 branch created.
diff --git a/libctf/swap.h b/libctf/swap.h
index f8cc822db2..d526f7e267 100644
--- a/libctf/swap.h
+++ b/libctf/swap.h
@@ -43,7 +43,7 @@ bswap_32 (uint32_t v)
| ((v & 0x000000ff) << 24));
}
-inline uint64_t
+static inline uint64_t
bswap_identity_64 (uint64_t v)
{
return v;
--
2.23.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] libctf: Mark bswap_identity_64 inline function as static.
2020-03-05 22:28 [PATCH] libctf: Mark bswap_identity_64 inline function as static John Baldwin
@ 2020-03-11 7:20 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2020-03-11 7:20 UTC (permalink / raw)
To: John Baldwin; +Cc: gdb-patches, binutils
On Thu, Mar 05, 2020 at 02:27:08PM -0800, John Baldwin wrote:
> + * swap.h (bswap_identity_64): Make static.
Applied, thanks.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-11 7:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05 22:28 [PATCH] libctf: Mark bswap_identity_64 inline function as static John Baldwin
2020-03-11 7:20 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).