setup.h (ead5d1f4d877e92c051e1a1ade623d0d30e71619) setup.h (a7223f5bfcaeade4a86d35263493bcda6c940891)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Prototypes for functions that are shared between setup_(32|64|common).c
4 *
5 * Copyright 2016 Michael Ellerman, IBM Corporation.
6 */
7
8#ifndef __ARCH_POWERPC_KERNEL_SETUP_H
9#define __ARCH_POWERPC_KERNEL_SETUP_H
10
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Prototypes for functions that are shared between setup_(32|64|common).c
4 *
5 * Copyright 2016 Michael Ellerman, IBM Corporation.
6 */
7
8#ifndef __ARCH_POWERPC_KERNEL_SETUP_H
9#define __ARCH_POWERPC_KERNEL_SETUP_H
10
11#ifdef CONFIG_CC_IS_CLANG
12#define __nostackprotector
13#else
14#define __nostackprotector __attribute__((__optimize__("no-stack-protector")))
15#endif
16
17void initialize_cache_info(void);
18void irqstack_early_init(void);
19
20#ifdef CONFIG_PPC32
21void setup_power_save(void);
22#else
23static inline void setup_power_save(void) { };
24#endif

--- 49 unchanged lines hidden ---
11void initialize_cache_info(void);
12void irqstack_early_init(void);
13
14#ifdef CONFIG_PPC32
15void setup_power_save(void);
16#else
17static inline void setup_power_save(void) { };
18#endif

--- 49 unchanged lines hidden ---