[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] symbol: drop private header again



commit 69b271d71e3265712629cd545a48da5e114635e0
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Dec 10 08:52:34 2025 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Dec 10 08:52:34 2025 +0100

    symbol: drop private header again
    
    With symbols-dummy.c gone, there's only on party using this header. Fold
    its contents back into symbols.c.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/common/symbols.c | 19 ++++++++++++++++++-
 xen/common/symbols.h | 36 ------------------------------------
 2 files changed, 18 insertions(+), 37 deletions(-)

diff --git a/xen/common/symbols.c b/xen/common/symbols.c
index 2260539800..61af77979d 100644
--- a/xen/common/symbols.c
+++ b/xen/common/symbols.c
@@ -15,12 +15,29 @@
 #include <xen/lib.h>
 #include <xen/string.h>
 #include <xen/spinlock.h>
+#include <xen/symbols.h>
 #include <xen/virtual_region.h>
 #include <public/platform.h>
 #include <xen/guest_access.h>
 #include <xen/errno.h>
 
-#include "symbols.h"
+#ifdef SYMBOLS_ORIGIN
+extern const unsigned int symbols_offsets[];
+#define symbols_address(n) (SYMBOLS_ORIGIN + symbols_offsets[n])
+#else
+extern const unsigned long symbols_addresses[];
+#define symbols_address(n) symbols_addresses[n]
+#endif
+extern const unsigned int symbols_num_addrs;
+extern const unsigned char symbols_names[];
+
+extern const unsigned int symbols_num_names;
+extern const struct symbol_offset symbols_sorted_offsets[];
+
+extern const uint8_t symbols_token_table[];
+extern const uint16_t symbols_token_index[];
+
+extern const unsigned int symbols_markers[];
 
 /* expand a compressed symbol data into the resulting uncompressed string,
    given the offset to where the symbol is in the compressed stream */
diff --git a/xen/common/symbols.h b/xen/common/symbols.h
deleted file mode 100644
index a993f41c21..0000000000
--- a/xen/common/symbols.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef SYMBOLS_H
-#define SYMBOLS_H
-
-#include <xen/stdint.h>
-#include <xen/symbols.h>
-
-#ifdef SYMBOLS_ORIGIN
-extern const unsigned int symbols_offsets[];
-#define symbols_address(n) (SYMBOLS_ORIGIN + symbols_offsets[n])
-#else
-extern const unsigned long symbols_addresses[];
-#define symbols_address(n) symbols_addresses[n]
-#endif
-extern const unsigned int symbols_num_addrs;
-extern const unsigned char symbols_names[];
-
-extern const unsigned int symbols_num_names;
-extern const struct symbol_offset symbols_sorted_offsets[];
-
-extern const uint8_t symbols_token_table[];
-extern const uint16_t symbols_token_index[];
-
-extern const unsigned int symbols_markers[];
-
-#endif /* SYMBOLS_H */
-
-/*
- * Local variables:
- * mode: C
- * c-file-style: "BSD"
- * c-basic-offset: 4
- * tab-width: 4
- * indent-tabs-mode: nil
- * End:
- */
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.