1*b9f174c8SOmar Sandoval /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*b9f174c8SOmar Sandoval /* Copyright (c) Meta Platforms, Inc. and affiliates. */ 3*b9f174c8SOmar Sandoval 4*b9f174c8SOmar Sandoval #ifndef _ORC_HEADER_H 5*b9f174c8SOmar Sandoval #define _ORC_HEADER_H 6*b9f174c8SOmar Sandoval 7*b9f174c8SOmar Sandoval #include <linux/types.h> 8*b9f174c8SOmar Sandoval #include <linux/compiler.h> 9*b9f174c8SOmar Sandoval #include <asm/orc_hash.h> 10*b9f174c8SOmar Sandoval 11*b9f174c8SOmar Sandoval /* 12*b9f174c8SOmar Sandoval * The header is currently a 20-byte hash of the ORC entry definition; see 13*b9f174c8SOmar Sandoval * scripts/orc_hash.sh. 14*b9f174c8SOmar Sandoval */ 15*b9f174c8SOmar Sandoval #define ORC_HEADER \ 16*b9f174c8SOmar Sandoval __used __section(".orc_header") __aligned(4) \ 17*b9f174c8SOmar Sandoval static const u8 orc_header[] = { ORC_HASH } 18*b9f174c8SOmar Sandoval 19*b9f174c8SOmar Sandoval #endif /* _ORC_HEADER_H */ 20