blob: 4c678c4fec58e5f8ecb1f6184c41f0fbd2bf54d0 [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
Amit Daniel Kachhap28321582020-03-13 14:34:57 +05309#if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH)
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