Update header guards bases on new coding style
Subsystems (7)
PATCH 16/20 xen: Update header guards - RISC-V
In reply to Frediano ZiglioUpdated headers related to RISC-V.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/arch/riscv/include/asm/acpi.h | 6 +++--- xen/arch/riscv/include/asm/asm.h | 6 +++--- xen/arch/riscv/include/asm/atomic.h | 6 +++--- xen/arch/riscv/include/asm/bitops.h | 6 +++--- xen/arch/riscv/include/asm/bug.h | 6 +++--- xen/arch/riscv/include/asm/byteorder.h | 6 +++--- xen/arch/riscv/include/asm/cache.h | 6 +++--- xen/arch/riscv/include/asm/cmpxchg.h | 6 +++--- xen/arch/riscv/include/asm/config.h | 6 +++--- xen/arch/riscv/include/asm/cpufeature.h | 6 +++--- xen/arch/riscv/include/asm/csr.h | 6 +++--- xen/arch/riscv/include/asm/current.h | 6 +++--- xen/arch/riscv/include/asm/domain.h | 6 +++--- xen/arch/riscv/include/asm/early_printk.h | 6 +++--- xen/arch/riscv/include/asm/event.h | 6 +++--- xen/arch/riscv/include/asm/fence.h | 6 +++--- xen/arch/riscv/include/asm/fixmap.h | 6 +++--- xen/arch/riscv/include/asm/flushtlb.h | 6 +++--- xen/arch/riscv/include/asm/guest_access.h | 6 +++--- xen/arch/riscv/include/asm/guest_atomics.h | 6 +++--- xen/arch/riscv/include/asm/io.h | 6 +++--- xen/arch/riscv/include/asm/irq.h | 6 +++--- xen/arch/riscv/include/asm/mm.h | 6 +++--- xen/arch/riscv/include/asm/monitor.h | 6 +++--- xen/arch/riscv/include/asm/nospec.h | 6 +++--- xen/arch/riscv/include/asm/p2m.h | 6 +++--- xen/arch/riscv/include/asm/page-bits.h | 6 +++--- xen/arch/riscv/include/asm/page.h | 6 +++--- xen/arch/riscv/include/asm/pmap.h | 6 +++--- xen/arch/riscv/include/asm/processor.h | 6 +++--- xen/arch/riscv/include/asm/regs.h | 6 +++--- xen/arch/riscv/include/asm/riscv_encoding.h | 4 ++-- xen/arch/riscv/include/asm/sbi.h | 6 +++--- xen/arch/riscv/include/asm/setup.h | 6 +++--- xen/arch/riscv/include/asm/smp.h | 4 ++-- xen/arch/riscv/include/asm/spinlock.h | 6 +++--- xen/arch/riscv/include/asm/string.h | 6 +++--- xen/arch/riscv/include/asm/system.h | 6 +++--- xen/arch/riscv/include/asm/time.h | 6 +++--- xen/arch/riscv/include/asm/traps.h | 6 +++--- xen/arch/riscv/include/asm/types.h | 6 +++--- 41 files changed, 121 insertions(+), 121 deletions(-)
xen/arch/riscv/include/asm/acpi.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_RISCV_ACPI_H -#define __ASM_RISCV_ACPI_H +#ifndef ASM__RISCV__ACPI_H +#define ASM__RISCV__ACPI_H -#endif /* __ASM_RISCV_ACPI_H */ +#endif /* ASM__RISCV__ACPI_H */
xen/arch/riscv/include/asm/asm.h +3 -3
@@ -3,8 +3,8 @@* Copyright (C) 2015 Regents of the University of California */ -#ifndef _ASM_RISCV_ASM_H -#define _ASM_RISCV_ASM_H +#ifndef ASM__RISCV__ASM_H +#define ASM__RISCV__ASM_H #ifdef __ASSEMBLY__#include <xen/linkage.h>
@@ -52,4 +52,4 @@#error "Unexpected __SIZEOF_SHORT__"#endif -#endif /* _ASM_RISCV_ASM_H */ +#endif /* ASM__RISCV__ASM_H */
xen/arch/riscv/include/asm/atomic.h +3 -3
@@ -19,8 +19,8 @@* Copyright (C) 2024 Vates SAS */ -#ifndef _ASM_RISCV_ATOMIC_H -#define _ASM_RISCV_ATOMIC_H +#ifndef ASM__RISCV__ATOMIC_H +#define ASM__RISCV__ATOMIC_H #include <xen/atomic.h>
@@ -266,7 +266,7 @@ ATOMIC_OPS()#undef ATOMIC_OPS#undef ATOMIC_OP -#endif /* _ASM_RISCV_ATOMIC_H */ +#endif /* ASM__RISCV__ATOMIC_H */ /* * Local variables:
xen/arch/riscv/include/asm/bitops.h +3 -3
@@ -1,8 +1,8 @@/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012 Regents of the University of California */ -#ifndef _ASM_RISCV_BITOPS_H -#define _ASM_RISCV_BITOPS_H +#ifndef ASM__RISCV__BITOPS_H +#define ASM__RISCV__BITOPS_H #include <asm/system.h>
@@ -125,7 +125,7 @@ static inline void clear_bit(int nr, volatile void *p)#undef NOT#undef __AMO -#endif /* _ASM_RISCV_BITOPS_H */ +#endif /* ASM__RISCV__BITOPS_H */ /* * Local variables:
xen/arch/riscv/include/asm/bug.h +3 -3
@@ -4,8 +4,8 @@* Copyright (C) 2021-2023 Vates * */ -#ifndef _ASM_RISCV_BUG_H -#define _ASM_RISCV_BUG_H +#ifndef ASM__RISCV__BUG_H +#define ASM__RISCV__BUG_H #ifndef __ASSEMBLY__
@@ -32,4 +32,4 @@#endif /* !__ASSEMBLY__ */ -#endif /* _ASM_RISCV_BUG_H */ +#endif /* ASM__RISCV__BUG_H */
xen/arch/riscv/include/asm/byteorder.h +3 -3
@@ -1,11 +1,11 @@ -#ifndef __ASM_RISCV_BYTEORDER_H__ -#define __ASM_RISCV_BYTEORDER_H__ +#ifndef ASM__RISCV__BYTEORDER_H +#define ASM__RISCV__BYTEORDER_H #define __BYTEORDER_HAS_U64__#include <xen/byteorder/little_endian.h> -#endif /* __ASM_RISCV_BYTEORDER_H__ */ +#endif /* ASM__RISCV__BYTEORDER_H */ /* * Local variables: * mode: C
xen/arch/riscv/include/asm/cache.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_RISCV_CACHE_H -#define _ASM_RISCV_CACHE_H +#ifndef ASM__RISCV__CACHE_H +#define ASM__RISCV__CACHE_H -#endif /* _ASM_RISCV_CACHE_H */ +#endif /* ASM__RISCV__CACHE_H */
xen/arch/riscv/include/asm/cmpxchg.h +3 -3
@@ -1,8 +1,8 @@/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (C) 2014 Regents of the University of California */ -#ifndef _ASM_RISCV_CMPXCHG_H -#define _ASM_RISCV_CMPXCHG_H +#ifndef ASM__RISCV__CMPXCHG_H +#define ASM__RISCV__CMPXCHG_H #include <xen/compiler.h> #include <xen/lib.h>
@@ -242,7 +242,7 @@ static always_inline unsigned long __cmpxchg(volatile void *ptr, sizeof(*(ptr))); \ }) -#endif /* _ASM_RISCV_CMPXCHG_H */ +#endif /* ASM__RISCV__CMPXCHG_H */ /* * Local variables:
xen/arch/riscv/include/asm/config.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __RISCV_CONFIG_H__ -#define __RISCV_CONFIG_H__ +#ifndef ASM__RISCV__CONFIG_H +#define ASM__RISCV__CONFIG_H #include <xen/const.h> #include <xen/page-size.h>
@@ -155,7 +155,7 @@#define IDENT_AREA_SIZE 64 -#endif /* __RISCV_CONFIG_H__ */ +#endif /* ASM__RISCV__CONFIG_H */ /* * Local variables: * mode: C
xen/arch/riscv/include/asm/cpufeature.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_CPUFEATURE_H -#define __ASM_RISCV_CPUFEATURE_H +#ifndef ASM__RISCV__CPUFEATURE_H +#define ASM__RISCV__CPUFEATURE_H #ifndef __ASSEMBLY__
@@ -11,7 +11,7 @@ static inline unsigned int cpu_nr_siblings(unsigned int cpu)#endif /* __ASSEMBLY__ */ -#endif /* __ASM_RISCV_CPUFEATURE_H */ +#endif /* ASM__RISCV__CPUFEATURE_H */ /* * Local variables:
xen/arch/riscv/include/asm/csr.h +3 -3
@@ -3,8 +3,8 @@* Copyright (C) 2015 Regents of the University of California */ -#ifndef _ASM_RISCV_CSR_H -#define _ASM_RISCV_CSR_H +#ifndef ASM__RISCV__CSR_H +#define ASM__RISCV__CSR_H #include <asm/asm.h> #include <xen/const.h>
@@ -80,4 +80,4 @@#endif /* __ASSEMBLY__ */ -#endif /* _ASM_RISCV_CSR_H */ +#endif /* ASM__RISCV__CSR_H */
xen/arch/riscv/include/asm/current.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_CURRENT_H -#define __ASM_CURRENT_H +#ifndef ASM__RISCV__CURRENT_H +#define ASM__RISCV__CURRENT_H #include <xen/bug.h> #include <xen/cache.h>
@@ -54,4 +54,4 @@ DECLARE_PER_CPU(struct vcpu *, curr_vcpu);#endif /* __ASSEMBLY__ */ -#endif /* __ASM_CURRENT_H */ +#endif /* ASM__RISCV__CURRENT_H */
xen/arch/riscv/include/asm/domain.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_DOMAIN_H__ -#define __ASM_RISCV_DOMAIN_H__ +#ifndef ASM__RISCV__DOMAIN_H +#define ASM__RISCV__DOMAIN_H #include <xen/xmalloc.h> #include <public/hvm/params.h>
@@ -39,7 +39,7 @@ static inline void update_guest_memory_policy(struct vcpu *v,static inline void arch_vcpu_block (struct vcpu *v) {} -#endif /* __ASM_RISCV_DOMAIN_H__ */ +#endif /* ASM__RISCV__DOMAIN_H */ /* * Local variables:
xen/arch/riscv/include/asm/early_printk.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __EARLY_PRINTK_H__ -#define __EARLY_PRINTK_H__ +#ifndef ASM__RISCV__EARLY_PRINTK_H +#define ASM__RISCV__EARLY_PRINTK_H #include <xen/early_printk.h>
@@ -11,4 +11,4 @@ void early_printk(const char *str);static inline void early_printk (const char *s) {};#endif -#endif /* __EARLY_PRINTK_H__ */ +#endif /* ASM__RISCV__EARLY_PRINTK_H */
xen/arch/riscv/include/asm/event.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_EVENT_H__ -#define __ASM_RISCV_EVENT_H__ +#ifndef ASM__RISCV__EVENT_H +#define ASM__RISCV__EVENT_H #include <xen/lib.h>
@@ -29,7 +29,7 @@ static inline bool arch_virq_is_global(unsigned int virq) return true; } -#endif /* __ASM_RISCV_EVENT_H__ */ +#endif /* ASM__RISCV__EVENT_H */ /* * Local variables: * mode: C
xen/arch/riscv/include/asm/fence.h +3 -3
@@ -1,9 +1,9 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef _ASM_RISCV_FENCE_H -#define _ASM_RISCV_FENCE_H +#ifndef ASM__RISCV__FENCE_H +#define ASM__RISCV__FENCE_H #define RISCV_ACQUIRE_BARRIER "\tfence r , rw\n"#define RISCV_RELEASE_BARRIER "\tfence rw, w\n"#define RISCV_FULL_BARRIER "\tfence rw, rw\n" -#endif /* _ASM_RISCV_FENCE_H */ +#endif /* ASM__RISCV__FENCE_H */
xen/arch/riscv/include/asm/fixmap.h +3 -3
@@ -2,8 +2,8 @@/* * fixmap.h: compile-time virtual memory allocation */ -#ifndef ASM_FIXMAP_H -#define ASM_FIXMAP_H +#ifndef ASM__RISCV__FIXMAP_H +#define ASM__RISCV__FIXMAP_H #include <xen/bug.h> #include <xen/page-size.h>
@@ -43,4 +43,4 @@ static inline unsigned int virt_to_fix(vaddr_t vaddr)#endif /* __ASSEMBLY__ */ -#endif /* ASM_FIXMAP_H */ +#endif /* ASM__RISCV__FIXMAP_H */
xen/arch/riscv/include/asm/flushtlb.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_FLUSHTLB_H__ -#define __ASM_RISCV_FLUSHTLB_H__ +#ifndef ASM__RISCV__FLUSHTLB_H +#define ASM__RISCV__FLUSHTLB_H #include <xen/bug.h> #include <xen/cpumask.h>
@@ -37,7 +37,7 @@ static inline void page_set_tlbflush_timestamp(struct page_info *page)/* Flush specified CPUs' TLBs */ void arch_flush_tlb_mask (const cpumask_t *mask); -#endif /* __ASM_RISCV_FLUSHTLB_H__ */ +#endif /* ASM__RISCV__FLUSHTLB_H */ /* * Local variables:
xen/arch/riscv/include/asm/guest_access.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_GUEST_ACCESS_H__ -#define __ASM_RISCV_GUEST_ACCESS_H__ +#ifndef ASM__RISCV__GUEST_ACCESS_H +#define ASM__RISCV__GUEST_ACCESS_H unsigned long raw_copy_to_guest (void *to,const void *from,unsigned len);unsigned long raw_copy_from_guest (void *to,const void *from,unsigned len);
@@ -18,7 +18,7 @@ unsigned long raw_clear_guest(void *to, unsigned int len);#define guest_handle_okay (hnd, nr) (1)#define guest_handle_subrange_okay (hnd, first, last) (1) -#endif /* __ASM_RISCV_GUEST_ACCESS_H__ */ +#endif /* ASM__RISCV__GUEST_ACCESS_H */ /* * Local variables: * mode: C
xen/arch/riscv/include/asm/guest_atomics.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_GUEST_ATOMICS_H -#define __ASM_RISCV_GUEST_ATOMICS_H +#ifndef ASM__RISCV__GUEST_ATOMICS_H +#define ASM__RISCV__GUEST_ATOMICS_H #include <xen/bug.h>
@@ -32,7 +32,7 @@ guest_testop(test_and_change_bit)#define guest_test_bit (d, nr, p) ((void)(d), test_bit(nr, p)) -#endif /* __ASM_RISCV_GUEST_ATOMICS_H */ +#endif /* ASM__RISCV__GUEST_ATOMICS_H */ /* * Local variables:
xen/arch/riscv/include/asm/io.h +3 -3
@@ -35,8 +35,8 @@* Copyright (C) 2024 Vates */ -#ifndef _ASM_RISCV_IO_H -#define _ASM_RISCV_IO_H +#ifndef ASM__RISCV__IO_H +#define ASM__RISCV__IO_H #include <asm/byteorder.h>
@@ -156,7 +156,7 @@ static inline uint64_t __raw_readq(const volatile void __iomem *addr)#define writel (v, c) ({ __io_bw(); writel_cpu(v, c); __io_aw(); })#define writeq (v, c) ({ __io_bw(); writeq_cpu(v, c); __io_aw(); }) -#endif /* _ASM_RISCV_IO_H */ +#endif /* ASM__RISCV__IO_H */ /* * Local variables:
xen/arch/riscv/include/asm/irq.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_IRQ_H__ -#define __ASM_RISCV_IRQ_H__ +#ifndef ASM__RISCV__IRQ_H +#define ASM__RISCV__IRQ_H #include <xen/bug.h>
@@ -25,7 +25,7 @@ static inline void arch_move_irqs(struct vcpu *v) BUG_ON("unimplemented"); } -#endif /* __ASM_RISCV_IRQ_H__ */ +#endif /* ASM__RISCV__IRQ_H */ /* * Local variables:
xen/arch/riscv/include/asm/mm.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _ASM_RISCV_MM_H -#define _ASM_RISCV_MM_H +#ifndef ASM__RISCV__MM_H +#define ASM__RISCV__MM_H #include <public/xen.h> #include <xen/bug.h>
@@ -261,4 +261,4 @@ void setup_fixmap_mappings(void);void *early_fdt_map (paddr_t fdt_paddr); -#endif /* _ASM_RISCV_MM_H */ +#endif /* ASM__RISCV__MM_H */
xen/arch/riscv/include/asm/monitor.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_MONITOR_H__ -#define __ASM_RISCV_MONITOR_H__ +#ifndef ASM__RISCV__MONITOR_H +#define ASM__RISCV__MONITOR_H #include <xen/bug.h>
@@ -14,7 +14,7 @@ static inline uint32_t arch_monitor_get_capabilities(struct domain *d) return 0; } -#endif /* __ASM_RISCV_MONITOR_H__ */ +#endif /* ASM__RISCV__MONITOR_H */ /* * Local variables:
xen/arch/riscv/include/asm/nospec.h +3 -3
@@ -1,8 +1,8 @@/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (C) 2024 Vates */ -#ifndef _ASM_RISCV_NOSPEC_H -#define _ASM_RISCV_NOSPEC_H +#ifndef ASM__RISCV__NOSPEC_H +#define ASM__RISCV__NOSPEC_H static inline bool evaluate_nospec (bool condition) {
@@ -13,7 +13,7 @@ static inline void block_speculation(void) { } -#endif /* _ASM_RISCV_NOSPEC_H */ +#endif /* ASM__RISCV__NOSPEC_H */ /* * Local variables:
xen/arch/riscv/include/asm/p2m.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_P2M_H__ -#define __ASM_RISCV_P2M_H__ +#ifndef ASM__RISCV__P2M_H +#define ASM__RISCV__P2M_H #include <xen/errno.h>
@@ -93,7 +93,7 @@ static inline void p2m_altp2m_check(struct vcpu *v, uint16_t idx) /* Not supported on RISCV. */ } -#endif /* __ASM_RISCV_P2M_H__ */ +#endif /* ASM__RISCV__P2M_H */ /* * Local variables:
xen/arch/riscv/include/asm/page-bits.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __RISCV_PAGE_BITS_H__ -#define __RISCV_PAGE_BITS_H__ +#ifndef ASM__RISCV__PAGE_BITS_H +#define ASM__RISCV__PAGE_BITS_H #define PAGE_SHIFT 12/* 4 KiB Pages */ #define PADDR_BITS 56/* 44-bit PPN */
@@ -16,4 +16,4 @@#define PTE_PPN_SHIFT 10 -#endif /* __RISCV_PAGE_BITS_H__ */ +#endif /* ASM__RISCV__PAGE_BITS_H */
xen/arch/riscv/include/asm/page.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _ASM_RISCV_PAGE_H -#define _ASM_RISCV_PAGE_H +#ifndef ASM__RISCV__PAGE_H +#define ASM__RISCV__PAGE_H #ifndef __ASSEMBLY__
@@ -182,4 +182,4 @@ static inline pte_t pte_from_mfn(mfn_t mfn, unsigned int flags)#endif /* __ASSEMBLY__ */ -#endif /* _ASM_RISCV_PAGE_H */ +#endif /* ASM__RISCV__PAGE_H */
xen/arch/riscv/include/asm/pmap.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef ASM_PMAP_H -#define ASM_PMAP_H +#ifndef ASM__RISCV__PMAP_H +#define ASM__RISCV__PMAP_H #include <xen/bug.h> #include <xen/init.h>
@@ -33,4 +33,4 @@ static inline void __init arch_pmap_unmap(unsigned int slot) flush_tlb_one_local(FIXMAP_ADDR(slot)); } -#endif /* ASM_PMAP_H */ +#endif /* ASM__RISCV__PMAP_H */
xen/arch/riscv/include/asm/processor.h +3 -3
@@ -7,8 +7,8 @@* */ -#ifndef _ASM_RISCV_PROCESSOR_H -#define _ASM_RISCV_PROCESSOR_H +#ifndef ASM__RISCV__PROCESSOR_H +#define ASM__RISCV__PROCESSOR_H #ifndef __ASSEMBLY__
@@ -93,7 +93,7 @@ static inline void sfence_vma(void)#endif /* __ASSEMBLY__ */ -#endif /* _ASM_RISCV_PROCESSOR_H */ +#endif /* ASM__RISCV__PROCESSOR_H */ /* * Local variables:
xen/arch/riscv/include/asm/regs.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ARM_RISCV_REGS_H__ -#define __ARM_RISCV_REGS_H__ +#ifndef ASM__RISCV__REGS_H +#define ASM__RISCV__REGS_H #ifndef __ASSEMBLY__
@@ -17,7 +17,7 @@ static inline bool guest_mode(const struct cpu_user_regs *r)#endif /* __ASSEMBLY__ */ -#endif /* __ARM_RISCV_REGS_H__ */ +#endif /* ASM__RISCV__REGS_H */ /* * Local variables:
xen/arch/riscv/include/asm/riscv_encoding.h +2 -2
@@ -6,8 +6,8 @@* Anup Patel <[email protected]> */ -#ifndef __RISCV_ENCODING_H__ -#define __RISCV_ENCODING_H__ +#ifndef ASM__RISCV__RISCV_ENCODING_H +#define ASM__RISCV__RISCV_ENCODING_H #define _UL (X ) _AC(X, UL)#define _ULL (X ) _AC(X, ULL)
xen/arch/riscv/include/asm/sbi.h +3 -3
@@ -9,8 +9,8 @@* Copyright (c) 2019 Western Digital Corporation or its affiliates. */ -#ifndef __ASM_RISCV_SBI_H__ -#define __ASM_RISCV_SBI_H__ +#ifndef ASM__RISCV__SBI_H +#define ASM__RISCV__SBI_H #include <xen/cpumask.h>
@@ -96,4 +96,4 @@ int sbi_remote_sfence_vma(const cpumask_t *cpu_mask, vaddr_t start,*/ int sbi_init (void ); -#endif /* __ASM_RISCV_SBI_H__ */ +#endif /* ASM__RISCV__SBI_H */
xen/arch/riscv/include/asm/setup.h +3 -3
@@ -1,11 +1,11 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_SETUP_H__ -#define __ASM_RISCV_SETUP_H__ +#ifndef ASM__RISCV__SETUP_H +#define ASM__RISCV__SETUP_H #define max_init_domid (0) -#endif /* __ASM_RISCV_SETUP_H__ */ +#endif /* ASM__RISCV__SETUP_H */ /* * Local variables:
xen/arch/riscv/include/asm/smp.h +2 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_SMP_H -#define __ASM_RISCV_SMP_H +#ifndef ASM__RISCV__SMP_H +#define ASM__RISCV__SMP_H #include <xen/cpumask.h> #include <xen/percpu.h>
xen/arch/riscv/include/asm/spinlock.h +3 -3
@@ -1,5 +1,5 @@ -#ifndef __ASM_RISCV_SPINLOCK_H -#define __ASM_RISCV_SPINLOCK_H +#ifndef ASM__RISCV__SPINLOCK_H +#define ASM__RISCV__SPINLOCK_H #define arch_lock_acquire_barrier () smp_mb()#define arch_lock_release_barrier () smp_mb()
@@ -12,4 +12,4 @@arch_lock_signal (); \ }) -#endif /* __ASM_RISCV_SPINLOCK_H */ +#endif /* ASM__RISCV__SPINLOCK_H */
xen/arch/riscv/include/asm/string.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_RISCV_STRING_H -#define _ASM_RISCV_STRING_H +#ifndef ASM__RISCV__STRING_H +#define ASM__RISCV__STRING_H -#endif /* _ASM_RISCV_STRING_H */ +#endif /* ASM__RISCV__STRING_H */
xen/arch/riscv/include/asm/system.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _ASM_RISCV_SYSTEM_H -#define _ASM_RISCV_SYSTEM_H +#ifndef ASM__RISCV__SYSTEM_H +#define ASM__RISCV__SYSTEM_H #include <xen/stdbool.h>
@@ -78,7 +78,7 @@ static inline bool local_irq_is_enabled(void)#endif /* __ASSEMBLY__ */ -#endif /* _ASM_RISCV_SYSTEM_H */ +#endif /* ASM__RISCV__SYSTEM_H */ /* * Local variables:
xen/arch/riscv/include/asm/time.h +3 -3
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_RISCV_TIME_H__ -#define __ASM_RISCV_TIME_H__ +#ifndef ASM__RISCV__TIME_H +#define ASM__RISCV__TIME_H #include <xen/bug.h> #include <asm/csr.h>
@@ -19,7 +19,7 @@ static inline cycles_t get_cycles(void) return csr_read(CSR_TIME); } -#endif /* __ASM_RISCV_TIME_H__ */ +#endif /* ASM__RISCV__TIME_H */ /* * Local variables:
xen/arch/riscv/include/asm/traps.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_TRAPS_H__ -#define __ASM_TRAPS_H__ +#ifndef ASM__RISCV__TRAPS_H +#define ASM__RISCV__TRAPS_H #include <asm/processor.h>
@@ -13,4 +13,4 @@ void trap_init(void);#endif /* __ASSEMBLY__ */ -#endif /* __ASM_TRAPS_H__ */ +#endif /* ASM__RISCV__TRAPS_H */
xen/arch/riscv/include/asm/types.h +3 -3
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __RISCV_TYPES_H__ -#define __RISCV_TYPES_H__ +#ifndef ASM__RISCV__TYPES_H +#define ASM__RISCV__TYPES_H #if defined(CONFIG_RISCV_32 )
@@ -25,7 +25,7 @@ typedef u64 register_t;#endif -#endif /* __RISCV_TYPES_H__ */ +#endif /* ASM__RISCV__TYPES_H */ /* * Local variables: * mode: C
Signature · 1 line
2.34.1
PATCH 17/20 xen: Update header guards - Scheduling
In reply to Frediano ZiglioUpdated headers related to scheduling.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/common/sched/private.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
xen/common/sched/private.h +3 -3
@@ -5,8 +5,8 @@* Portions by Mark Williamson are (C) 2004 Intel Research Cambridge */ -#ifndef __XEN_SCHED_IF_H__ -#define __XEN_SCHED_IF_H__ +#ifndef COMMON__SCHED__PRIVATE_H +#define COMMON__SCHED__PRIVATE_H #include <xen/err.h> #include <xen/list.h>
@@ -666,4 +666,4 @@ void cpupool_put(struct cpupool *pool);int cpupool_add_domain (struct domain *d,unsigned int poolid);void cpupool_rm_domain (struct domain *d); -#endif /* __XEN_SCHED_IF_H__ */ +#endif /* COMMON__SCHED__PRIVATE_H */
Signature · 1 line
2.34.1
PATCH 18/20 xen: Update header guards - VM event, mem access, monitor
In reply to Frediano ZiglioUpdated headers related to VM event, mem access AND monitor.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/arch/x86/include/asm/hvm/monitor.h | 6 +++--- xen/arch/x86/include/asm/hvm/vm_event.h | 6 +++--- xen/arch/x86/include/asm/mem_access.h | 6 +++--- xen/arch/x86/include/asm/monitor.h | 6 +++--- xen/arch/x86/include/asm/vm_event.h | 6 +++--- xen/include/asm-generic/monitor.h | 6 +++--- xen/include/asm-generic/vm_event.h | 6 +++--- xen/include/public/vm_event.h | 6 +++--- xen/include/xen/mem_access.h | 6 +++--- xen/include/xen/monitor.h | 6 +++--- xen/include/xen/vm_event.h | 6 +++--- 11 files changed, 33 insertions(+), 33 deletions(-)
xen/arch/x86/include/asm/hvm/monitor.h +3 -3
@@ -5,8 +5,8 @@* Arch-specific hardware virtual machine monitor abstractions. */ -#ifndef __ASM_X86_HVM_MONITOR_H__ -#define __ASM_X86_HVM_MONITOR_H__ +#ifndef ASM__X86__HVM__MONITOR_H +#define ASM__X86__HVM__MONITOR_H #include <public/vm_event.h>
@@ -46,7 +46,7 @@ int hvm_monitor_vmexit(unsigned long exit_reason,int hvm_monitor_io (unsigned int port,unsigned int bytes,bool in,bool str); -#endif /* __ASM_X86_HVM_MONITOR_H__ */ +#endif /* ASM__X86__HVM__MONITOR_H */ /* * Local variables:
xen/arch/x86/include/asm/hvm/vm_event.h +3 -3
@@ -5,12 +5,12 @@* Hardware virtual machine vm_event abstractions. */ -#ifndef __ASM_X86_HVM_VM_EVENT_H__ -#define __ASM_X86_HVM_VM_EVENT_H__ +#ifndef ASM__X86__HVM__VM_EVENT_H +#define ASM__X86__HVM__VM_EVENT_H void hvm_vm_event_do_resume (struct vcpu *v); -#endif /* __ASM_X86_HVM_VM_EVENT_H__ */ +#endif /* ASM__X86__HVM__VM_EVENT_H */ /* * Local variables:
xen/arch/x86/include/asm/mem_access.h +3 -3
@@ -11,8 +11,8 @@* Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ -#ifndef __ASM_X86_MEM_ACCESS_H__ -#define __ASM_X86_MEM_ACCESS_H__ +#ifndef ASM__X86__MEM_ACCESS_H +#define ASM__X86__MEM_ACCESS_H /* * Setup vm_event request based on the access (gla is -1ull if not available).
@@ -44,7 +44,7 @@ int p2m_set_suppress_ve_multi(struct domain *d,int p2m_get_suppress_ve (struct domain *d,gfn_t gfn,bool *suppress_ve,unsigned int altp2m_idx); -#endif /*__ASM_X86_MEM_ACCESS_H__ */ +#endif /*ASM__X86__MEM_ACCESS_H */ /* * Local variables:
xen/arch/x86/include/asm/monitor.h +3 -3
@@ -19,8 +19,8 @@* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __ASM_X86_MONITOR_H__ -#define __ASM_X86_MONITOR_H__ +#ifndef ASM__X86__MONITOR_H +#define ASM__X86__MONITOR_H #include <xen/sched.h>
@@ -126,4 +126,4 @@ static inline void arch_monitor_cleanup_domain(struct domain *d) {}bool monitored_msr (const struct domain *d,u32 msr);bool monitored_msr_onchangeonly (const struct domain *d,u32 msr); -#endif /* __ASM_X86_MONITOR_H__ */ +#endif /* ASM__X86__MONITOR_H */
xen/arch/x86/include/asm/vm_event.h +3 -3
@@ -5,8 +5,8 @@* Copyright (c) 2015 Tamas K Lengyel ([email protected]) */ -#ifndef __ASM_X86_VM_EVENT_H__ -#define __ASM_X86_VM_EVENT_H__ +#ifndef ASM__X86__VM_EVENT_H +#define ASM__X86__VM_EVENT_H #include <xen/sched.h> #include <public/vm_event.h>
@@ -45,4 +45,4 @@ void vm_event_sync_event(struct vcpu *v, bool value);void vm_event_reset_vmtrace (struct vcpu *v); -#endif /* __ASM_X86_VM_EVENT_H__ */ +#endif /* ASM__X86__VM_EVENT_H */
xen/include/asm-generic/monitor.h +3 -3
@@ -9,8 +9,8 @@* */ -#ifndef __ASM_GENERIC_MONITOR_H__ -#define __ASM_GENERIC_MONITOR_H__ +#ifndef ASM_GENERIC__MONITOR_H +#define ASM_GENERIC__MONITOR_H #include <xen/errno.h> #include <xen/lib.h>
@@ -52,7 +52,7 @@ void arch_monitor_cleanup_domain(struct domain *d) /* No arch-specific domain cleanup on GENERIC. */ } -#endif /* __ASM_GENERIC_MONITOR_H__ */ +#endif /* ASM_GENERIC__MONITOR_H */ /* * Local variables:
xen/include/asm-generic/vm_event.h +3 -3
@@ -5,8 +5,8 @@* Copyright (c) 2015 Tamas K Lengyel ([email protected]) */ -#ifndef __ASM_GENERIC_VM_EVENT_H__ -#define __ASM_GENERIC_VM_EVENT_H__ +#ifndef ASM_GENERIC__VM_EVENT_H +#define ASM_GENERIC__VM_EVENT_H #include <xen/sched.h> #include <public/vm_event.h>
@@ -52,4 +52,4 @@ void vm_event_reset_vmtrace(struct vcpu *v) /* Nothing to do. */ } -#endif /* __ASM_GENERIC_VM_EVENT_H__ */ +#endif /* ASM_GENERIC__VM_EVENT_H */
xen/include/public/vm_event.h +3 -3
@@ -7,8 +7,8 @@* Copyright (c) 2009 by Citrix Systems, Inc. (Patrick Colp) */ -#ifndef _XEN_PUBLIC_VM_EVENT_H -#define _XEN_PUBLIC_VM_EVENT_H +#ifndef PUBLIC__VM_EVENT_H +#define PUBLIC__VM_EVENT_H #include "xen.h"
@@ -440,7 +440,7 @@ typedef struct vm_event_st {DEFINE_RING_TYPES (vm_event, vm_event_request_t, vm_event_response_t);#endif /* defined(__XEN__) || defined(__XEN_TOOLS__) */ -#endif /* _XEN_PUBLIC_VM_EVENT_H */ +#endif /* PUBLIC__VM_EVENT_H */ /* * Local variables:
xen/include/xen/mem_access.h +3 -3
@@ -19,8 +19,8 @@* along with this program; If not, see <http://www.gnu.org/licenses/>. */ -#ifndef _XEN_MEM_ACCESS_H -#define _XEN_MEM_ACCESS_H +#ifndef XEN__MEM_ACCESS_H +#define XEN__MEM_ACCESS_H #include <xen/types.h> #include <xen/mm.h>
@@ -105,7 +105,7 @@ int mem_access_memop(unsigned long cmd, }#endif /* CONFIG_MEM_ACCESS */ -#endif /* _XEN_MEM_ACCESS_H */ +#endif /* XEN__MEM_ACCESS_H */ /* * Local variables:
xen/include/xen/monitor.h +3 -3
@@ -19,8 +19,8 @@* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __XEN_MONITOR_H__ -#define __XEN_MONITOR_H__ +#ifndef XEN__MONITOR_H +#define XEN__MONITOR_H #include <public/vm_event.h>
@@ -32,4 +32,4 @@ void monitor_guest_request(void);int monitor_traps (struct vcpu *v,bool sync,vm_event_request_t *req); -#endif /* __XEN_MONITOR_H__ */ +#endif /* XEN__MONITOR_H */
xen/include/xen/vm_event.h +3 -3
@@ -20,8 +20,8 @@*/ -#ifndef __VM_EVENT_H__ -#define __VM_EVENT_H__ +#ifndef XEN__VM_EVENT_H +#define XEN__VM_EVENT_H #include <xen/sched.h> #include <public/vm_event.h>
@@ -98,7 +98,7 @@ void vm_event_set_registers(struct vcpu *v, vm_event_response_t *rsp);void vm_event_monitor_next_interrupt (struct vcpu *v); -#endif /* __VM_EVENT_H__ */ +#endif /* XEN__VM_EVENT_H */ /* * Local variables:
Signature · 1 line
2.34.1
PATCH 19/20 xen: Update header guards - VPCI
In reply to Frediano ZiglioUpdated headers related to VPCI.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/include/xen/vpci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/xen/vpci.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef _XEN_VPCI_H_ -#define _XEN_VPCI_H_ +#ifndef XEN__VPCI_H +#define XEN__VPCI_H #ifdef CONFIG_HAS_VPCI
Signature · 1 line
2.34.1
PATCH 20/20 xen: Update header guards - XSM/Flask
In reply to Frediano ZiglioUpdated headers related to XSM/Flask.
Signed-off-by Frediano Ziglio <[email protected]>
--- xen/include/xsm/dummy.h | 6 +++--- xen/include/xsm/xsm.h | 4 ++-- xen/xsm/flask/include/avc.h | 6 +++--- xen/xsm/flask/include/avc_ss.h | 6 +++--- xen/xsm/flask/include/conditional.h | 4 ++-- xen/xsm/flask/include/objsec.h | 6 +++--- xen/xsm/flask/include/security.h | 6 +++--- xen/xsm/flask/private.h | 6 +++--- xen/xsm/flask/ss/avtab.h | 6 +++--- xen/xsm/flask/ss/conditional.h | 6 +++--- xen/xsm/flask/ss/constraint.h | 6 +++--- xen/xsm/flask/ss/context.h | 6 +++--- xen/xsm/flask/ss/ebitmap.h | 6 +++--- xen/xsm/flask/ss/hashtab.h | 4 ++-- xen/xsm/flask/ss/mls.h | 4 ++-- xen/xsm/flask/ss/mls_types.h | 6 +++--- xen/xsm/flask/ss/policydb.h | 6 +++--- xen/xsm/flask/ss/services.h | 6 +++--- xen/xsm/flask/ss/sidtab.h | 6 +++--- xen/xsm/flask/ss/symtab.h | 6 +++--- 20 files changed, 56 insertions(+), 56 deletions(-)
xen/include/xsm/dummy.h +3 -3
@@ -15,8 +15,8 @@* value of action. */ -#ifndef __XEN_XSM_DUMMY_H__ -#define __XEN_XSM_DUMMY_H__ +#ifndef XSM__DUMMY_H +#define XSM__DUMMY_H #include <xen/sched.h> #include <xsm/xsm.h>
@@ -847,4 +847,4 @@ static XSM_INLINE int cf_check xsm_domain_resource_map( return xsm_default_action(action, current->domain, d); } -#endif /* __XEN_XSM_DUMMY_H__ */ +#endif /* XSM__DUMMY_H */
xen/include/xsm/xsm.h +2 -2
@@ -12,8 +12,8 @@* as published by the Free Software Foundation. */ -#ifndef __XSM_H__ -#define __XSM_H__ +#ifndef XSM__XSM_H +#define XSM__XSM_H #include <xen/alternative-call.h> #include <xen/sched.h>
xen/xsm/flask/include/avc.h +3 -3
@@ -6,8 +6,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _FLASK_AVC_H_ -#define _FLASK_AVC_H_ +#ifndef XSM__FLASK__INCLUDE__AVC_H +#define XSM__FLASK__INCLUDE__AVC_H #include <xen/errno.h> #include <xen/lib.h>
@@ -100,5 +100,5 @@ extern unsigned int avc_cache_threshold; DECLARE_PER_CPU(struct avc_cache_stats, avc_cache_stats);#endif -#endif /* _FLASK_AVC_H_ */ +#endif /* XSM__FLASK__INCLUDE__AVC_H */
xen/xsm/flask/include/avc_ss.h +3 -3
@@ -3,8 +3,8 @@* * Author : Stephen Smalley, <[email protected]> */ -#ifndef _FLASK_AVC_SS_H_ -#define _FLASK_AVC_SS_H_ +#ifndef XSM__FLASK__INCLUDE__AVC_SS_H +#define XSM__FLASK__INCLUDE__AVC_SS_H #include "flask.h"
@@ -25,5 +25,5 @@ struct selinux_class_perm {extern const struct selinux_class_perm selinux_class_perm; -#endif /* _FLASK_AVC_SS_H_ */ +#endif /* XSM__FLASK__INCLUDE__AVC_SS_H */
xen/xsm/flask/include/conditional.h +2 -2
@@ -10,8 +10,8 @@* the Free Software Foundation, version 2. */ -#ifndef _FLASK_CONDITIONAL_H_ -#define _FLASK_CONDITIONAL_H_ +#ifndef XSM__FLASK__INCLUDE__CONDITIONAL_H +#define XSM__FLASK__INCLUDE__CONDITIONAL_H #include <xen/types.h>
xen/xsm/flask/include/objsec.h +3 -3
@@ -10,8 +10,8 @@* as published by the Free Software Foundation. */ -#ifndef _FLASK_OBJSEC_H_ -#define _FLASK_OBJSEC_H_ +#ifndef XSM__FLASK__INCLUDE__OBJSEC_H +#define XSM__FLASK__INCLUDE__OBJSEC_H #include <xen/sched.h> #include "flask.h"
@@ -23,4 +23,4 @@ struct domain_security_struct { u32 target_sid; /* SID for device model target domain */ }; -#endif /* _FLASK_OBJSEC_H_ */ +#endif /* XSM__FLASK__INCLUDE__OBJSEC_H */
xen/xsm/flask/include/security.h +3 -3
@@ -7,8 +7,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _FLASK_SECURITY_H_ -#define _FLASK_SECURITY_H_ +#ifndef XSM__FLASK__INCLUDE__SECURITY_H +#define XSM__FLASK__INCLUDE__SECURITY_H #include "flask.h"
@@ -107,4 +107,4 @@ int security_ocontext_add(u32 ocontext, unsigned long low,int security_ocontext_del (u32 ocontext,unsigned long low,unsigned long high);int security_devicetree_setlabel (char *path,u32 sid); -#endif /* _FLASK_SECURITY_H_ */ +#endif /* XSM__FLASK__INCLUDE__SECURITY_H */
xen/xsm/flask/private.h +3 -3
@@ -1,9 +1,9 @@ -#ifndef XSM_FLASK_PRIVATE -#define XSM_FLASK_PRIVATE +#ifndef XSM__FLASK__PRIVATE_H +#define XSM__FLASK__PRIVATE_H #include <public/xen.h> long cf_check do_flask_op (XEN_GUEST_HANDLE_PARAM (void ) u_flask_op); int cf_check compat_flask_op(XEN_GUEST_HANDLE_PARAM(void) u_flask_op); -#endif /* XSM_FLASK_PRIVATE */ +#endif /* XSM__FLASK__PRIVATE_H */
xen/xsm/flask/ss/avtab.h +3 -3
@@ -23,8 +23,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _SS_AVTAB_H_ -#define _SS_AVTAB_H_ +#ifndef XSM__FLASK__SS__AVTAB_H +#define XSM__FLASK__SS__AVTAB_H struct avtab_key { u16 source_type; /* source type */
@@ -87,5 +87,5 @@ struct avtab_node *avtab_search_node_next(struct avtab_node *node,#define MAX_AVTAB_HASH_MASK (MAX_AVTAB_HASH_BUCKETS-1)#define MAX_AVTAB_SIZE MAX_AVTAB_HASH_BUCKETS -#endif /* _SS_AVTAB_H_ */ +#endif /* XSM__FLASK__SS__AVTAB_H */
xen/xsm/flask/ss/conditional.h +3 -3
@@ -7,8 +7,8 @@* the Free Software Foundation, version 2. */ -#ifndef _CONDITIONAL_H_ -#define _CONDITIONAL_H_ +#ifndef XSM__FLASK__SS__CONDITIONAL_H +#define XSM__FLASK__SS__CONDITIONAL_H #include "avtab.h" #include "symtab.h"
@@ -74,4 +74,4 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key, struct av_decisiint evaluate_cond_node (struct policydb *p,struct cond_node *node); -#endif /* _CONDITIONAL_H_ */ +#endif /* XSM__FLASK__SS__CONDITIONAL_H */
xen/xsm/flask/ss/constraint.h +3 -3
@@ -12,8 +12,8 @@* * Author : Stephen Smalley, <[email protected]> */ -#ifndef _SS_CONSTRAINT_H_ -#define _SS_CONSTRAINT_H_ +#ifndef XSM__FLASK__SS__CONSTRAINT_H +#define XSM__FLASK__SS__CONSTRAINT_H #include "ebitmap.h"
@@ -58,4 +58,4 @@ struct constraint_node { struct constraint_node *next; /* next constraint */ }; -#endif /* _SS_CONSTRAINT_H_ */ +#endif /* XSM__FLASK__SS__CONSTRAINT_H */
xen/xsm/flask/ss/context.h +3 -3
@@ -15,8 +15,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _SS_CONTEXT_H_ -#define _SS_CONTEXT_H_ +#ifndef XSM__FLASK__SS__CONTEXT_H +#define XSM__FLASK__SS__CONTEXT_H #include "ebitmap.h" #include "mls_types.h"
@@ -129,5 +129,5 @@ static inline int context_cmp(struct context *c1, struct context *c2) mls_context_cmp(c1, c2)); } -#endif /* _SS_CONTEXT_H_ */ +#endif /* XSM__FLASK__SS__CONTEXT_H */
xen/xsm/flask/ss/ebitmap.h +3 -3
@@ -11,8 +11,8 @@* * Author : Stephen Smalley, <[email protected]> */ -#ifndef _SS_EBITMAP_H_ -#define _SS_EBITMAP_H_ +#ifndef XSM__FLASK__SS__EBITMAP_H +#define XSM__FLASK__SS__EBITMAP_H #include <xen/bitmap.h> #include <xen/bug.h>
@@ -127,4 +127,4 @@ int ebitmap_set_bit(struct ebitmap *e, unsigned long bit, int value);void ebitmap_destroy (struct ebitmap *e);int ebitmap_read (struct ebitmap *e,void *fp); -#endif /* _SS_EBITMAP_H_ */ +#endif /* XSM__FLASK__SS__EBITMAP_H */
xen/xsm/flask/ss/hashtab.h +2 -2
@@ -7,8 +7,8 @@* * Author : Stephen Smalley, <[email protected]> */ -#ifndef _SS_HASHTAB_H_ -#define _SS_HASHTAB_H_ +#ifndef XSM__FLASK__SS__HASHTAB_H +#define XSM__FLASK__SS__HASHTAB_H #define HASHTAB_MAX_NODES 0xffffffff
xen/xsm/flask/ss/mls.h +2 -2
@@ -11,8 +11,8 @@* Copyright (C) 2004-2006 Trusted Computer Solutions, Inc. */ -#ifndef _SS_MLS_H_ -#define _SS_MLS_H_ +#ifndef XSM__FLASK__SS__MLS_H +#define XSM__FLASK__SS__MLS_H #include "context.h" #include "policydb.h"
xen/xsm/flask/ss/mls_types.h +3 -3
@@ -13,8 +13,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _SS_MLS_TYPES_H_ -#define _SS_MLS_TYPES_H_ +#ifndef XSM__FLASK__SS__MLS_TYPES_H +#define XSM__FLASK__SS__MLS_TYPES_H #include "security.h"
@@ -55,4 +55,4 @@ static inline int mls_level_dom(struct mls_level *l1, struct mls_level *l2) (mls_level_dom (&(r2).level[0 ], &(r1).level[0 ]) && \ mls_level_dom(&(r1).level[1], &(r2).level[1])) -#endif /* _SS_MLS_TYPES_H_ */ +#endif /* XSM__FLASK__SS__MLS_TYPES_H */
xen/xsm/flask/ss/policydb.h +3 -3
@@ -23,8 +23,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _SS_POLICYDB_H_ -#define _SS_POLICYDB_H_ +#ifndef XSM__FLASK__SS__POLICYDB_H +#define XSM__FLASK__SS__POLICYDB_H #include "symtab.h" #include "avtab.h"
@@ -292,5 +292,5 @@ static inline int next_entry(void *buf, struct policy_file *fp, size_t bytes) return 0; } -#endif /* _SS_POLICYDB_H_ */ +#endif /* XSM__FLASK__SS__POLICYDB_H */
xen/xsm/flask/ss/services.h +3 -3
@@ -3,13 +3,13 @@* * Author : Stephen Smalley, <[email protected]> */ -#ifndef _SS_SERVICES_H_ -#define _SS_SERVICES_H_ +#ifndef XSM__FLASK__SS__SERVICES_H +#define XSM__FLASK__SS__SERVICES_H #include "policydb.h" #include "sidtab.h" extern struct policydb policydb; -#endif /* _SS_SERVICES_H_ */ +#endif /* XSM__FLASK__SS__SERVICES_H */
xen/xsm/flask/ss/sidtab.h +3 -3
@@ -7,8 +7,8 @@/* Ported to Xen 3.0, George Coker, <[email protected]> */ -#ifndef _SS_SIDTAB_H_ -#define _SS_SIDTAB_H_ +#ifndef XSM__FLASK__SS__SIDTAB_H +#define XSM__FLASK__SS__SIDTAB_H #include "context.h" #include <xen/spinlock.h>
@@ -50,4 +50,4 @@ void sidtab_destroy(struct sidtab *s);void sidtab_set (struct sidtab *dst,struct sidtab *src);void sidtab_shutdown (struct sidtab *s); -#endif /* _SS_SIDTAB_H_ */ +#endif /* XSM__FLASK__SS__SIDTAB_H */
xen/xsm/flask/ss/symtab.h +3 -3
@@ -6,8 +6,8 @@* * Author : Stephen Smalley, <[email protected]> */ -#ifndef _SS_SYMTAB_H_ -#define _SS_SYMTAB_H_ +#ifndef XSM__FLASK__SS__SYMTAB_H +#define XSM__FLASK__SS__SYMTAB_H #include "hashtab.h"
@@ -18,6 +18,6 @@ struct symtab {int symtab_init (struct symtab *s,unsigned int size); -#endif /* _SS_SYMTAB_H_ */ +#endif /* XSM__FLASK__SS__SYMTAB_H */
Signature · 1 line
2.34.1
Quoted 7 lines · Frediano Ziglio
With the help of some script I and manual checking I updated all header guards.
As the changes are pretty large patch was split based on maintainers to reduce mail spamming.
...
CI is failing badly, I need to do more thoroughly testing.
Sorry for the spam.
Frediano