mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 09:22:08 +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: Jonas Bonn <jonas@southpole.se> Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Cc: Stafford Horne <shorne@gmail.com> Cc: linux-openrisc@vger.kernel.org Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
16 lines
294 B
C
16 lines
294 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2021 Stafford Horne
|
|
*/
|
|
#ifndef _ASM_OR1K_SETUP_H
|
|
#define _ASM_OR1K_SETUP_H
|
|
|
|
#include <linux/init.h>
|
|
#include <asm-generic/setup.h>
|
|
|
|
#ifndef __ASSEMBLER__
|
|
void __init or1k_early_setup(void *fdt);
|
|
#endif
|
|
|
|
#endif /* _ASM_OR1K_SETUP_H */
|