Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
43 lines
1005 B
C
43 lines
1005 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_SH_MODULE_H
|
|
#define _ASM_SH_MODULE_H
|
|
|
|
#include <asm-generic/module.h>
|
|
|
|
#ifdef CONFIG_DWARF_UNWINDER
|
|
struct mod_arch_specific {
|
|
struct list_head fde_list;
|
|
struct list_head cie_list;
|
|
};
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_LITTLE_ENDIAN
|
|
# ifdef CONFIG_CPU_SH2
|
|
# define MODULE_PROC_FAMILY "SH2LE "
|
|
# elif defined CONFIG_CPU_SH3
|
|
# define MODULE_PROC_FAMILY "SH3LE "
|
|
# elif defined CONFIG_CPU_SH4
|
|
# define MODULE_PROC_FAMILY "SH4LE "
|
|
# elif defined CONFIG_CPU_SH5
|
|
# define MODULE_PROC_FAMILY "SH5LE "
|
|
# else
|
|
# error unknown processor family
|
|
# endif
|
|
#else
|
|
# ifdef CONFIG_CPU_SH2
|
|
# define MODULE_PROC_FAMILY "SH2BE "
|
|
# elif defined CONFIG_CPU_SH3
|
|
# define MODULE_PROC_FAMILY "SH3BE "
|
|
# elif defined CONFIG_CPU_SH4
|
|
# define MODULE_PROC_FAMILY "SH4BE "
|
|
# elif defined CONFIG_CPU_SH5
|
|
# define MODULE_PROC_FAMILY "SH5BE "
|
|
# else
|
|
# error unknown processor family
|
|
# endif
|
|
#endif
|
|
|
|
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
|
|
|
|
#endif /* _ASM_SH_MODULE_H */
|