Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ingo Molnar | 9b5609f | 2008-02-14 09:41:09 +0100 | [diff] [blame] | 2 | #ifndef _LINUX_STACKPROTECTOR_H |
| 3 | #define _LINUX_STACKPROTECTOR_H 1 |
| 4 | |
Ingo Molnar | 4205942 | 2008-02-14 09:44:08 +0100 | [diff] [blame] | 5 | #include <linux/compiler.h> |
| 6 | #include <linux/sched.h> |
| 7 | #include <linux/random.h> |
| 8 | |
Amit Daniel Kachhap | 2832158 | 2020-03-13 14:34:57 +0530 | [diff] [blame] | 9 | #if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH) |
Ingo Molnar | 9b5609f | 2008-02-14 09:41:09 +0100 | [diff] [blame] | 10 | # include <asm/stackprotector.h> |
Ingo Molnar | 18aa8bb | 2008-02-14 09:42:02 +0100 | [diff] [blame] | 11 | #else |
| 12 | static inline void boot_init_stack_canary(void) |
| 13 | { |
| 14 | } |
Ingo Molnar | 9b5609f | 2008-02-14 09:41:09 +0100 | [diff] [blame] | 15 | #endif |
| 16 | |
| 17 | #endif |