mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01: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 <[email protected]> Cc: Stefan Kristiansson <[email protected]> Cc: Stafford Horne <[email protected]> Cc: [email protected] Signed-off-by: Thomas Huth <[email protected]> Signed-off-by: Stafford Horne <[email protected]>
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 */
|