mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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 almost a completely mechanical patch (done with a simple "sed -i" statement), with one comment tweaked manually in arch/m68k/include/asm/mac_baboon.h (which was missing underscores). Signed-off-by: Thomas Huth <thuth@redhat.com> Acked-by: Greg Ungerer <gerg@linux-m68k.org> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/20250611114056.118309-3-thuth@redhat.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
34 lines
785 B
C
34 lines
785 B
C
/*
|
|
** asm/bootinfo.h -- Definition of the Linux/m68k boot information structure
|
|
**
|
|
** Copyright 1992 by Greg Harp
|
|
**
|
|
** This file is subject to the terms and conditions of the GNU General Public
|
|
** License. See the file COPYING in the main directory of this archive
|
|
** for more details.
|
|
*/
|
|
|
|
#ifndef _M68K_BOOTINFO_H
|
|
#define _M68K_BOOTINFO_H
|
|
|
|
#include <uapi/asm/bootinfo.h>
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
#ifdef CONFIG_BOOTINFO_PROC
|
|
extern void save_bootinfo(const struct bi_record *bi);
|
|
#else
|
|
static inline void save_bootinfo(const struct bi_record *bi) {}
|
|
#endif
|
|
|
|
#ifdef CONFIG_UBOOT
|
|
void process_uboot_commandline(char *commandp, int size);
|
|
#else
|
|
static inline void process_uboot_commandline(char *commandp, int size) {}
|
|
#endif
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
|
|
#endif /* _M68K_BOOTINFO_H */
|