blob: 03696c729fb4feeff3fc597f0dfc55304d8a8692 [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
Ingo Molnar9b5609f2008-02-14 09:41:09 +01009#ifdef CONFIG_CC_STACKPROTECTOR
10# 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