Ingo Molnar | 9b5609fd | 2008-02-14 09:41:09 +0100 | [diff] [blame] | 1 | #ifndef _LINUX_STACKPROTECTOR_H |
| 2 | #define _LINUX_STACKPROTECTOR_H 1 |
| 3 | |
Ingo Molnar | 4205942 | 2008-02-14 09:44:08 +0100 | [diff] [blame] | 4 | #include <linux/compiler.h> |
| 5 | #include <linux/sched.h> |
| 6 | #include <linux/random.h> |
| 7 | |
Ingo Molnar | 9b5609fd | 2008-02-14 09:41:09 +0100 | [diff] [blame] | 8 | #ifdef CONFIG_CC_STACKPROTECTOR |
| 9 | # include <asm/stackprotector.h> |
Ingo Molnar | 18aa8bb | 2008-02-14 09:42:02 +0100 | [diff] [blame] | 10 | #else |
| 11 | static inline void boot_init_stack_canary(void) |
| 12 | { |
| 13 | } |
Ingo Molnar | 9b5609fd | 2008-02-14 09:41:09 +0100 | [diff] [blame] | 14 | #endif |
| 15 | |
| 16 | #endif |