tree-wide: use '#pragma once' for header guard
Follow-up for a2b635eb39
(#9959).
This commit is contained in:
parent
eaaec6cc12
commit
7a3c343cb8
|
@ -2,8 +2,7 @@
|
||||||
// MurmurHash2 was written by Austin Appleby, and is placed in the public
|
// MurmurHash2 was written by Austin Appleby, and is placed in the public
|
||||||
// domain. The author hereby disclaims copyright to this source code.
|
// domain. The author hereby disclaims copyright to this source code.
|
||||||
|
|
||||||
#ifndef _MURMURHASH2_H_
|
#pragma once
|
||||||
#define _MURMURHASH2_H_
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Platform-specific functions and macros
|
// Platform-specific functions and macros
|
||||||
|
@ -29,5 +28,3 @@ typedef unsigned __int64 uint64_t;
|
||||||
uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed );
|
uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed );
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#endif // _MURMURHASH2_H_
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef _LINUX_SECUREBITS_H
|
#pragma once
|
||||||
#define _LINUX_SECUREBITS_H 1
|
|
||||||
|
|
||||||
/* This is minimal version of Linux' linux/securebits.h header file,
|
/* This is minimal version of Linux' linux/securebits.h header file,
|
||||||
* which is licensed GPL2 */
|
* which is licensed GPL2 */
|
||||||
|
@ -41,5 +40,3 @@
|
||||||
issecure_mask(SECURE_NO_SETUID_FIXUP) | \
|
issecure_mask(SECURE_NO_SETUID_FIXUP) | \
|
||||||
issecure_mask(SECURE_KEEP_CAPS))
|
issecure_mask(SECURE_KEEP_CAPS))
|
||||||
#define SECURE_ALL_LOCKS (SECURE_ALL_BITS << 1)
|
#define SECURE_ALL_LOCKS (SECURE_ALL_BITS << 1)
|
||||||
|
|
||||||
#endif /* !_LINUX_SECUREBITS_H */
|
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#ifndef SPARSE_ENDIAN_H
|
#pragma once
|
||||||
#define SPARSE_ENDIAN_H
|
|
||||||
|
|
||||||
#include <byteswap.h>
|
#include <byteswap.h>
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
|
@ -89,5 +88,3 @@ static inline uint64_t be64toh(be64_t value) { return bswap_64_on_le((uint64_t _
|
||||||
|
|
||||||
#undef __sd_bitwise
|
#undef __sd_bitwise
|
||||||
#undef __sd_force
|
#undef __sd_force
|
||||||
|
|
||||||
#endif /* SPARSE_ENDIAN_H */
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_CONSOLE_H
|
|
||||||
#define __SDBOOT_CONSOLE_H
|
|
||||||
|
|
||||||
#define EFI_SHIFT_STATE_VALID 0x80000000
|
#define EFI_SHIFT_STATE_VALID 0x80000000
|
||||||
#define EFI_RIGHT_CONTROL_PRESSED 0x00000004
|
#define EFI_RIGHT_CONTROL_PRESSED 0x00000004
|
||||||
|
@ -24,4 +22,3 @@ enum console_mode_change_type {
|
||||||
|
|
||||||
EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait);
|
EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait);
|
||||||
EFI_STATUS console_set_mode(UINTN *mode, enum console_mode_change_type how);
|
EFI_STATUS console_set_mode(UINTN *mode, enum console_mode_change_type how);
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_DISK_H
|
|
||||||
#define __SDBOOT_DISK_H
|
|
||||||
|
|
||||||
EFI_STATUS disk_get_part_uuid(EFI_HANDLE *handle, CHAR16 uuid[37]);
|
EFI_STATUS disk_get_part_uuid(EFI_HANDLE *handle, CHAR16 uuid[37]);
|
||||||
#endif
|
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
* Copyright © 2013 Intel Corporation
|
* Copyright © 2013 Intel Corporation
|
||||||
* Authored by Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
|
* Authored by Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_GRAPHICS_H
|
|
||||||
#define __SDBOOT_GRAPHICS_H
|
|
||||||
|
|
||||||
EFI_STATUS graphics_mode(BOOLEAN on);
|
EFI_STATUS graphics_mode(BOOLEAN on);
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_kernel_H
|
|
||||||
#define __SDBOOT_kernel_H
|
|
||||||
|
|
||||||
EFI_STATUS linux_exec(EFI_HANDLE *image,
|
EFI_STATUS linux_exec(EFI_HANDLE *image,
|
||||||
CHAR8 *cmdline, UINTN cmdline_size,
|
CHAR8 *cmdline, UINTN cmdline_size,
|
||||||
UINTN linux_addr,
|
UINTN linux_addr,
|
||||||
UINTN initrd_addr, UINTN initrd_size, BOOLEAN secure);
|
UINTN initrd_addr, UINTN initrd_size, BOOLEAN secure);
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
#ifndef __SDBOOT_MEASURE_H
|
#pragma once
|
||||||
#define __SDBOOT_MEASURE_H
|
|
||||||
|
|
||||||
EFI_STATUS tpm_log_event(UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHAR16 *description);
|
EFI_STATUS tpm_log_event(UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHAR16 *description);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_PEFILE_H
|
|
||||||
#define __SDBOOT_PEFILE_H
|
|
||||||
|
|
||||||
EFI_STATUS pe_memory_locate_sections(CHAR8 *base,
|
EFI_STATUS pe_memory_locate_sections(CHAR8 *base,
|
||||||
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
|
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
|
||||||
EFI_STATUS pe_file_locate_sections(EFI_FILE *dir, CHAR16 *path,
|
EFI_STATUS pe_file_locate_sections(EFI_FILE *dir, CHAR16 *path,
|
||||||
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
|
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
|
||||||
#endif
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
* Copyright © 2012 <James.Bottomley@HansenPartnership.com>
|
* Copyright © 2012 <James.Bottomley@HansenPartnership.com>
|
||||||
* https://github.com/mjg59/efitools
|
* https://github.com/mjg59/efitools
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_SHIM_H
|
|
||||||
#define __SDBOOT_SHIM_H
|
|
||||||
|
|
||||||
BOOLEAN shim_loaded(void);
|
BOOLEAN shim_loaded(void);
|
||||||
|
|
||||||
|
@ -18,5 +16,3 @@ BOOLEAN secure_boot_enabled(void);
|
||||||
EFI_STATUS security_policy_install(void);
|
EFI_STATUS security_policy_install(void);
|
||||||
|
|
||||||
EFI_STATUS security_policy_uninstall(void);
|
EFI_STATUS security_policy_uninstall(void);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_SPLASH_H
|
|
||||||
#define __SDBOOT_SPLASH_H
|
|
||||||
|
|
||||||
EFI_STATUS graphics_splash(UINT8 *content, UINTN len, const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background);
|
EFI_STATUS graphics_splash(UINT8 *content, UINTN len, const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background);
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __SDBOOT_UTIL_H
|
|
||||||
#define __SDBOOT_UTIL_H
|
|
||||||
|
|
||||||
#include <efi.h>
|
#include <efi.h>
|
||||||
#include <efilib.h>
|
#include <efilib.h>
|
||||||
|
@ -39,5 +37,3 @@ static inline void FreePoolp(void *p) {
|
||||||
|
|
||||||
#define _cleanup_(x) __attribute__((cleanup(x)))
|
#define _cleanup_(x) __attribute__((cleanup(x)))
|
||||||
#define _cleanup_freepool_ _cleanup_(FreePoolp)
|
#define _cleanup_freepool_ _cleanup_(FreePoolp)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||||
|
#pragma once
|
||||||
#ifndef __fsprgh__
|
|
||||||
#define __fsprgh__
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fsprg v0.1 - (seekable) forward-secure pseudorandom generator
|
* fsprg v0.1 - (seekable) forward-secure pseudorandom generator
|
||||||
|
@ -62,5 +60,3 @@ void FSPRG_GetKey(const void *state, void *key, size_t keylen, uint32_t idx);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
* Version: @(#)initreq.h 1.28 31-Mar-2004 MvS
|
* Version: @(#)initreq.h 1.28 31-Mar-2004 MvS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _INITREQ_H
|
#pragma once
|
||||||
#define _INITREQ_H
|
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
|
@ -72,5 +71,3 @@ struct init_request {
|
||||||
char data[368];
|
char data[368];
|
||||||
} i;
|
} i;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue