[01/14] libdw: Make try_split_file static

Message ID 4b9aa967292ca6145423bf39796bd12fdd392096.1695837512.git.osandov@fb.com
State Committed
Headers
Series elfutils: DWARF package (.dwp) file support |

Commit Message

Omar Sandoval Sept. 27, 2023, 6:20 p.m. UTC
  From: Omar Sandoval <osandov@fb.com>

It's only used in libdw_find_split_unit.c.

Signed-off-by: Omar Sandoval <osandov@fb.com>
---
 libdw/ChangeLog               | 4 ++++
 libdw/libdw_find_split_unit.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
  

Comments

Mark Wielaard Oct. 3, 2023, 4:09 p.m. UTC | #1
Hi Omar,

On Wed, 2023-09-27 at 11:20 -0700, Omar Sandoval wrote:
> It's only used in libdw_find_split_unit.c.

Obvious correct. Applied.

Thanks,

Mark
  

Patch

diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 406310ef..0014aeb1 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@ 
+2023-09-27  Omar Sandoval  <osandov@fb.com>
+
+	* libdw_find_split_unit.c (try_split_file): Make static.
+
 2023-02-22  Mark Wielaard  <mark@klomp.org>
 
 	* dwarf_getscopes.c (origin_match): Don't free a->scopes.
diff --git a/libdw/libdw_find_split_unit.c b/libdw/libdw_find_split_unit.c
index a22e7bc9..533f8072 100644
--- a/libdw/libdw_find_split_unit.c
+++ b/libdw/libdw_find_split_unit.c
@@ -41,7 +41,7 @@ 
 #include <sys/stat.h>
 #include <fcntl.h>
 
-void
+static void
 try_split_file (Dwarf_CU *cu, const char *dwo_path)
 {
   int split_fd = open (dwo_path, O_RDONLY);