mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02: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: David S. Miller <davem@davemloft.net> Cc: Andreas Larsson <andreas@gaisler.com> Cc: sparclinux@vger.kernel.org Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
35 lines
802 B
C
35 lines
802 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_SPARC64_FTRACE
|
|
#define _ASM_SPARC64_FTRACE
|
|
|
|
#ifdef CONFIG_MCOUNT
|
|
#define MCOUNT_ADDR ((unsigned long)(_mcount))
|
|
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
|
|
|
|
#ifndef __ASSEMBLER__
|
|
void _mcount(void);
|
|
#endif
|
|
|
|
#endif /* CONFIG_MCOUNT */
|
|
|
|
#if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
|
|
#define HAVE_FUNCTION_GRAPH_FP_TEST
|
|
#endif
|
|
|
|
#ifdef CONFIG_DYNAMIC_FTRACE
|
|
/* relocation of mcount call site is the same as the address */
|
|
static inline unsigned long ftrace_call_adjust(unsigned long addr)
|
|
{
|
|
return addr;
|
|
}
|
|
|
|
struct dyn_arch_ftrace {
|
|
};
|
|
#endif /* CONFIG_DYNAMIC_FTRACE */
|
|
|
|
unsigned long prepare_ftrace_return(unsigned long parent,
|
|
unsigned long self_addr,
|
|
unsigned long frame_pointer);
|
|
|
|
#endif /* _ASM_SPARC64_FTRACE */
|