1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_STACKPROTECTOR_H
3 #define _LINUX_STACKPROTECTOR_H 1
5 #include <linux/compiler.h>
6 #include <linux/sched.h>
7 #include <linux/random.h>
9 #if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH)
10 # include <asm/stackprotector.h>
12 static inline void boot_init_stack_canary(void)