libctf: Mark bswap_identity_64 inline function as static.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 5 Mar 2020 22:27:08 +0000 (14:27 -0800)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Mar 2020 07:18:49 +0000 (17:48 +1030)
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
libctf/swap.h

index 9da5827c26a278dd849ce196fd4cff1b34e6de80..5f7bdf34c286e2e04316b78e90f1ad7e92bf38f0 100644 (file)
@@ -1,3 +1,7 @@
+2020-03-11  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.
index f8cc822db2eb2511052565828fdf83627d2d89c3..d526f7e267139b1865a07c28a5cc98722a187d6f 100644 (file)
@@ -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;