blob: 6b792d080eee8f70ce27b5e7c726a98516560090 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Ingo Molnar9b5609f2008-02-14 09:41:09 +01002#ifndef _LINUX_STACKPROTECTOR_H
3#define _LINUX_STACKPROTECTOR_H 1
4
Ingo Molnar42059422008-02-14 09:44:08 +01005#include <linux/compiler.h>
6#include <linux/sched.h>
7#include <linux/random.h>
8
Linus Torvalds050e9ba2018-06-14 12:21:18 +09009#ifdef CONFIG_STACKPROTECTOR
Ingo Molnar9b5609f2008-02-14 09:41:09 +010010# include <asm/stackprotector.h>
Ingo Molnar18aa8bb2008-02-14 09:42:02 +010011#else
12static inline void boot_init_stack_canary(void)
13{
14}
Ingo Molnar9b5609f2008-02-14 09:41:09 +010015#endif
16
17#endif