mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05: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). Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
13 lines
234 B
C
13 lines
234 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _CSKY_STRING_MM_H_
|
|
#define _CSKY_STRING_MM_H_
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#include <linux/types.h>
|
|
#include <linux/compiler.h>
|
|
#include <abi/string.h>
|
|
#endif
|
|
|
|
#endif /* _CSKY_STRING_MM_H_ */
|