mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-17 12:00:35 +00:00
While the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now. This is a completely mechanical patch (done with a simple "sed -i" statement). Cc: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
24 lines
460 B
C
24 lines
460 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
|
|
*/
|
|
|
|
#ifndef _ASM_NIOS2_SETUP_H
|
|
#define _ASM_NIOS2_SETUP_H
|
|
|
|
#include <asm-generic/setup.h>
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#ifdef __KERNEL__
|
|
|
|
extern char exception_handler_hook[];
|
|
extern char fast_handler[];
|
|
extern char fast_handler_end[];
|
|
|
|
extern void pagetable_init(void);
|
|
|
|
#endif/* __KERNEL__ */
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* _ASM_NIOS2_SETUP_H */
|