@@ -31,7 +31,7 @@ typedef uint64_t __be64;
#undef ERROR
#define __BYTEORDER_HAS_U64__
-#define __TYPES_H__ /* xen/types.h guard */
+#define XEN__TYPES_H /* xen/types.h guard */
#include "../../xen/include/xen/byteorder/little_endian.h"
#include "../../xen/include/xen/unaligned.h"
#include "../../xen/include/xen/xxhash.h"
@@ -1,5 +1,5 @@
/* SAF-10-safe direct inclusion guard before */
-#ifndef __XEN_HYPERCALL_H__
+#ifndef XEN__HYPERCALL_H
#error "asm/hypercall.h should not be included directly - include xen/hypercall.h instead"
#endif
@@ -160,7 +160,7 @@ typedef enum {
P2M_FOREIGN_TYPES))
/* All common type definitions should live ahead of this inclusion. */
-#ifdef _XEN_P2M_COMMON_H
+#ifdef XEN__P2M_COMMON_H
# error "xen/p2m-common.h should not be included directly"
#endif
#include <xen/p2m-common.h>
@@ -3,7 +3,7 @@
*/
/* SAF-10-safe direct inclusion guard before */
-#ifndef __XEN_HYPERCALL_H__
+#ifndef XEN__HYPERCALL_H
#error "asm/hypercall.h should not be included directly - include xen/hypercall.h instead"
#endif
@@ -392,7 +392,7 @@ struct p2m_domain {
#define p2m_get_hostp2m(d) ((d)->arch.p2m)
/* All common type definitions should live ahead of this inclusion. */
-#ifdef _XEN_P2M_COMMON_H
+#ifdef XEN__P2M_COMMON_H
# error "xen/p2m-common.h should not be included directly"
#endif
#include <xen/p2m-common.h>
@@ -1,5 +1,5 @@
-#ifndef _XEN_COV_PRIV_H
-#define _XEN_COV_PRIV_H
+#ifndef COMMON__COVERAGE__COVERAGE_H
+#define COMMON__COVERAGE__COVERAGE_H
#include <xen/types.h>
@@ -1,5 +1,5 @@
-#ifndef _GCOV_H_
-#define _GCOV_H_
+#ifndef COMMON__COVERAGE__GCOV_H
+#define COMMON__COVERAGE__GCOV_H
#include <xen/guest_access.h>
#include <xen/types.h>
@@ -37,4 +37,4 @@ size_t gcov_info_to_gcda(char *buffer, const struct gcov_info *info);
size_t gcov_store_uint32(void *buffer, size_t off, uint32_t v);
size_t gcov_store_uint64(void *buffer, size_t off, uint64_t v);
-#endif /* _GCOV_H_ */
+#endif /* COMMON__COVERAGE__GCOV_H */
@@ -12,8 +12,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __LIBELF_PRIVATE_H__
-#define __LIBELF_PRIVATE_H__
+#ifndef COMMON__LIBELF__LIBELF_PRIVATE_H
+#define COMMON__LIBELF__LIBELF_PRIVATE_H
#ifdef __XEN__
@@ -105,7 +105,7 @@ do { strncpy((d),(s),sizeof((d))-1); \
* of memcpy, memset, memmove and strcpy. Every call site
* must either use elf_mem*_unchecked, or elf_mem*_safe. */
-#endif /* __LIBELF_PRIVATE_H__ */
+#endif /* COMMON__LIBELF__LIBELF_PRIVATE_H */
/*
* Local variables:
@@ -8,8 +8,8 @@
* published by the Free Software Foundation.
*/
-#ifndef COMMON_LZ4_DEFS_H
-#define COMMON_LZ4_DEFS_H
+#ifndef COMMON__LZ4__DEFS_H
+#define COMMON__LZ4__DEFS_H
#ifdef __XEN__
#include <asm/byteorder.h>
@@ -170,4 +170,4 @@ typedef struct _U64_S { u64 v; } U64_S;
d = e; \
} while (0)
-#endif /* COMMON_LZ4_DEFS_H */
+#endif /* COMMON__LZ4__DEFS_H */
@@ -1,5 +1,5 @@
-#ifndef _LIB_UBSAN_H
-#define _LIB_UBSAN_H
+#ifndef COMMON__UBSAN__UBSAN_H
+#define COMMON__UBSAN__UBSAN_H
#include <xen/linux-compat.h>
@@ -8,8 +8,8 @@
* You can do whatever you want with this file.
*/
-#ifndef XZ_LZMA2_H
-#define XZ_LZMA2_H
+#ifndef COMMON__XZ__LZMA2_H
+#define COMMON__XZ__LZMA2_H
/* Range coder constants */
#define RC_SHIFT_BITS 8
@@ -7,8 +7,8 @@
* You can do whatever you want with this file.
*/
-#ifndef XZ_PRIVATE_H
-#define XZ_PRIVATE_H
+#ifndef COMMON__XZ__PRIVATE_H
+#define COMMON__XZ__PRIVATE_H
#ifdef __XEN__
#include <xen/kernel.h>
@@ -7,8 +7,8 @@
* You can do whatever you want with this file.
*/
-#ifndef XZ_STREAM_H
-#define XZ_STREAM_H
+#ifndef COMMON__XZ__STREAM_H
+#define COMMON__XZ__STREAM_H
/*
* See the .xz file format specification at
@@ -38,8 +38,8 @@
* You can contact the author at :
* - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
*/
-#ifndef BITSTREAM_H_MODULE
-#define BITSTREAM_H_MODULE
+#ifndef COMMON__ZSTD__BITSTREAM_H
+#define COMMON__ZSTD__BITSTREAM_H
/*
* This API consists of small unitary functions, which must be inlined for best performance.
@@ -377,4 +377,4 @@ ZSTD_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t *DStream)
return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer) * 8));
}
-#endif /* BITSTREAM_H_MODULE */
+#endif /* COMMON__ZSTD__BITSTREAM_H */
@@ -16,8 +16,8 @@
/* Note : this module is expected to remain private, do not expose it */
-#ifndef ERROR_H_MODULE
-#define ERROR_H_MODULE
+#ifndef COMMON__ZSTD__ERROR_PRIVATE_H
+#define COMMON__ZSTD__ERROR_PRIVATE_H
/**
* enum ZSTD_ErrorCode - zstd error codes
@@ -102,4 +102,4 @@ static __attribute__((unused)) ZSTD_ErrorCode __init ZSTD_getErrorCode(
return (ZSTD_ErrorCode)(0 - functionResult);
}
-#endif /* ERROR_H_MODULE */
+#endif /* COMMON__ZSTD__ERROR_PRIVATE_H */
@@ -37,8 +37,8 @@
* You can contact the author at :
* - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
*/
-#ifndef FSE_H
-#define FSE_H
+#ifndef COMMON__ZSTD__FSE_H
+#define COMMON__ZSTD__FSE_H
/*-*****************************************
* FSE_PUBLIC_API : control library symbols visibility
@@ -567,4 +567,4 @@ ZSTD_STATIC unsigned FSE_endOfDState(const FSE_DState_t *DStatePtr) { return DSt
#define FSE_TABLESTEP(tableSize) ((tableSize >> 1) + (tableSize >> 3) + 3)
-#endif /* FSE_H */
+#endif /* COMMON__ZSTD__FSE_H */
@@ -37,8 +37,8 @@
* You can contact the author at :
* - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
*/
-#ifndef HUF_H_298734234
-#define HUF_H_298734234
+#ifndef COMMON__ZSTD__HUF_H
+#define COMMON__ZSTD__HUF_H
/* *** Tool functions *** */
#define HUF_BLOCKSIZE_MAX (128 * 1024) /**< maximum input size for a single block compressed with HUF_compress */
@@ -206,4 +206,4 @@ size_t HUF_decompress1X_usingDTable(void *dst, size_t maxDstSize, const void *cS
size_t HUF_decompress1X2_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable);
size_t HUF_decompress1X4_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable);
-#endif /* HUF_H_298734234 */
+#endif /* COMMON__ZSTD__HUF_H */
@@ -14,8 +14,8 @@
* ("BSD").
*/
-#ifndef MEM_H_MODULE
-#define MEM_H_MODULE
+#ifndef COMMON__ZSTD__MEM_H
+#define COMMON__ZSTD__MEM_H
/*-****************************************
* Dependencies
@@ -150,4 +150,4 @@ ZSTD_STATIC U32 ZSTD_readMINMATCH(const void *memPtr, U32 length)
}
}
-#endif /* MEM_H_MODULE */
+#endif /* COMMON__ZSTD__MEM_H */
@@ -14,8 +14,8 @@
* ("BSD").
*/
-#ifndef ZSTD_CCOMMON_H_MODULE
-#define ZSTD_CCOMMON_H_MODULE
+#ifndef COMMON__ZSTD__ZSTD_INTERNAL_H
+#define COMMON__ZSTD__ZSTD_INTERNAL_H
/*-*******************************************************
* Compiler specifics
@@ -373,4 +373,4 @@ size_t ZSTD_freeDDict(ZSTD_DDict *cdict);
size_t ZSTD_freeCStream(ZSTD_CStream *zcs);
size_t ZSTD_freeDStream(ZSTD_DStream *zds);
-#endif /* ZSTD_CCOMMON_H_MODULE */
+#endif /* COMMON__ZSTD__ZSTD_INTERNAL_H */
@@ -8,8 +8,8 @@
* for more details.
*/
-#ifndef _XEN_FONT_H
-#define _XEN_FONT_H
+#ifndef DRIVERS__VIDEO__FONT_H
+#define DRIVERS__VIDEO__FONT_H
struct font_desc {
const char *name;
@@ -19,4 +19,4 @@ struct font_desc {
extern const struct font_desc font_vga_8x8, font_vga_8x14, font_vga_8x16;
-#endif /* _XEN_FONT_H */
+#endif /* DRIVERS__VIDEO__FONT_H */
@@ -17,8 +17,8 @@
* GNU General Public License for more details.
*/
-#ifndef _XEN_LFB_H
-#define _XEN_LFB_H
+#ifndef DRIVERS__VIDEO__LFB_H
+#define DRIVERS__VIDEO__LFB_H
#include <xen/init.h>
@@ -25,8 +25,8 @@
* Copyright (c) 2013 Citrix Systems
*/
-#ifndef _XEN_MODLINES_H
-#define _XEN_MODLINES_H
+#ifndef DRIVERS__VIDEO__MODELINES_H
+#define DRIVERS__VIDEO__MODELINES_H
struct modeline {
const char* mode; /* in the form 1280x1024@60 */
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_ALTP2M_H
-#define __ASM_GENERIC_ALTP2M_H
+#ifndef ASM_GENERIC__ALTP2M_H
+#define ASM_GENERIC__ALTP2M_H
#include <xen/bug.h>
@@ -22,7 +22,7 @@ static inline unsigned int altp2m_vcpu_idx(const struct vcpu *v)
return 0;
}
-#endif /* __ASM_GENERIC_ALTP2M_H */
+#endif /* ASM_GENERIC__ALTP2M_H */
/*
* Local variables:
@@ -4,8 +4,8 @@
* forward inline declaration that can be synthesized from other atomic
* functions or being created from scratch.
*/
-#ifndef _ASM_GENERIC_ATOMIC_OPS_H_
-#define _ASM_GENERIC_ATOMIC_OPS_H_
+#ifndef ASM_GENERIC__ATOMIC_OPS_H
+#define ASM_GENERIC__ATOMIC_OPS_H
#include <xen/atomic.h>
#include <xen/lib.h>
@@ -94,4 +94,4 @@ static inline int atomic_add_negative(int i, atomic_t *v)
}
#endif
-#endif /* _ASM_GENERIC_ATOMIC_OPS_H_ */
+#endif /* ASM_GENERIC__ATOMIC_OPS_H */
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_DEVICE_H__
-#define __ASM_GENERIC_DEVICE_H__
+#ifndef ASM_GENERIC__DEVICE_H
+#define ASM_GENERIC__DEVICE_H
#include <xen/stdbool.h>
@@ -127,7 +127,7 @@ __section(".adev.info") = { \
#endif /* CONFIG_ACPI */
-#endif /* __ASM_GENERIC_DEVICE_H__ */
+#endif /* ASM_GENERIC__DEVICE_H */
/*
* Local variables:
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_DIV64
-#define __ASM_GENERIC_DIV64
+#ifndef ASM_GENERIC__DIV64_H
+#define ASM_GENERIC__DIV64_H
#include <xen/types.h>
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_HARDIRQ_H
-#define __ASM_GENERIC_HARDIRQ_H
+#ifndef ASM_GENERIC__HARDIRQ_H
+#define ASM_GENERIC__HARDIRQ_H
#include <xen/cache.h>
#include <xen/smp.h>
@@ -17,7 +17,7 @@ typedef struct {
#define irq_enter() (local_irq_count(smp_processor_id())++)
#define irq_exit() (local_irq_count(smp_processor_id())--)
-#endif /* __ASM_GENERIC_HARDIRQ_H */
+#endif /* ASM_GENERIC__HARDIRQ_H */
/*
* Local variables:
@@ -1,12 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __XEN_HYPERCALL_H__
+#ifndef XEN__HYPERCALL_H
#error "asm/hypercall.h should not be included directly - include xen/hypercall.h instead"
#endif
-#ifndef __ASM_GENERIC_HYPERCALL_H__
-#define __ASM_GENERIC_HYPERCALL_H__
+#ifndef ASM_GENERIC__HYPERCALL_H
+#define ASM_GENERIC__HYPERCALL_H
-#endif /* __ASM_GENERIC_HYPERCALL_H__ */
+#endif /* ASM_GENERIC__HYPERCALL_H */
/*
* Local variables:
@@ -1,11 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_IOCAP_H__
-#define __ASM_GENERIC_IOCAP_H__
+#ifndef ASM_GENERIC__IOCAP_H
+#define ASM_GENERIC__IOCAP_H
#define cache_flush_permitted(d) \
(!rangeset_is_empty((d)->iomem_caps))
-#endif /* __ASM_GENERIC_IOCAP_H__ */
+#endif /* ASM_GENERIC__IOCAP_H */
/*
* Local variables:
@@ -1,13 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_PAGING_H__
-#define __ASM_GENERIC_PAGING_H__
+#ifndef ASM_GENERIC__PAGING_H
+#define ASM_GENERIC__PAGING_H
#include <xen/stdbool.h>
#define paging_mode_translate(d) ((void)(d), true)
#define paging_mode_external(d) ((void)(d), true)
-#endif /* __ASM_GENERIC_PAGING_H__ */
+#endif /* ASM_GENERIC__PAGING_H */
/*
* Local variables:
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_PERCPU_H__
-#define __ASM_GENERIC_PERCPU_H__
+#ifndef ASM_GENERIC__PERCPU_H
+#define ASM_GENERIC__PERCPU_H
#ifndef __ASSEMBLY__
@@ -25,7 +25,7 @@ void percpu_init_areas(void);
#endif
-#endif /* __ASM_GENERIC_PERCPU_H__ */
+#endif /* ASM_GENERIC__PERCPU_H */
/*
* Local variables:
@@ -1,13 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_RANDOM_H__
-#define __ASM_GENERIC_RANDOM_H__
+#ifndef ASM_GENERIC__RANDOM_H
+#define ASM_GENERIC__RANDOM_H
static inline unsigned int arch_get_random(void)
{
return 0;
}
-#endif /* __ASM_GENERIC_RANDOM_H__ */
+#endif /* ASM_GENERIC__RANDOM_H */
/*
* Local variables:
@@ -1,12 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __ASM_GENERIC_SOFTIRQ_H__
-#define __ASM_GENERIC_SOFTIRQ_H__
+#ifndef ASM_GENERIC__SOFTIRQ_H
+#define ASM_GENERIC__SOFTIRQ_H
#define NR_ARCH_SOFTIRQS 0
#define arch_skip_send_event_check(cpu) 0
-#endif /* __ASM_GENERIC_SOFTIRQ_H__ */
+#endif /* ASM_GENERIC__SOFTIRQ_H */
/*
* Local variables:
* mode: C
@@ -25,8 +25,8 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __RIJNDAEL_H
-#define __RIJNDAEL_H
+#ifndef CRYPTO__RIJNDAEL_H
+#define CRYPTO__RIJNDAEL_H
#define AES_MAXKEYBITS (256)
#define AES_MAXKEYBYTES (AES_MAXKEYBITS/8)
@@ -55,4 +55,4 @@ int rijndaelKeySetupDec(unsigned int [], const unsigned char [], int);
void rijndaelEncrypt(const unsigned int [], int, const unsigned char [16],
unsigned char [16]);
-#endif /* __RIJNDAEL_H */
+#endif /* CRYPTO__RIJNDAEL_H */
@@ -1,5 +1,5 @@
-#ifndef HEADER_VMAC_H
-#define HEADER_VMAC_H
+#ifndef CRYPTO__VMAC_H
+#define CRYPTO__VMAC_H
/* --------------------------------------------------------------------------
* VMAC and VHASH Implementation by Ted Krovetz (tdk@acm.org) and Wei Dai.
@@ -19,8 +19,8 @@
* GNU General Public License for more details.
*/
-#ifndef __XEN_8250_UART_H__
-#define __XEN_8250_UART_H__
+#ifndef XEN__8250_UART_H
+#define XEN__8250_UART_H
/* Register offsets */
#define UART_RBR 0x00 /* receive buffer */
@@ -129,7 +129,7 @@
#define RESUME_DELAY MILLISECS(10)
#define RESUME_RETRIES 100
-#endif /* __XEN_8250_UART_H__ */
+#endif /* XEN__8250_UART_H */
/*
* Local variables:
@@ -21,8 +21,8 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
-#ifndef _LINUX_ACPI_H
-#define _LINUX_ACPI_H
+#ifndef XEN__ACPI_H
+#define XEN__ACPI_H
#ifndef _LINUX
#define _LINUX
@@ -204,4 +204,4 @@ static inline void acpi_dmar_reinstate(void) {}
#endif /* __ASSEMBLY__ */
-#endif /*_LINUX_ACPI_H*/
+#endif /*XEN__ACPI_H*/
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef XEN_ALTERNATIVE_CALL
-#define XEN_ALTERNATIVE_CALL
+#ifndef XEN__ALTERNATIVE_CALL_H
+#define XEN__ALTERNATIVE_CALL_H
/*
* Some subsystems in Xen may have multiple implementations, which can be
@@ -65,4 +65,4 @@
#define __alt_call_maybe_initdata __ro_after_init
#endif /* !CONFIG_ALTERNATIVE_CALL */
-#endif /* XEN_ALTERNATIVE_CALL */
+#endif /* XEN__ALTERNATIVE_CALL_H */
@@ -19,8 +19,8 @@
* this program; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __XEN_ATOMIC_H__
-#define __XEN_ATOMIC_H__
+#ifndef XEN__ATOMIC_H
+#define XEN__ATOMIC_H
typedef struct { int counter; } atomic_t;
@@ -204,4 +204,4 @@ static inline int atomic_add_negative(int i, atomic_t *v);
*/
static inline int atomic_add_unless(atomic_t *v, int a, int u);
-#endif /* __XEN_ATOMIC_H__ */
+#endif /* XEN__ATOMIC_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_BITMAP_H
-#define __XEN_BITMAP_H
+#ifndef XEN__BITMAP_H
+#define XEN__BITMAP_H
#ifndef __ASSEMBLY__
@@ -292,4 +292,4 @@ int bitmap_to_xenctl_bitmap(struct xenctl_bitmap *xenctl_bitmap,
#endif /* __ASSEMBLY__ */
-#endif /* __XEN_BITMAP_H */
+#endif /* XEN__BITMAP_H */
@@ -1,5 +1,5 @@
-#ifndef XEN_BITOPS_H
-#define XEN_BITOPS_H
+#ifndef XEN__BITOPS_H
+#define XEN__BITOPS_H
#include <xen/compiler.h>
#include <xen/types.h>
@@ -438,4 +438,4 @@ static inline __u32 ror32(__u32 word, unsigned int shift)
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
-#endif /* XEN_BITOPS_H */
+#endif /* XEN__BITOPS_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_BUG_H__
-#define __XEN_BUG_H__
+#ifndef XEN__BUG_H
+#define XEN__BUG_H
#define BUGFRAME_run_fn 0
#define BUGFRAME_warn 1
@@ -157,7 +157,7 @@ int do_bug_frame(const struct cpu_user_regs *regs, unsigned long pc);
#endif /* !__ASSEMBLY__ */
-#endif /* __XEN_BUG_H__ */
+#endif /* XEN__BUG_H */
/*
* Local variables:
* mode: C
@@ -1,5 +1,5 @@
-#ifndef __XEN_BYTEORDER_BIG_ENDIAN_H__
-#define __XEN_BYTEORDER_BIG_ENDIAN_H__
+#ifndef XEN__BYTEORDER__BIG_ENDIAN_H
+#define XEN__BYTEORDER__BIG_ENDIAN_H
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 4321
@@ -99,4 +99,4 @@ static inline __u16 __be16_to_cpup(const __be16 *p)
#include <xen/byteorder/generic.h>
-#endif /* __XEN_BYTEORDER_BIG_ENDIAN_H__ */
+#endif /* XEN__BYTEORDER__BIG_ENDIAN_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_BYTEORDER_GENERIC_H__
-#define __XEN_BYTEORDER_GENERIC_H__
+#ifndef XEN__BYTEORDER__GENERIC_H
+#define XEN__BYTEORDER__GENERIC_H
/*
* Generic Byte-reordering support
@@ -65,4 +65,4 @@
#define cpu_to_be16s __cpu_to_be16s
#define be16_to_cpus __be16_to_cpus
-#endif /* __XEN_BYTEORDER_GENERIC_H__ */
+#endif /* XEN__BYTEORDER__GENERIC_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_BYTEORDER_LITTLE_ENDIAN_H__
-#define __XEN_BYTEORDER_LITTLE_ENDIAN_H__
+#ifndef XEN__BYTEORDER__LITTLE_ENDIAN_H
+#define XEN__BYTEORDER__LITTLE_ENDIAN_H
#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN 1234
@@ -99,4 +99,4 @@ static inline __u16 __be16_to_cpup(const __be16 *p)
#include <xen/byteorder/generic.h>
-#endif /* __XEN_BYTEORDER_LITTLE_ENDIAN_H__ */
+#endif /* XEN__BYTEORDER__LITTLE_ENDIAN_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_BYTEORDER_SWAB_H__
-#define __XEN_BYTEORDER_SWAB_H__
+#ifndef XEN__BYTEORDER__SWAB_H
+#define XEN__BYTEORDER__SWAB_H
/*
* Byte-swapping, independently from CPU endianness
@@ -180,4 +180,4 @@ static inline void __swab64s(__u64 *addr)
#define swab32s __swab32s
#define swab64s __swab64s
-#endif /* __XEN_BYTEORDER_SWAB_H__ */
+#endif /* XEN__BYTEORDER__SWAB_H */
@@ -1,5 +1,5 @@
-#ifndef __LINUX_CACHE_H
-#define __LINUX_CACHE_H
+#ifndef XEN__CACHE_H
+#define XEN__CACHE_H
#include <asm/cache.h>
@@ -15,4 +15,4 @@
#define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
#endif
-#endif /* __LINUX_CACHE_H */
+#endif /* XEN__CACHE_H */
@@ -2,8 +2,8 @@
* compat.h
*/
-#ifndef __XEN_COMPAT_H__
-#define __XEN_COMPAT_H__
+#ifndef XEN__COMPAT_H
+#define XEN__COMPAT_H
#include <xen/types.h>
#ifdef CONFIG_HAS_COMPAT
@@ -243,4 +243,4 @@ void xlat_vcpu_runstate_info(struct vcpu_runstate_info *native);
#endif
-#endif /* __XEN_COMPAT_H__ */
+#endif /* XEN__COMPAT_H */
@@ -1,5 +1,5 @@
-#ifndef __LINUX_COMPILER_H
-#define __LINUX_COMPILER_H
+#ifndef XEN__COMPILER_H
+#define XEN__COMPILER_H
#if !defined(__GNUC__) || (__GNUC__ < 4)
#error Sorry, your compiler is too old/not recognized.
@@ -184,4 +184,4 @@
# define CLANG_DISABLE_WARN_GCC_COMPAT_END
#endif
-#endif /* __LINUX_COMPILER_H */
+#endif /* XEN__COMPILER_H */
@@ -4,8 +4,8 @@
* A Linux-style configuration list.
*/
-#ifndef __XEN_CONFIG_H__
-#define __XEN_CONFIG_H__
+#ifndef XEN__CONFIG_H
+#define XEN__CONFIG_H
#ifdef CPPCHECK
#include <generated/compiler-def.h>
@@ -98,4 +98,4 @@
#define ZERO_BLOCK_PTR ((void *)-1L)
#endif
-#endif /* __XEN_CONFIG_H__ */
+#endif /* XEN__CONFIG_H */
@@ -4,8 +4,8 @@
* Xen header file concerning console access.
*/
-#ifndef __CONSOLE_H__
-#define __CONSOLE_H__
+#ifndef XEN__CONSOLE_H
+#define XEN__CONSOLE_H
#include <xen/inttypes.h>
#include <public/xen.h>
@@ -50,4 +50,4 @@ void console_serial_puts(const char *s, size_t nr);
extern int8_t opt_console_xen;
-#endif /* __CONSOLE_H__ */
+#endif /* XEN__CONSOLE_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_CONSOLED_H__
-#define __XEN_CONSOLED_H__
+#ifndef XEN__CONSOLED_H
+#define XEN__CONSOLED_H
#include <public/io/console.h>
@@ -8,7 +8,7 @@ struct xencons_interface *consoled_get_ring_addr(void);
void consoled_guest_rx(void);
void consoled_guest_tx(char c);
-#endif /* __XEN_CONSOLED_H__ */
+#endif /* XEN__CONSOLED_H */
/*
* Local variables:
* mode: C
@@ -1,7 +1,7 @@
/* const.h: Macros for dealing with constants. */
-#ifndef __XEN_CONST_H__
-#define __XEN_CONST_H__
+#ifndef XEN__CONST_H
+#define XEN__CONST_H
/* Some constant macros are used in both assembler and
* C code. Therefore we cannot annotate them always with
@@ -23,4 +23,4 @@
#define BIT(pos, sfx) (_AC(1, sfx) << (pos))
-#endif /* __XEN_CONST_H__ */
+#endif /* XEN__CONST_H */
@@ -1,5 +1,5 @@
-#ifndef _XEN_COV_H
-#define _XEN_COV_H
+#ifndef XEN__COVERAGE_H
+#define XEN__COVERAGE_H
#ifdef CONFIG_COVERAGE
#include <public/sysctl.h>
@@ -18,8 +18,8 @@
* along with this program; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef LINUX_CPER_H
-#define LINUX_CPER_H
+#ifndef XEN__CPER_H
+#define XEN__CPER_H
#include <xen/types.h>
#include <xen/string.h>
@@ -1,5 +1,5 @@
-#ifndef __XEN_CPU_H__
-#define __XEN_CPU_H__
+#ifndef XEN__CPU_H
+#define XEN__CPU_H
#include <xen/types.h>
#include <xen/spinlock.h>
@@ -83,4 +83,4 @@ int __cpu_up(unsigned int cpu);
void __cpu_disable(void);
void __cpu_die(unsigned int cpu);
-#endif /* __XEN_CPU_H__ */
+#endif /* XEN__CPU_H */
@@ -23,8 +23,8 @@
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
-#ifndef _XEN_CPUIDLE_H
-#define _XEN_CPUIDLE_H
+#ifndef XEN__CPUIDLE_H
+#define XEN__CPUIDLE_H
#include <xen/cpumask.h>
#include <xen/spinlock.h>
@@ -98,4 +98,4 @@ extern void cpuidle_wakeup_mwait(cpumask_t *mask);
extern void menu_get_trace_data(u32 *expected, u32 *pred);
-#endif /* _XEN_CPUIDLE_H */
+#endif /* XEN__CPUIDLE_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_CPUMASK_H
-#define __XEN_CPUMASK_H
+#ifndef XEN__CPUMASK_H
+#define XEN__CPUMASK_H
/*
* Cpumasks provide a bitmap suitable for representing the
@@ -466,4 +466,4 @@ int cpumask_to_xenctl_bitmap(struct xenctl_bitmap *xenctl_cpumap,
int xenctl_bitmap_to_cpumask(cpumask_var_t *cpumask,
const struct xenctl_bitmap *xenctl_cpumap);
-#endif /* __XEN_CPUMASK_H */
+#endif /* XEN__CPUMASK_H */
@@ -1,5 +1,5 @@
-#ifndef _LINUX_CTYPE_H
-#define _LINUX_CTYPE_H
+#ifndef XEN__CTYPE_H
+#define XEN__CTYPE_H
/*
* NOTE! This ctype does not handle EOF like the standard C
@@ -1,5 +1,5 @@
-#ifndef __XEN_GENERIC_H
-#define __XEN_GENERIC_H
+#ifndef XEN__DECOMPRESS_H
+#define XEN__DECOMPRESS_H
typedef int decompress_fn(unsigned char *inbuf, unsigned int len,
int (*fill)(void*, unsigned int),
@@ -1,5 +1,5 @@
-#ifndef _LINUX_DELAY_H
-#define _LINUX_DELAY_H
+#ifndef XEN__DELAY_H
+#define XEN__DELAY_H
/* Copyright (C) 1993 Linus Torvalds */
@@ -11,4 +11,4 @@ static inline void mdelay(unsigned long msec)
udelay(1000);
}
-#endif /* defined(_LINUX_DELAY_H) */
+#endif /* defined(XEN__DELAY_H) */
@@ -14,8 +14,8 @@
* this program; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __XEN_DM_H__
-#define __XEN_DM_H__
+#ifndef XEN__DM_H
+#define XEN__DM_H
#include <xen/types.h>
@@ -31,7 +31,7 @@ struct dmop_args {
int dm_op(const struct dmop_args *op_args);
-#endif /* __XEN_DM_H__ */
+#endif /* XEN__DM_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __DMI_H__
-#define __DMI_H__
+#ifndef XEN__DMI_H
+#define XEN__DMI_H
enum dmi_field {
DMI_NONE,
@@ -44,4 +44,4 @@ extern void dmi_efi_get_table(const void *smbios, const void *smbios3);
bool dmi_get_date(int field, int *yearp, int *monthp, int *dayp);
extern void dmi_end_boot(void);
-#endif /* __DMI_H__ */
+#endif /* XEN__DMI_H */
@@ -1,6 +1,6 @@
-#ifndef __XEN_DOMAIN_H__
-#define __XEN_DOMAIN_H__
+#ifndef XEN__DOMAIN_H
+#define XEN__DOMAIN_H
#include <xen/numa.h>
#include <xen/types.h>
@@ -171,4 +171,4 @@ extern bool vmtrace_available;
extern bool vpmu_is_available;
-#endif /* __XEN_DOMAIN_H__ */
+#endif /* XEN__DOMAIN_H */
@@ -6,8 +6,8 @@
* Copyright (c) 2003-2006, Keir Fraser <keir@xensource.com>
*/
-#ifndef __XEN_DOMAIN_PAGE_H__
-#define __XEN_DOMAIN_PAGE_H__
+#ifndef XEN__DOMAIN_PAGE_H
+#define XEN__DOMAIN_PAGE_H
#include <xen/mm.h>
@@ -77,4 +77,4 @@ static inline void unmap_domain_page_global(const void *va) {};
(p) = NULL; \
} while ( false )
-#endif /* __XEN_DOMAIN_PAGE_H__ */
+#endif /* XEN__DOMAIN_PAGE_H */
@@ -8,8 +8,8 @@
* Written by Vikram Garhwal <vikram.garhwal@amd.com>
*
*/
-#ifndef __XEN_DT_OVERLAY_H__
-#define __XEN_DT_OVERLAY_H__
+#ifndef XEN__DT_OVERLAY_H
+#define XEN__DT_OVERLAY_H
#include <xen/device_tree.h>
#include <xen/list.h>
@@ -58,7 +58,7 @@ static inline long dt_overlay_domctl(struct domain *d,
}
#endif
-#endif /* __XEN_DT_OVERLAY_H__ */
+#endif /* XEN__DT_OVERLAY_H */
/*
* Local variables:
@@ -1,8 +1,8 @@
/*
* printk() for use before the console is initialized
*/
-#ifndef __XEN_EARLY_PRINTK_H__
-#define __XEN_EARLY_PRINTK_H__
+#ifndef XEN__EARLY_PRINTK_H
+#define XEN__EARLY_PRINTK_H
#include <xen/types.h>
@@ -1,5 +1,5 @@
-#ifndef _EARLYCPIO_H
-#define _EARLYCPIO_H
+#ifndef XEN__EARLYCPIO_H
+#define XEN__EARLYCPIO_H
#define MAX_CPIO_FILE_NAME 18
@@ -12,4 +12,4 @@ struct cpio_data {
struct cpio_data find_cpio_data(const char *path, void *data, size_t len,
long *offset);
-#endif /* _EARLYCPIO_H */
+#endif /* XEN__EARLYCPIO_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_EFI_H__
-#define __XEN_EFI_H__
+#ifndef XEN__EFI_H
+#define XEN__EFI_H
#ifndef __ASSEMBLY__
#include <xen/types.h>
@@ -55,4 +55,4 @@ int efi_compat_runtime_call(struct compat_pf_efi_runtime_call *op);
#endif /* !__ASSEMBLY__ */
-#endif /* __XEN_EFI_H__ */
+#endif /* XEN__EFI_H */
@@ -24,8 +24,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __XEN_ELF_H__
-#define __XEN_ELF_H__
+#ifndef XEN__ELF_H
+#define XEN__ELF_H
#include <xen/elfstructs.h>
@@ -34,4 +34,4 @@
#define ELFNOTE_DESC(_n_) (ELFNOTE_NAME(_n_) + ELFNOTE_ALIGN((_n_)->namesz))
#define ELFNOTE_NEXT(_n_) ((Elf_Note *)(ELFNOTE_DESC(_n_) + ELFNOTE_ALIGN((_n_)->descsz)))
-#endif /* __XEN_ELF_H__ */
+#endif /* XEN__ELF_H */
@@ -6,8 +6,8 @@
*
*/
-#ifndef __ELFCOREC_H__
-#define __ELFCOREC_H__
+#ifndef XEN__ELFCORE_H
+#define XEN__ELFCORE_H
#include <xen/types.h>
#include <xen/elf.h>
@@ -71,7 +71,7 @@ typedef struct crash_xen_info {
#endif
} crash_xen_info_t;
-#endif /* __ELFCOREC_H__ */
+#endif /* XEN__ELFCORE_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __XEN_ELFSTRUCTS_H__
-#define __XEN_ELFSTRUCTS_H__
+#ifndef XEN__ELFSTRUCTS_H
+#define XEN__ELFSTRUCTS_H
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -620,4 +620,4 @@ typedef struct {
#define AuxInfo Aux64Info
#endif
-#endif /* __XEN_ELFSTRUCTS_H__ */
+#endif /* XEN__ELFSTRUCTS_H */
@@ -1,5 +1,5 @@
-#if !defined(__XEN_ERR_H__) && !defined(__ASSEMBLY__)
-#define __XEN_ERR_H__
+#if !defined(XEN__ERR_H) && !defined(__ASSEMBLY__)
+#define XEN__ERR_H
#include <xen/compiler.h>
#include <xen/errno.h>
@@ -41,4 +41,4 @@ static inline int __must_check PTR_RET(const void *ptr)
return IS_ERR(ptr) ? PTR_ERR(ptr) : 0;
}
-#endif /* __XEN_ERR_H__ */
+#endif /* XEN__ERR_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_ERRNO_H__
-#define __XEN_ERRNO_H__
+#ifndef XEN__ERRNO_H
+#define XEN__ERRNO_H
#ifndef __ASSEMBLY__
@@ -15,4 +15,4 @@ enum {
#endif /* __ASSEMBLY__ */
-#endif /* __XEN_ERRNO_H__ */
+#endif /* XEN__ERRNO_H */
@@ -6,8 +6,8 @@
* Copyright (c) 2002-2006, K A Fraser
*/
-#ifndef __XEN_EVENT_H__
-#define __XEN_EVENT_H__
+#ifndef XEN__EVENT_H
+#define XEN__EVENT_H
#include <xen/sched.h>
#include <xen/smp.h>
@@ -302,4 +302,4 @@ static inline int evtchn_port_poll(struct domain *d, evtchn_port_t port)
return rc;
}
-#endif /* __XEN_EVENT_H__ */
+#endif /* XEN__EVENT_H */
@@ -20,8 +20,8 @@
* along with this program; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __XEN_GRANT_TABLE_H__
-#define __XEN_GRANT_TABLE_H__
+#ifndef XEN__GRANT_TABLE_H
+#define XEN__GRANT_TABLE_H
#include <xen/mm-frame.h>
#include <xen/rwlock.h>
@@ -117,4 +117,4 @@ static inline int gnttab_acquire_resource(
#endif /* CONFIG_GRANT_TABLE */
-#endif /* __XEN_GRANT_TABLE_H__ */
+#endif /* XEN__GRANT_TABLE_H */
@@ -4,8 +4,8 @@
* Copyright (x) 2006, K A Fraser
*/
-#ifndef __XEN_GUEST_ACCESS_H__
-#define __XEN_GUEST_ACCESS_H__
+#ifndef XEN__GUEST_ACCESS_H
+#define XEN__GUEST_ACCESS_H
#include <asm/guest_access.h>
#include <xen/types.h>
@@ -186,7 +186,7 @@
char *safe_copy_string_from_guest(XEN_GUEST_HANDLE(char) u_buf,
size_t size, size_t max_size);
-#endif /* __XEN_GUEST_ACCESS_H__ */
+#endif /* XEN__GUEST_ACCESS_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __XEN_GUNZIP_H
-#define __XEN_GUNZIP_H
+#ifndef XEN__GUNZIP_H
+#define XEN__GUNZIP_H
int gzip_check(char *image, unsigned long image_len);
int perform_gunzip(char *output, char *image, unsigned long image_len);
@@ -2,8 +2,8 @@
* hypercall.h
*/
-#ifndef __XEN_HYPERCALL_H__
-#define __XEN_HYPERCALL_H__
+#ifndef XEN__HYPERCALL_H
+#define XEN__HYPERCALL_H
#include <xen/types.h>
#include <xen/time.h>
@@ -58,4 +58,4 @@ common_vcpu_op(int cmd,
void arch_get_xen_caps(xen_capabilities_info_t *info);
-#endif /* __XEN_HYPERCALL_H__ */
+#endif /* XEN__HYPERCALL_H */
@@ -1,5 +1,5 @@
-#ifndef _LINUX_INIT_H
-#define _LINUX_INIT_H
+#ifndef XEN__INIT_H
+#define XEN__INIT_H
/*
* Mark functions and data as being only used at initialization
@@ -82,4 +82,4 @@ void do_initcalls(void);
#define __hwdom_initdata __initdata
#endif
-#endif /* _LINUX_INIT_H */
+#endif /* XEN__INIT_H */
@@ -18,8 +18,8 @@
* ISO C99: 7.8 Format conversion of integer types <inttypes.h>
*/
-#ifndef _XEN_INTTYPES_H
-#define _XEN_INTTYPES_H 1
+#ifndef XEN__INTTYPES_H
+#define XEN__INTTYPES_H 1
#include <xen/types.h>
@@ -245,4 +245,4 @@
# define SCNuPTR __PRIPTR_PREFIX "u"
# define SCNxPTR __PRIPTR_PREFIX "x"
-#endif /* _XEN_INTTYPES_H */
+#endif /* XEN__INTTYPES_H */
@@ -4,8 +4,8 @@
* Per-domain I/O capabilities.
*/
-#ifndef __XEN_IOCAP_H__
-#define __XEN_IOCAP_H__
+#ifndef XEN__IOCAP_H
+#define XEN__IOCAP_H
#include <xen/sched.h>
#include <xen/rangeset.h>
@@ -66,4 +66,4 @@ static inline int iomem_deny_access(struct domain *d, unsigned long s,
? irq__ : 0; \
})
-#endif /* __XEN_IOCAP_H__ */
+#endif /* XEN__IOCAP_H */
@@ -16,8 +16,8 @@
* this program; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __XEN_IOREQ_H__
-#define __XEN_IOREQ_H__
+#ifndef XEN__IOREQ_H
+#define XEN__IOREQ_H
#include <xen/sched.h>
@@ -138,7 +138,7 @@ bool arch_ioreq_server_get_type_addr(const struct domain *d, const ioreq_t *p,
uint8_t *type, uint64_t *addr);
void arch_ioreq_domain_init(struct domain *d);
-#endif /* __XEN_IOREQ_H__ */
+#endif /* XEN__IOREQ_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __XEN_IRQ_H__
-#define __XEN_IRQ_H__
+#ifndef XEN__IRQ_H
+#define XEN__IRQ_H
#include <xen/cpumask.h>
#include <xen/rcupdate.h>
@@ -211,4 +211,4 @@ unsigned int arch_hwdom_irqs(const struct domain *d);
void arch_evtchn_bind_pirq(struct domain *d, int pirq);
#endif
-#endif /* __XEN_IRQ_H__ */
+#endif /* XEN__IRQ_H */
@@ -1,5 +1,5 @@
-#ifndef __irq_cpustat_h
-#define __irq_cpustat_h
+#ifndef XEN__IRQ_CPUSTAT_H
+#define XEN__IRQ_CPUSTAT_H
/*
* Contains default mappings for irq_cpustat_t, used by almost every
@@ -26,4 +26,4 @@ extern irq_cpustat_t irq_stat[];
#define local_irq_count(cpu) __IRQ_STAT((cpu), __local_irq_count)
#define mwait_wakeup(cpu) __IRQ_STAT((cpu), __mwait_wakeup)
-#endif /* __irq_cpustat_h */
+#endif /* XEN__IRQ_CPUSTAT_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_KCONFIG_H
-#define __XEN_KCONFIG_H
+#ifndef XEN__KCONFIG_H
+#define XEN__KCONFIG_H
#include <generated/autoconf.h>
@@ -46,4 +46,4 @@
#define STATIC_IF_NOT(option) static_if_not(option)
#endif
-#endif /* __XEN_KCONFIG_H */
+#endif /* XEN__KCONFIG_H */
@@ -1,5 +1,5 @@
-#ifndef _LINUX_KERNEL_H
-#define _LINUX_KERNEL_H
+#ifndef XEN__KERNEL_H
+#define XEN__KERNEL_H
/*
* 'kernel.h' contains some often-used function prototypes etc
@@ -100,5 +100,5 @@ struct vcpu;
void cf_check show_execution_state(const struct cpu_user_regs *regs);
void vcpu_show_execution_state(struct vcpu *v);
-#endif /* _LINUX_KERNEL_H */
+#endif /* XEN__KERNEL_H */
@@ -7,8 +7,8 @@
* nicer fashion than just editing the serial/keyboard drivers.
*/
-#ifndef __XEN_KEYHANDLER_H__
-#define __XEN_KEYHANDLER_H__
+#ifndef XEN__KEYHANDLER_H
+#define XEN__KEYHANDLER_H
#include <xen/types.h>
@@ -57,4 +57,4 @@ enum crash_reason {
void keyhandler_crash_action(enum crash_reason reason);
-#endif /* __XEN_KEYHANDLER_H__ */
+#endif /* XEN__KEYHANDLER_H */
@@ -1,5 +1,5 @@
-#ifndef __LIB_H__
-#define __LIB_H__
+#ifndef XEN__LIB_H
+#define XEN__LIB_H
#include <xen/macros.h>
@@ -202,4 +202,4 @@ void *bsearch(const void *key, const void *base, size_t num, size_t size,
#endif /* __ASSEMBLY__ */
-#endif /* __LIB_H__ */
+#endif /* XEN__LIB_H */
@@ -20,8 +20,8 @@
* DEALINGS IN THE SOFTWARE.
*/
-#ifndef __XEN_LIBELF_H__
-#define __XEN_LIBELF_H__
+#ifndef XEN__LIBELF_H
+#define XEN__LIBELF_H
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
#define XEN_ELF_LITTLE_ENDIAN
@@ -504,4 +504,4 @@ static inline void ELF_ADVANCE_DEST(struct elf_binary *elf, uint64_t amount)
* is in use or until elf_set_xdest(,0,0) is called. */
void elf_set_xdest(struct elf_binary *elf, void *addr, uint64_t size);
-#endif /* __XEN_LIBELF_H__ */
+#endif /* XEN__LIBELF_H */
@@ -1,5 +1,5 @@
-#ifndef __LINKAGE_H__
-#define __LINKAGE_H__
+#ifndef XEN__LINKAGE_H
+#define XEN__LINKAGE_H
#ifdef __ASSEMBLY__
@@ -64,4 +64,4 @@
#endif /* __ASSEMBLY__ */
-#endif /* __LINKAGE_H__ */
+#endif /* XEN__LINKAGE_H */
@@ -6,8 +6,8 @@
* files.
*/
-#ifndef __XEN_LINUX_COMPAT_H__
-#define __XEN_LINUX_COMPAT_H__
+#ifndef XEN__LINUX_COMPAT_H
+#define XEN__LINUX_COMPAT_H
#include <xen/types.h>
@@ -21,4 +21,4 @@ typedef paddr_t phys_addr_t;
#define __ffs(x) (ffsl(x) - 1UL)
-#endif /* __XEN_LINUX_COMPAT_H__ */
+#endif /* XEN__LINUX_COMPAT_H */
@@ -4,8 +4,8 @@
* Useful linked-list definitions taken from the Linux kernel (2.6.18).
*/
-#ifndef __XEN_LIST_H__
-#define __XEN_LIST_H__
+#ifndef XEN__LIST_H
+#define XEN__LIST_H
#include <xen/bug.h>
#include <asm/system.h>
@@ -979,4 +979,4 @@ static inline void hlist_add_after_rcu(struct hlist_node *prev,
({ tpos = hlist_entry(pos, typeof(*(tpos)), member); 1;}); \
(pos) = (pos)->next)
-#endif /* __XEN_LIST_H__ */
+#endif /* XEN__LIST_H */
@@ -1,5 +1,5 @@
-#ifndef _LINUX_LIST_SORT_H
-#define _LINUX_LIST_SORT_H
+#ifndef XEN__LIST_SORT_H
+#define XEN__LIST_SORT_H
#include <xen/types.h>
@@ -1,5 +1,5 @@
-#ifndef __LZ4_H__
-#define __LZ4_H__
+#ifndef XEN__LZ4_H
+#define XEN__LZ4_H
/*
* LZ4 Kernel Interface
@@ -1,5 +1,5 @@
-#ifndef __LZO_H__
-#define __LZO_H__
+#ifndef XEN__LZO_H
+#define XEN__LZO_H
/*
* LZO Public Kernel Interface
* A mini subset of the LZO real-time data compression library
@@ -1,5 +1,5 @@
-#ifndef __MACROS_H__
-#define __MACROS_H__
+#ifndef XEN__MACROS_H
+#define XEN__MACROS_H
#define ROUNDUP(x, a) (((x) + (a) - 1) & ~((a) - 1))
@@ -147,7 +147,7 @@
#endif /* __ASSEMBLY__ */
-#endif /* __MACROS_H__ */
+#endif /* XEN__MACROS_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __XEN_FRAME_NUM_H__
-#define __XEN_FRAME_NUM_H__
+#ifndef XEN__MM_FRAME_H
+#define XEN__MM_FRAME_H
#include <xen/kernel.h>
#include <xen/typesafe.h>
@@ -85,4 +85,4 @@ TYPE_SAFE(unsigned long, pfn);
#define pfn_x
#endif
-#endif /* __XEN_FRAME_NUM_H__ */
+#endif /* XEN__MM_FRAME_H */
@@ -58,8 +58,8 @@
* documented, meanings.
*/
-#ifndef __XEN_MM_H__
-#define __XEN_MM_H__
+#ifndef XEN__MM_H
+#define XEN__MM_H
#include <xen/bug.h>
#include <xen/compiler.h>
@@ -648,4 +648,4 @@ static inline void put_page_alloc_ref(struct page_info *page)
}
}
-#endif /* __XEN_MM_H__ */
+#endif /* XEN__MM_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_MSI_H_
-#define __XEN_MSI_H_
+#ifndef XEN__MSI_H
+#define XEN__MSI_H
#include <xen/pci.h>
@@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License
along with this program; If not, see <http://www.gnu.org/licenses/>. */
-#ifndef __MULTIBOOT_H__
-#define __MULTIBOOT_H__
+#ifndef XEN__MULTIBOOT_H
+#define XEN__MULTIBOOT_H
#include "const.h"
@@ -130,4 +130,4 @@ typedef struct memory_map memory_map_t;
#endif /* __ASSEMBLY__ */
-#endif /* __MULTIBOOT_H__ */
+#endif /* XEN__MULTIBOOT_H */
@@ -23,8 +23,8 @@
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifndef __MULTIBOOT2_H__
-#define __MULTIBOOT2_H__
+#ifndef XEN__MULTIBOOT2_H
+#define XEN__MULTIBOOT2_H
/* The magic field should contain this. */
#define MULTIBOOT2_HEADER_MAGIC 0xe85250d6
@@ -232,4 +232,4 @@ typedef struct {
} multiboot2_tag_module_t;
#endif /* __ASSEMBLY__ */
-#endif /* __MULTIBOOT2_H__ */
+#endif /* XEN__MULTIBOOT2_H */
@@ -2,8 +2,8 @@
* multicall.h
*/
-#ifndef __XEN_MULTICALL_H__
-#define __XEN_MULTICALL_H__
+#ifndef XEN__MULTICALL_H
+#define XEN__MULTICALL_H
#ifdef CONFIG_COMPAT
#include <compat/xen.h>
@@ -27,4 +27,4 @@ enum mc_disposition {
mc_preempt,
} arch_do_multicall_call(struct mc_state *mcs);
-#endif /* __XEN_MULTICALL_H__ */
+#endif /* XEN__MULTICALL_H */
@@ -1,5 +1,5 @@
-#ifndef __LINUX_NODEMASK_H
-#define __LINUX_NODEMASK_H
+#ifndef XEN__NODEMASK_H
+#define XEN__NODEMASK_H
/*
* Nodemasks provide a bitmap suitable for representing the
@@ -290,4 +290,4 @@ extern nodemask_t node_online_map;
#define for_each_online_node(node) for_each_node_mask((node), node_online_map)
-#endif /* __LINUX_NODEMASK_H */
+#endif /* XEN__NODEMASK_H */
@@ -4,8 +4,8 @@
/* Copyright(c) 2018 Intel Corporation. All rights reserved. */
/* Copyright(c) 2018 Citrix Systems R&D Ltd. All rights reserved. */
-#ifndef XEN_NOSPEC_H
-#define XEN_NOSPEC_H
+#ifndef XEN__NOSPEC_H
+#define XEN__NOSPEC_H
#include <xen/stdbool.h>
@@ -87,7 +87,7 @@ static always_inline bool lock_evaluate_nospec(bool condition)
#endif
}
-#endif /* XEN_NOSPEC_H */
+#endif /* XEN__NOSPEC_H */
/*
* Local variables:
@@ -7,8 +7,8 @@
* Original code from Linux kernel 2.6.27 (Alan Cox <Alan.Cox@linux.org>)
*/
-#ifndef __XEN_NOTIFIER_H__
-#define __XEN_NOTIFIER_H__
+#ifndef XEN__NOTIFIER_H
+#define XEN__NOTIFIER_H
#include <xen/types.h>
#include <xen/errno.h>
@@ -68,4 +68,4 @@ static inline int notifier_to_errno(int ret)
return (ret == NOTIFY_DONE) ? 0 : -(ret & ~NOTIFY_STOP_MASK);
}
-#endif /* __XEN_NOTIFIER_H__ */
+#endif /* XEN__NOTIFIER_H */
@@ -1,5 +1,5 @@
-#ifndef _XEN_NUMA_H
-#define _XEN_NUMA_H
+#ifndef XEN__NUMA_H
+#define XEN__NUMA_H
#include <xen/mm-frame.h>
@@ -135,4 +135,4 @@ static inline nodeid_t mfn_to_nid(mfn_t mfn)
#define page_to_nid(pg) mfn_to_nid(page_to_mfn(pg))
-#endif /* _XEN_NUMA_H */
+#endif /* XEN__NUMA_H */
@@ -1,5 +1,5 @@
-#ifndef _XEN_P2M_COMMON_H
-#define _XEN_P2M_COMMON_H
+#ifndef XEN__P2M_COMMON_H
+#define XEN__P2M_COMMON_H
#include <xen/mm-frame.h>
@@ -41,4 +41,4 @@ int __must_check check_get_page_from_gfn(struct domain *d, gfn_t gfn,
struct page_info **page_p);
-#endif /* _XEN_P2M_COMMON_H */
+#endif /* XEN__P2M_COMMON_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PAGE_DEFS_H__
-#define __XEN_PAGE_DEFS_H__
+#ifndef XEN__PAGE_DEFS_H
+#define XEN__PAGE_DEFS_H
/* Helpers for different page granularities. */
#define PAGE_SIZE_GRAN(gran) ((paddr_t)1 << PAGE_SHIFT_##gran)
@@ -32,4 +32,4 @@
#define PAGE_MASK_1G PAGE_MASK_GRAN(1G)
#define PAGE_ALIGN_1G(addr) PAGE_ALIGN_GRAN(1G, addr)
-#endif /* __XEN_PAGE_DEFS_H__ */
+#endif /* XEN__PAGE_DEFS_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PAGE_SIZE_H__
-#define __XEN_PAGE_SIZE_H__
+#ifndef XEN__PAGE_SIZE_H
+#define XEN__PAGE_SIZE_H
#include <xen/const.h>
#include <asm/page-bits.h>
@@ -1,7 +1,7 @@
-#ifndef __XEN_PAGING_H__
-#define __XEN_PAGING_H__
+#ifndef XEN__PAGING_H
+#define XEN__PAGING_H
#include <asm/paging.h>
#include <asm/p2m.h>
-#endif /* __XEN_PAGING_H__ */
+#endif /* XEN__PAGING_H */
@@ -1,5 +1,5 @@
-#ifndef _XEN_PARAM_H
-#define _XEN_PARAM_H
+#ifndef XEN__PARAM_H
+#define XEN__PARAM_H
#include <xen/bug.h>
#include <xen/hypfs.h>
@@ -196,4 +196,4 @@ static inline void no_config_param(const char *cfg, const char *param,
cfg, param, len, s);
}
-#endif /* _XEN_PARAM_H */
+#endif /* XEN__PARAM_H */
@@ -4,8 +4,8 @@
* PCI access functions.
*/
-#ifndef __XEN_PCI_H__
-#define __XEN_PCI_H__
+#ifndef XEN__PCI_H
+#define XEN__PCI_H
#include <xen/types.h>
#include <xen/list.h>
@@ -261,4 +261,4 @@ static inline int arch_pci_clean_pirqs(struct domain *d)
}
#endif /* CONFIG_HVM */
-#endif /* __XEN_PCI_H__ */
+#endif /* XEN__PCI_H */
@@ -19,8 +19,8 @@
* The Hypertransport I/O Link Specification
*/
-#ifndef LINUX_PCI_REGS_H
-#define LINUX_PCI_REGS_H
+#ifndef XEN__PCI_REGS_H
+#define XEN__PCI_REGS_H
/*
* Conventional PCI and PCI-X Mode 1 devices have 256 bytes of
@@ -616,4 +616,4 @@
#define PCI_SRIOV_VFM_MO 0x2 /* Active.MigrateOut */
#define PCI_SRIOV_VFM_AV 0x3 /* Active.Available */
-#endif /* LINUX_PCI_REGS_H */
+#endif /* XEN__PCI_REGS_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PDX_H__
-#define __XEN_PDX_H__
+#ifndef XEN__PDX_H
+#define XEN__PDX_H
/*
* PDX (Page inDeX)
@@ -239,7 +239,7 @@ static inline void pfn_pdx_hole_setup(unsigned long mask)
}
#endif /* CONFIG_PDX_COMPRESSION */
-#endif /* __XEN_PDX_H__ */
+#endif /* XEN__PDX_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __XEN_PERCPU_H__
-#define __XEN_PERCPU_H__
+#ifndef XEN__PERCPU_H
+#define XEN__PERCPU_H
#define DECLARE_PER_CPU(type, name) \
extern __typeof__(type) per_cpu__ ## name
@@ -33,4 +33,4 @@
#define get_cpu_var(var) this_cpu(var)
#define put_cpu_var(var)
-#endif /* __XEN_PERCPU_H__ */
+#endif /* XEN__PERCPU_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PERFC_H__
-#define __XEN_PERFC_H__
+#ifndef XEN__PERFC_H
+#define XEN__PERFC_H
#ifdef CONFIG_PERF_COUNTERS
@@ -116,4 +116,4 @@ extern void cf_check perfc_reset(unsigned char key);
#endif /* CONFIG_PERF_COUNTERS */
-#endif /* __XEN_PERFC_H__ */
+#endif /* XEN__PERFC_H */
@@ -1,6 +1,6 @@
/* This file is legitimately included multiple times. */
-/*#ifndef __XEN_PERFC_DEFN_H__*/
-/*#define __XEN_PERFC_DEFN_H__*/
+/*#ifndef XEN__PERFC_DEFN_H*/
+/*#define XEN__PERFC_DEFN_H*/
#include <asm/perfc_defn.h>
@@ -83,4 +83,4 @@ PERFCOUNTER(tickled_cpu_overridden, "csched2: tickled_cpu_overridden")
PERFCOUNTER(need_flush_tlb_flush, "PG_need_flush tlb flushes")
-/*#endif*/ /* __XEN_PERFC_DEFN_H__ */
+/*#endif*/ /* XEN__PERFC_DEFN_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PFN_H__
-#define __XEN_PFN_H__
+#ifndef XEN__PFN_H
+#define XEN__PFN_H
#include <xen/page-size.h>
@@ -9,4 +9,4 @@
#define round_pgup(p) (((p) + (PAGE_SIZE - 1)) & PAGE_MASK)
#define round_pgdown(p) ((p) & PAGE_MASK)
-#endif /* __XEN_PFN_H__ */
+#endif /* XEN__PFN_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PMAP_H__
-#define __XEN_PMAP_H__
+#ifndef XEN__PMAP_H
+#define XEN__PMAP_H
/* Large enough for mapping 5 levels of page tables with some headroom */
#define NUM_FIX_PMAP 8
@@ -13,4 +13,4 @@ void pmap_unmap(const void *p);
#endif /* __ASSEMBLY__ */
-#endif /* __XEN_PMAP_H__ */
+#endif /* XEN__PMAP_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_PMSTAT_H_
-#define __XEN_PMSTAT_H_
+#ifndef XEN__PMSTAT_H
+#define XEN__PMSTAT_H
#include <xen/types.h>
#include <public/platform.h> /* for struct xen_processor_power */
@@ -14,4 +14,4 @@ int pmstat_reset_cx_stat(unsigned int cpu);
int do_get_pm_info(struct xen_sysctl_get_pmstat *op);
int do_pm_op(struct xen_sysctl_pm_op *op);
-#endif /* __XEN_PMSTAT_H_ */
+#endif /* XEN__PMSTAT_H */
@@ -6,8 +6,8 @@
* Copyright (c) 2010, Keir Fraser <keir@xen.org>
*/
-#ifndef __XEN_PREEMPT_H__
-#define __XEN_PREEMPT_H__
+#ifndef XEN__PREEMPT_H
+#define XEN__PREEMPT_H
#include <xen/types.h>
#include <xen/percpu.h>
@@ -34,4 +34,4 @@ void ASSERT_NOT_IN_ATOMIC(void);
#define ASSERT_NOT_IN_ATOMIC() ((void)0)
#endif
-#endif /* __XEN_PREEMPT_H__ */
+#endif /* XEN__PREEMPT_H */
@@ -7,8 +7,8 @@
*
*/
-#ifndef _LINUX_PREFETCH_H
-#define _LINUX_PREFETCH_H
+#ifndef XEN__PREFETCH_H
+#define XEN__PREFETCH_H
#include <asm/processor.h>
#include <asm/cache.h>
@@ -1,5 +1,5 @@
-#ifndef __XEN_PV_CONSOLE_H__
-#define __XEN_PV_CONSOLE_H__
+#ifndef XEN__PV_CONSOLE_H
+#define XEN__PV_CONSOLE_H
#include <xen/serial.h>
@@ -21,7 +21,7 @@ static inline void pv_console_puts(const char *buf, size_t nr) { }
static inline size_t pv_console_rx(void) { return 0; }
#endif /* !CONFIG_XEN_GUEST */
-#endif /* __XEN_PV_CONSOLE_H__ */
+#endif /* XEN__PV_CONSOLE_H */
/*
* Local variables:
* mode: C
@@ -16,8 +16,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _XEN_RADIX_TREE_H
-#define _XEN_RADIX_TREE_H
+#ifndef XEN__RADIX_TREE_H
+#define XEN__RADIX_TREE_H
#include <xen/types.h>
#include <xen/lib.h>
@@ -224,4 +224,4 @@ unsigned long radix_tree_next_hole(struct radix_tree_root *root,
unsigned long radix_tree_prev_hole(struct radix_tree_root *root,
unsigned long index, unsigned long max_scan);
-#endif /* _XEN_RADIX_TREE_H */
+#endif /* XEN__RADIX_TREE_H */
@@ -1,9 +1,9 @@
-#ifndef __XEN_RANDOM_H__
-#define __XEN_RANDOM_H__
+#ifndef XEN__RANDOM_H
+#define XEN__RANDOM_H
unsigned int get_random(void);
/* The value keeps unchange once initialized for each booting */
extern unsigned int boot_random;
-#endif /* __XEN_RANDOM_H__ */
+#endif /* XEN__RANDOM_H */
@@ -7,8 +7,8 @@
* Copyright (c) 2005, K A Fraser
*/
-#ifndef __XEN_RANGESET_H__
-#define __XEN_RANGESET_H__
+#ifndef XEN__RANGESET_H
+#define XEN__RANGESET_H
#include <xen/types.h>
@@ -100,7 +100,7 @@ void rangeset_swap(struct rangeset *a, struct rangeset *b);
void rangeset_domain_printk(
struct domain *d);
-#endif /* __XEN_RANGESET_H__ */
+#endif /* XEN__RANGESET_H */
/*
* Local variables:
@@ -90,8 +90,8 @@ static inline struct page * rb_insert_page_cache(struct inode * inode,
-----------------------------------------------------------------------
*/
-#ifndef __RBTREE_H__
-#define __RBTREE_H__
+#ifndef XEN__RBTREE_H
+#define XEN__RBTREE_H
struct rb_node {
unsigned long __rb_parent_color;
@@ -139,4 +139,4 @@ static inline void rb_link_node(struct rb_node * node, struct rb_node * parent,
*rb_link = node;
}
-#endif /* __RBTREE_H__ */
+#endif /* XEN__RBTREE_H */
@@ -28,8 +28,8 @@
* http://lse.sourceforge.net/locking/rcupdate.html
*/
-#ifndef __XEN_RCUPDATE_H
-#define __XEN_RCUPDATE_H
+#ifndef XEN__RCUPDATE_H
+#define XEN__RCUPDATE_H
#include <xen/compiler.h>
#include <xen/spinlock.h>
@@ -179,4 +179,4 @@ void rcu_barrier(void);
void rcu_idle_enter(unsigned int cpu);
void rcu_idle_exit(unsigned int cpu);
-#endif /* __XEN_RCUPDATE_H */
+#endif /* XEN__RCUPDATE_H */
@@ -1,5 +1,5 @@
-#ifndef __RWLOCK_H__
-#define __RWLOCK_H__
+#ifndef XEN__RWLOCK_H
+#define XEN__RWLOCK_H
#include <xen/percpu.h>
#include <xen/preempt.h>
@@ -455,4 +455,4 @@ static inline void _percpu_write_unlock(percpu_rwlock_t **per_cpudata,
#define DECLARE_PERCPU_RWLOCK_GLOBAL(name) DECLARE_PER_CPU(percpu_rwlock_t *, \
name)
-#endif /* __RWLOCK_H__ */
+#endif /* XEN__RWLOCK_H */
@@ -1,6 +1,6 @@
-#ifndef __SCHED_H__
-#define __SCHED_H__
+#ifndef XEN__SCHED_H
+#define XEN__SCHED_H
#include <xen/types.h>
#include <xen/spinlock.h>
@@ -1276,7 +1276,7 @@ btcpupools_get_domain_pool_id(const struct dt_device_node *node)
#endif
-#endif /* __SCHED_H__ */
+#endif /* XEN__SCHED_H */
/*
* Local variables:
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __XEN_SECTIONS_H__
-#define __XEN_SECTIONS_H__
+#ifndef XEN__SECTIONS_H
+#define XEN__SECTIONS_H
#include <xen/compiler.h>
@@ -27,7 +27,7 @@ extern char __init_begin[], __init_end[];
*/
#define __ro_after_init __section(".data.ro_after_init")
-#endif /* !__XEN_SECTIONS_H__ */
+#endif /* !XEN__SECTIONS_H */
/*
* Local variables:
* mode: C
@@ -4,8 +4,8 @@
* Helpers for Xen self-tests of basic logic, including confirming that
* examples which should be calculated by the compiler are.
*/
-#ifndef XEN_SELF_TESTS_H
-#define XEN_SELF_TESTS_H
+#ifndef XEN__SELF_TESTS_H
+#define XEN__SELF_TESTS_H
#include <xen/lib.h>
@@ -59,4 +59,4 @@
RUNTIME_CHECK(fn, val, res); \
} while ( 0 )
-#endif /* XEN_SELF_TESTS_H */
+#endif /* XEN__SELF_TESTS_H */
@@ -6,8 +6,8 @@
* Copyright (c) 2003-2008, K A Fraser
*/
-#ifndef __XEN_SERIAL_H__
-#define __XEN_SERIAL_H__
+#ifndef XEN__SERIAL_H
+#define XEN__SERIAL_H
#include <xen/init.h>
#include <xen/spinlock.h>
@@ -174,7 +174,7 @@ int dbgp_op(const struct physdev_dbgp_op *op);
/* Baud rate was pre-configured before invoking the UART driver. */
#define BAUD_AUTO (-1)
-#endif /* __XEN_SERIAL_H__ */
+#endif /* XEN__SERIAL_H */
/*
* Local variables:
@@ -1,5 +1,5 @@
-#ifndef __XEN_SHARED_H__
-#define __XEN_SHARED_H__
+#ifndef XEN__SHARED_H
+#define XEN__SHARED_H
#ifdef CONFIG_COMPAT
@@ -47,4 +47,4 @@ extern vcpu_info_t dummy_vcpu_info;
#define vcpu_info(v, field) \
__vcpu_info(v, (vcpu_info_t *)(v)->vcpu_info_area.map, field)
-#endif /* __XEN_SHARED_H__ */
+#endif /* XEN__SHARED_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_SHUTDOWN_H__
-#define __XEN_SHUTDOWN_H__
+#ifndef XEN__SHUTDOWN_H
+#define XEN__SHUTDOWN_H
#include <xen/compiler.h>
#include <xen/types.h>
@@ -12,4 +12,4 @@ void noreturn hwdom_shutdown(unsigned char reason);
void noreturn machine_restart(unsigned int delay_millisecs);
void noreturn machine_halt(void);
-#endif /* __XEN_SHUTDOWN_H__ */
+#endif /* XEN__SHUTDOWN_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_SIZES_H__
-#define __XEN_SIZES_H__
+#ifndef XEN__SIZES_H
+#define XEN__SIZES_H
/*
* Taken from kernel code include/linux/size.h
@@ -45,4 +45,4 @@
#define SZ_1G 0x40000000
#define SZ_2G 0x80000000
-#endif /* __XEN_SIZES_H__ */
+#endif /* XEN__SIZES_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_SMP_H__
-#define __XEN_SMP_H__
+#ifndef XEN__SMP_H
+#define XEN__SMP_H
#include <asm/smp.h>
@@ -76,4 +76,4 @@ extern void *stack_base[NR_CPUS];
void initialize_cpu_data(unsigned int cpu);
int setup_cpu_root_pgt(unsigned int cpu);
-#endif /* __XEN_SMP_H__ */
+#endif /* XEN__SMP_H */
@@ -1,5 +1,5 @@
-#if !defined(__XEN_SOFTIRQ_H__) && !defined(__ASSEMBLY__)
-#define __XEN_SOFTIRQ_H__
+#if !defined(XEN__SOFTIRQ_H) && !defined(__ASSEMBLY__)
+#define XEN__SOFTIRQ_H
/* Low-latency softirqs come first in the following list. */
enum {
@@ -40,4 +40,4 @@ void cpu_raise_softirq_batch_finish(void);
*/
void process_pending_softirqs(void);
-#endif /* __XEN_SOFTIRQ_H__ */
+#endif /* XEN__SOFTIRQ_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_SORT_H__
-#define __XEN_SORT_H__
+#ifndef XEN__SORT_H
+#define XEN__SORT_H
#include <xen/types.h>
@@ -60,4 +60,4 @@ void sort(void *base, size_t num, size_t size,
}
}
-#endif /* __XEN_SORT_H__ */
+#endif /* XEN__SORT_H */
@@ -1,5 +1,5 @@
-#ifndef __SPINLOCK_H__
-#define __SPINLOCK_H__
+#ifndef XEN__SPINLOCK_H
+#define XEN__SPINLOCK_H
#include <xen/nospec.h>
#include <xen/time.h>
@@ -358,4 +358,4 @@ static always_inline void nrspin_lock_irq(rspinlock_t *l)
#define nrspin_unlock_irqrestore(l, f) _nrspin_unlock_irqrestore(l, f)
#define nrspin_unlock_irq(l) _nrspin_unlock_irq(l)
-#endif /* __SPINLOCK_H__ */
+#endif /* XEN__SPINLOCK_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_STDARG_H__
-#define __XEN_STDARG_H__
+#ifndef XEN__STDARG_H
+#define XEN__STDARG_H
typedef __builtin_va_list va_list;
#define va_copy(dest, src) __builtin_va_copy((dest), (src))
@@ -7,4 +7,4 @@ typedef __builtin_va_list va_list;
#define va_end(ap) __builtin_va_end(ap)
#define va_arg __builtin_va_arg
-#endif /* __XEN_STDARG_H__ */
+#endif /* XEN__STDARG_H */
@@ -1,9 +1,9 @@
-#ifndef __XEN_STDBOOL_H__
-#define __XEN_STDBOOL_H__
+#ifndef XEN__STDBOOL_H
+#define XEN__STDBOOL_H
#define bool _Bool
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
-#endif /* __XEN_STDBOOL_H__ */
+#endif /* XEN__STDBOOL_H */
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __XEN_STDINT_H__
-#define __XEN_STDINT_H__
+#ifndef XEN__STDINT_H
+#define XEN__STDINT_H
#ifndef __INT8_TYPE__ /* GCC <= 4.4 */
@@ -30,4 +30,4 @@ typedef __UINT64_TYPE__ uint64_t;
#endif
-#endif /* __XEN_STDINT_H__ */
+#endif /* XEN__STDINT_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_STOP_MACHINE_H__
-#define __XEN_STOP_MACHINE_H__
+#ifndef XEN__STOP_MACHINE_H
+#define XEN__STOP_MACHINE_H
/**
* stop_machine_run: freeze the machine on all CPUs and run this function
@@ -16,4 +16,4 @@
* grabbing every spinlock in the kernel. */
int stop_machine_run(int (*fn)(void *data), void *data, unsigned int cpu);
-#endif /* __XEN_STOP_MACHINE_H__ */
+#endif /* XEN__STOP_MACHINE_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_STRING_H__
-#define __XEN_STRING_H__
+#ifndef XEN__STRING_H
+#define XEN__STRING_H
#include <xen/types.h> /* for size_t */
@@ -100,7 +100,7 @@ void *memchr_inv(const void *s, int c, size_t n);
(strlcat(d, s, sizeof(d)) >= sizeof(d)); \
})
-#endif /* __XEN_STRING_H__ */
+#endif /* XEN__STRING_H */
/*
* Local variables:
* mode: C
@@ -1,5 +1,5 @@
-#ifndef __XEN_STRINGIFY_H
-#define __XEN_STRINGIFY_H
+#ifndef XEN__STRINGIFY_H
+#define XEN__STRINGIFY_H
/* Indirect stringification. Doing two levels allows the parameter to be a
* macro itself. For example, compile with -DFOO=bar, __stringify(FOO)
@@ -9,4 +9,4 @@
#define __stringify_1(x...) #x
#define __stringify(x...) __stringify_1(x)
-#endif /* !__XEN_STRINGIFY_H */
+#endif /* !XEN__STRINGIFY_H */
@@ -1,5 +1,5 @@
-#ifndef _XEN_SYMBOLS_H
-#define _XEN_SYMBOLS_H
+#ifndef XEN__SYMBOLS_H
+#define XEN__SYMBOLS_H
#include <xen/types.h>
@@ -33,4 +33,4 @@ struct symbol_offset {
uint32_t stream; /* .. in the compressed stream.*/
uint32_t addr; /* .. and in the fixed size address array. */
};
-#endif /*_XEN_SYMBOLS_H*/
+#endif /*XEN__SYMBOLS_H*/
@@ -7,8 +7,8 @@
* during per-tasklet initialisation.
*/
-#ifndef __XEN_TASKLET_H__
-#define __XEN_TASKLET_H__
+#ifndef XEN__TASKLET_H
+#define XEN__TASKLET_H
#include <xen/types.h>
#include <xen/list.h>
@@ -64,4 +64,4 @@ void softirq_tasklet_init(struct tasklet *t,
void (*func)(void *data), void *data);
void tasklet_subsys_init(void);
-#endif /* __XEN_TASKLET_H__ */
+#endif /* XEN__TASKLET_H */
@@ -5,8 +5,8 @@
* Copyright (c) 2002-2005 K A Fraser
*/
-#ifndef __XEN_TIME_H__
-#define __XEN_TIME_H__
+#ifndef XEN__TIME_H
+#define XEN__TIME_H
#include <xen/types.h>
#include <public/xen.h>
@@ -77,7 +77,7 @@ void domain_set_time_offset(struct domain *d, int64_t time_offset_seconds);
#include <asm/time.h>
-#endif /* __XEN_TIME_H__ */
+#endif /* XEN__TIME_H */
/*
* Local variables:
@@ -5,8 +5,8 @@
* Copyright (c) 2002-2005 K A Fraser
*/
-#ifndef _TIMER_H_
-#define _TIMER_H_
+#ifndef XEN__TIMER_H
+#define XEN__TIMER_H
#include <xen/spinlock.h>
#include <xen/time.h>
@@ -110,7 +110,7 @@ int reprogram_timer(s_time_t timeout);
/* Calculate the aligned first tick time for a given periodic timer. */
s_time_t align_timer(s_time_t firsttick, uint64_t period);
-#endif /* _TIMER_H_ */
+#endif /* XEN__TIMER_H */
/*
* Local variables:
@@ -18,8 +18,8 @@
* trace buffer contents can then be performed using a userland tool.
*/
-#ifndef __XEN_TRACE_H__
-#define __XEN_TRACE_H__
+#ifndef XEN__TRACE_H
+#define XEN__TRACE_H
#include <xen/types.h>
#include <public/sysctl.h>
@@ -91,4 +91,4 @@ static inline void trace_time(
/* Create a trace record with time included. */
#define TRACE_TIME(_e, ...) TRACE((_e) | TRC_HD_CYCLE_FLAG, ## __VA_ARGS__)
-#endif /* __XEN_TRACE_H__ */
+#endif /* XEN__TRACE_H */
@@ -1,5 +1,5 @@
-#ifndef __TYPES_H__
-#define __TYPES_H__
+#ifndef XEN__TYPES_H
+#define XEN__TYPES_H
#include <xen/stdbool.h>
#include <xen/stdint.h>
@@ -64,4 +64,4 @@ typedef unsigned int __attribute__((__mode__(__pointer__))) uintptr_t;
#define test_and_set_bool(b) xchg(&(b), true)
#define test_and_clear_bool(b) xchg(&(b), false)
-#endif /* __TYPES_H__ */
+#endif /* XEN__TYPES_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_TYPESAFE_H__
-#define __XEN_TYPESAFE_H__
+#ifndef XEN__TYPESAFE_H
+#define XEN__TYPESAFE_H
/*
* Compiler games to gain type safety between different logical integers.
@@ -33,7 +33,7 @@
#endif
-#endif /* __XEN_TYPESAFE_H__ */
+#endif /* XEN__TYPESAFE_H */
/*
* Local variables:
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __XEN_UNALIGNED_H__
-#define __XEN_UNALIGNED_H__
+#ifndef XEN__UNALIGNED_H
+#define XEN__UNALIGNED_H
#ifdef __XEN__
#include <xen/types.h>
@@ -85,4 +85,4 @@ static inline void put_unaligned_le64(uint64_t val, void *p)
put_unaligned_t(__le64, cpu_to_le64(val), p);
}
-#endif /* __XEN_UNALIGNED_H__ */
+#endif /* XEN__UNALIGNED_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_VERSION_H__
-#define __XEN_VERSION_H__
+#ifndef XEN__VERSION_H
+#define XEN__VERSION_H
#include <xen/types.h>
#include <xen/elfstructs.h>
@@ -27,4 +27,4 @@ int xen_build_id_check(const Elf_Note *n, unsigned int n_sz,
static inline void xen_build_init(void) {};
#endif
-#endif /* __XEN_VERSION_H__ */
+#endif /* XEN__VERSION_H */
@@ -6,8 +6,8 @@
* for more details.
*/
-#ifndef _XEN_VGA_H
-#define _XEN_VGA_H
+#ifndef XEN__VGA_H
+#define XEN__VGA_H
#include <xen/video.h>
@@ -21,4 +21,4 @@ void vesa_endboot(bool keep);
static inline void vesa_init(void) {}
#endif
-#endif /* _XEN_VGA_H */
+#endif /* XEN__VGA_H */
@@ -6,8 +6,8 @@
* for more details.
*/
-#ifndef _XEN_VIDEO_H
-#define _XEN_VIDEO_H
+#ifndef XEN__VIDEO_H
+#define XEN__VIDEO_H
#include <public/xen.h>
@@ -21,4 +21,4 @@ static inline void video_puts(const char *str, size_t nr) {}
#define video_endboot() ((void)0)
#endif
-#endif /* _XEN_VIDEO_H */
+#endif /* XEN__VIDEO_H */
@@ -3,8 +3,8 @@
*
*/
-#ifndef __XEN_VIRTUAL_REGION_H__
-#define __XEN_VIRTUAL_REGION_H__
+#ifndef XEN__VIRTUAL_REGION_H
+#define XEN__VIRTUAL_REGION_H
#include <xen/list.h>
#include <xen/symbols.h>
@@ -46,7 +46,7 @@ void unregister_virtual_region(struct virtual_region *r);
void relax_virtual_region_perms(void);
void tighten_virtual_region_perms(void);
-#endif /* __XEN_VIRTUAL_REGION_H__ */
+#endif /* XEN__VIRTUAL_REGION_H */
/*
* Local variables:
@@ -5,8 +5,8 @@
* purpose area (VMAP_DEFAULT) and a livepatch-specific area (VMAP_XEN). The
* latter is used when loading livepatches and the former for everything else.
*/
-#if !defined(__XEN_VMAP_H__) && defined(VMAP_VIRT_START)
-#define __XEN_VMAP_H__
+#if !defined(XEN__VMAP_H) && defined(VMAP_VIRT_START)
+#define XEN__VMAP_H
#include <xen/mm-frame.h>
#include <xen/page-size.h>
@@ -146,4 +146,4 @@ static inline void vm_init(void)
#endif
}
-#endif /* __XEN_VMAP_H__ */
+#endif /* XEN__VMAP_H */
@@ -6,8 +6,8 @@
* Copyright (c) 2010, Keir Fraser <keir@xen.org>
*/
-#ifndef __XEN_WAIT_H__
-#define __XEN_WAIT_H__
+#ifndef XEN__WAIT_H
+#define XEN__WAIT_H
#include <xen/types.h>
#include <xen/list.h>
@@ -56,4 +56,4 @@ void wait(void);
void finish_wait(struct waitqueue_head *wq);
void check_wakeup_from_wait(void);
-#endif /* __XEN_WAIT_H__ */
+#endif /* XEN__WAIT_H */
@@ -1,5 +1,5 @@
-#ifndef _WARNING_H_
-#define _WARNING_H_
+#ifndef XEN__WARNING_H
+#define XEN__WARNING_H
void warning_add(const char *warning);
void warning_print(void);
@@ -4,8 +4,8 @@
* Common watchdog code
*/
-#ifndef __XEN_WATCHDOG_H__
-#define __XEN_WATCHDOG_H__
+#ifndef XEN__WATCHDOG_H
+#define XEN__WATCHDOG_H
#include <xen/types.h>
@@ -32,4 +32,4 @@ bool watchdog_enabled(void);
#endif
-#endif /* __XEN_WATCHDOG_H__ */
+#endif /* XEN__WATCHDOG_H */
@@ -1,5 +1,5 @@
-#ifndef __XEN_LDS_H__
-#define __XEN_LDS_H__
+#ifndef XEN__XEN_LDS_H
+#define XEN__XEN_LDS_H
/*
* Common macros to be used in architecture specific linker scripts.
@@ -171,4 +171,4 @@
#define VPCI_ARRAY
#endif
-#endif /* __XEN_LDS_H__ */
+#endif /* XEN__XEN_LDS_H */
@@ -7,8 +7,8 @@
* written by Aravind Menon & Jose Renato Santos
*/
-#ifndef __XEN_XENOPROF_H__
-#define __XEN_XENOPROF_H__
+#ifndef XEN__XENOPROF_H
+#define XEN__XENOPROF_H
#define PMU_OWNER_NONE 0
#define PMU_OWNER_XENOPROF 1
@@ -1,6 +1,6 @@
-#ifndef __XMALLOC_H__
-#define __XMALLOC_H__
+#ifndef XEN__XMALLOC_H
+#define XEN__XMALLOC_H
#include <xen/types.h>
#include <xen/cache.h>
@@ -171,4 +171,4 @@ unsigned long xmem_pool_get_used_size(struct xmem_pool *pool);
*/
unsigned long xmem_pool_get_total_size(struct xmem_pool *pool);
-#endif /* __XMALLOC_H__ */
+#endif /* XEN__XMALLOC_H */
@@ -72,8 +72,8 @@
* xxh32 6.8 GB/s 6.0 GB/s
*/
-#ifndef __XENXXHASH_H__
-#define __XENXXHASH_H__
+#ifndef XEN__XXHASH_H
+#define XEN__XXHASH_H
#include <xen/types.h>
@@ -256,4 +256,4 @@ void xxh32_copy_state(struct xxh32_state *dst, const struct xxh32_state *src);
*/
void xxh64_copy_state(struct xxh64_state *dst, const struct xxh64_state *src);
-#endif /* __XENXXHASH_H__ */
+#endif /* XEN__XXHASH_H */
Updated headers not having specific maintainers. Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com> --- Changes since v1: - excluded public headers, their guards is an API; - moved here changes needed to compile. --- tools/libs/guest/xg_dom_decompress_unsafe_zstd.c | 2 +- xen/arch/arm/include/asm/hypercall.h | 2 +- xen/arch/arm/include/asm/p2m.h | 2 +- xen/arch/x86/include/asm/hypercall.h | 2 +- xen/arch/x86/include/asm/p2m.h | 2 +- xen/common/coverage/coverage.h | 4 ++-- xen/common/coverage/gcov.h | 6 +++--- xen/common/libelf/libelf-private.h | 6 +++--- xen/common/lz4/defs.h | 6 +++--- xen/common/ubsan/ubsan.h | 4 ++-- xen/common/xz/lzma2.h | 4 ++-- xen/common/xz/private.h | 4 ++-- xen/common/xz/stream.h | 4 ++-- xen/common/zstd/bitstream.h | 6 +++--- xen/common/zstd/error_private.h | 6 +++--- xen/common/zstd/fse.h | 6 +++--- xen/common/zstd/huf.h | 6 +++--- xen/common/zstd/mem.h | 6 +++--- xen/common/zstd/zstd_internal.h | 6 +++--- xen/drivers/video/font.h | 6 +++--- xen/drivers/video/lfb.h | 4 ++-- xen/drivers/video/modelines.h | 4 ++-- xen/include/asm-generic/altp2m.h | 6 +++--- xen/include/asm-generic/atomic-ops.h | 6 +++--- xen/include/asm-generic/device.h | 6 +++--- xen/include/asm-generic/div64.h | 4 ++-- xen/include/asm-generic/hardirq.h | 6 +++--- xen/include/asm-generic/hypercall.h | 8 ++++---- xen/include/asm-generic/iocap.h | 6 +++--- xen/include/asm-generic/paging.h | 6 +++--- xen/include/asm-generic/percpu.h | 6 +++--- xen/include/asm-generic/random.h | 6 +++--- xen/include/asm-generic/softirq.h | 6 +++--- xen/include/crypto/rijndael.h | 6 +++--- xen/include/crypto/vmac.h | 4 ++-- xen/include/xen/8250-uart.h | 6 +++--- xen/include/xen/acpi.h | 6 +++--- xen/include/xen/alternative-call.h | 6 +++--- xen/include/xen/atomic.h | 6 +++--- xen/include/xen/bitmap.h | 6 +++--- xen/include/xen/bitops.h | 6 +++--- xen/include/xen/bug.h | 6 +++--- xen/include/xen/byteorder/big_endian.h | 6 +++--- xen/include/xen/byteorder/generic.h | 6 +++--- xen/include/xen/byteorder/little_endian.h | 6 +++--- xen/include/xen/byteorder/swab.h | 6 +++--- xen/include/xen/cache.h | 6 +++--- xen/include/xen/compat.h | 6 +++--- xen/include/xen/compiler.h | 6 +++--- xen/include/xen/config.h | 6 +++--- xen/include/xen/console.h | 6 +++--- xen/include/xen/consoled.h | 6 +++--- xen/include/xen/const.h | 6 +++--- xen/include/xen/coverage.h | 4 ++-- xen/include/xen/cper.h | 4 ++-- xen/include/xen/cpu.h | 6 +++--- xen/include/xen/cpuidle.h | 6 +++--- xen/include/xen/cpumask.h | 6 +++--- xen/include/xen/ctype.h | 4 ++-- xen/include/xen/decompress.h | 4 ++-- xen/include/xen/delay.h | 6 +++--- xen/include/xen/dm.h | 6 +++--- xen/include/xen/dmi.h | 6 +++--- xen/include/xen/domain.h | 6 +++--- xen/include/xen/domain_page.h | 6 +++--- xen/include/xen/dt-overlay.h | 6 +++--- xen/include/xen/early_printk.h | 4 ++-- xen/include/xen/earlycpio.h | 6 +++--- xen/include/xen/efi.h | 6 +++--- xen/include/xen/elf.h | 6 +++--- xen/include/xen/elfcore.h | 6 +++--- xen/include/xen/elfstructs.h | 6 +++--- xen/include/xen/err.h | 6 +++--- xen/include/xen/errno.h | 6 +++--- xen/include/xen/event.h | 6 +++--- xen/include/xen/grant_table.h | 6 +++--- xen/include/xen/guest_access.h | 6 +++--- xen/include/xen/gunzip.h | 4 ++-- xen/include/xen/hypercall.h | 6 +++--- xen/include/xen/init.h | 6 +++--- xen/include/xen/inttypes.h | 6 +++--- xen/include/xen/iocap.h | 6 +++--- xen/include/xen/ioreq.h | 6 +++--- xen/include/xen/irq.h | 6 +++--- xen/include/xen/irq_cpustat.h | 6 +++--- xen/include/xen/kconfig.h | 6 +++--- xen/include/xen/kernel.h | 6 +++--- xen/include/xen/keyhandler.h | 6 +++--- xen/include/xen/lib.h | 6 +++--- xen/include/xen/libelf.h | 6 +++--- xen/include/xen/linkage.h | 6 +++--- xen/include/xen/linux-compat.h | 6 +++--- xen/include/xen/list.h | 6 +++--- xen/include/xen/list_sort.h | 4 ++-- xen/include/xen/lz4.h | 4 ++-- xen/include/xen/lzo.h | 4 ++-- xen/include/xen/macros.h | 6 +++--- xen/include/xen/mm-frame.h | 6 +++--- xen/include/xen/mm.h | 6 +++--- xen/include/xen/msi.h | 4 ++-- xen/include/xen/multiboot.h | 6 +++--- xen/include/xen/multiboot2.h | 6 +++--- xen/include/xen/multicall.h | 6 +++--- xen/include/xen/nodemask.h | 6 +++--- xen/include/xen/nospec.h | 6 +++--- xen/include/xen/notifier.h | 6 +++--- xen/include/xen/numa.h | 6 +++--- xen/include/xen/p2m-common.h | 6 +++--- xen/include/xen/page-defs.h | 6 +++--- xen/include/xen/page-size.h | 4 ++-- xen/include/xen/paging.h | 6 +++--- xen/include/xen/param.h | 6 +++--- xen/include/xen/pci.h | 6 +++--- xen/include/xen/pci_regs.h | 6 +++--- xen/include/xen/pdx.h | 6 +++--- xen/include/xen/percpu.h | 6 +++--- xen/include/xen/perfc.h | 6 +++--- xen/include/xen/perfc_defn.h | 6 +++--- xen/include/xen/pfn.h | 6 +++--- xen/include/xen/pmap.h | 6 +++--- xen/include/xen/pmstat.h | 6 +++--- xen/include/xen/preempt.h | 6 +++--- xen/include/xen/prefetch.h | 4 ++-- xen/include/xen/pv_console.h | 6 +++--- xen/include/xen/radix-tree.h | 6 +++--- xen/include/xen/random.h | 6 +++--- xen/include/xen/rangeset.h | 6 +++--- xen/include/xen/rbtree.h | 6 +++--- xen/include/xen/rcupdate.h | 6 +++--- xen/include/xen/rwlock.h | 6 +++--- xen/include/xen/sched.h | 6 +++--- xen/include/xen/sections.h | 6 +++--- xen/include/xen/self-tests.h | 6 +++--- xen/include/xen/serial.h | 6 +++--- xen/include/xen/shared.h | 6 +++--- xen/include/xen/shutdown.h | 6 +++--- xen/include/xen/sizes.h | 6 +++--- xen/include/xen/smp.h | 6 +++--- xen/include/xen/softirq.h | 6 +++--- xen/include/xen/sort.h | 6 +++--- xen/include/xen/spinlock.h | 6 +++--- xen/include/xen/stdarg.h | 6 +++--- xen/include/xen/stdbool.h | 6 +++--- xen/include/xen/stdint.h | 6 +++--- xen/include/xen/stop_machine.h | 6 +++--- xen/include/xen/string.h | 6 +++--- xen/include/xen/stringify.h | 6 +++--- xen/include/xen/symbols.h | 6 +++--- xen/include/xen/tasklet.h | 6 +++--- xen/include/xen/time.h | 6 +++--- xen/include/xen/timer.h | 6 +++--- xen/include/xen/trace.h | 6 +++--- xen/include/xen/types.h | 6 +++--- xen/include/xen/typesafe.h | 6 +++--- xen/include/xen/unaligned.h | 6 +++--- xen/include/xen/version.h | 6 +++--- xen/include/xen/vga.h | 6 +++--- xen/include/xen/video.h | 6 +++--- xen/include/xen/virtual_region.h | 6 +++--- xen/include/xen/vmap.h | 6 +++--- xen/include/xen/wait.h | 6 +++--- xen/include/xen/warning.h | 4 ++-- xen/include/xen/watchdog.h | 6 +++--- xen/include/xen/xen.lds.h | 6 +++--- xen/include/xen/xenoprof.h | 4 ++-- xen/include/xen/xmalloc.h | 6 +++--- xen/include/xen/xxhash.h | 6 +++--- 167 files changed, 469 insertions(+), 469 deletions(-)