blob: 4c678c4fec58e5f8ecb1f6184c41f0fbd2bf54d0 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_STACKPROTECTOR_H
3#define _LINUX_STACKPROTECTOR_H 1
4
5#include <linux/compiler.h>
6#include <linux/sched.h>
7#include <linux/random.h>
8
Olivier Deprez157378f2022-04-04 15:47:50 +02009#if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000010# include <asm/stackprotector.h>
11#else
12static inline void boot_init_stack_canary(void)
13{
14}
15#endif
16
17#endif