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)
39 lines
612 B
C
39 lines
612 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2007 Maciej W. Rozycki
|
|
*/
|
|
#ifndef _ASM_BUGS_H
|
|
#define _ASM_BUGS_H
|
|
|
|
#include <linux/bug.h>
|
|
#include <linux/smp.h>
|
|
|
|
#include <asm/cpu.h>
|
|
#include <asm/cpu-info.h>
|
|
|
|
extern int daddiu_bug;
|
|
|
|
extern void check_bugs64_early(void);
|
|
|
|
extern void check_bugs32(void);
|
|
extern void check_bugs64(void);
|
|
|
|
static inline void check_bugs_early(void)
|
|
{
|
|
#ifdef CONFIG_64BIT
|
|
check_bugs64_early();
|
|
#endif
|
|
}
|
|
|
|
static inline int r4k_daddiu_bug(void)
|
|
{
|
|
#ifdef CONFIG_64BIT
|
|
WARN_ON(daddiu_bug < 0);
|
|
return daddiu_bug != 0;
|
|
#else
|
|
return 0;
|
|
#endif
|
|
}
|
|
|
|
#endif /* _ASM_BUGS_H */
|