drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / arch / csky / include / asm / stackprotector.h
blobd23747447166d1a9a1f5d2784e07c066d0bb56d0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_STACKPROTECTOR_H
3 #define _ASM_STACKPROTECTOR_H 1
5 extern unsigned long __stack_chk_guard;
7 /*
8 * Initialize the stackprotector canary value.
10 * NOTE: this must only be called from functions that never return,
11 * and it must always be inlined.
13 static __always_inline void boot_init_stack_canary(void)
15 unsigned long canary = get_random_canary();
17 current->stack_canary = canary;
18 __stack_chk_guard = current->stack_canary;
21 #endif /* __ASM_SH_STACKPROTECTOR_H */