Skip to content

Commit 3a3de75

Browse files
committed
Merge tag 'loongarch-fixes-6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
Pull LoongArch fixes from Huacai Chen: - replace __ASSEMBLY__ with __ASSEMBLER__ in headers like others - fix build warnings about export.h - reserve the EFI memory map region for kdump - handle __init vs inline mismatches - fix some KVM bugs * tag 'loongarch-fixes-6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson: LoongArch: KVM: Disable updating of "num_cpu" and "feature" LoongArch: KVM: Check validity of "num_cpu" from user space LoongArch: KVM: Check interrupt route from physical CPU LoongArch: KVM: Fix interrupt route update with EIOINTC LoongArch: KVM: Add address alignment check for IOCSR emulation LoongArch: KVM: Avoid overflow with array index LoongArch: Handle KCOV __init vs inline mismatches LoongArch: Reserve the EFI memory map region LoongArch: Fix build warnings about export.h LoongArch: Replace __ASSEMBLY__ with __ASSEMBLER__ in headers
2 parents aaf724e + 955853c commit 3a3de75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+151
-100
lines changed

arch/loongarch/include/asm/addrspace.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/*
1919
* This gives the physical RAM offset.
2020
*/
21-
#ifndef __ASSEMBLY__
21+
#ifndef __ASSEMBLER__
2222
#ifndef PHYS_OFFSET
2323
#define PHYS_OFFSET _UL(0)
2424
#endif
2525
extern unsigned long vm_map_base;
26-
#endif /* __ASSEMBLY__ */
26+
#endif /* __ASSEMBLER__ */
2727

2828
#ifndef IO_BASE
2929
#define IO_BASE CSR_DMW0_BASE
@@ -66,7 +66,7 @@ extern unsigned long vm_map_base;
6666
#define FIXADDR_TOP ((unsigned long)(long)(int)0xfffe0000)
6767
#endif
6868

69-
#ifdef __ASSEMBLY__
69+
#ifdef __ASSEMBLER__
7070
#define _ATYPE_
7171
#define _ATYPE32_
7272
#define _ATYPE64_
@@ -85,7 +85,7 @@ extern unsigned long vm_map_base;
8585
/*
8686
* 32/64-bit LoongArch address spaces
8787
*/
88-
#ifdef __ASSEMBLY__
88+
#ifdef __ASSEMBLER__
8989
#define _ACAST32_
9090
#define _ACAST64_
9191
#else

arch/loongarch/include/asm/alternative-asm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _ASM_ALTERNATIVE_ASM_H
33
#define _ASM_ALTERNATIVE_ASM_H
44

5-
#ifdef __ASSEMBLY__
5+
#ifdef __ASSEMBLER__
66

77
#include <asm/asm.h>
88

@@ -77,6 +77,6 @@
7777
.previous
7878
.endm
7979

80-
#endif /* __ASSEMBLY__ */
80+
#endif /* __ASSEMBLER__ */
8181

8282
#endif /* _ASM_ALTERNATIVE_ASM_H */

arch/loongarch/include/asm/alternative.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _ASM_ALTERNATIVE_H
33
#define _ASM_ALTERNATIVE_H
44

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66

77
#include <linux/types.h>
88
#include <linux/stddef.h>
@@ -106,6 +106,6 @@ extern void apply_alternatives(struct alt_instr *start, struct alt_instr *end);
106106
#define alternative_2(oldinstr, newinstr1, feature1, newinstr2, feature2) \
107107
(asm volatile(ALTERNATIVE_2(oldinstr, newinstr1, feature1, newinstr2, feature2) ::: "memory"))
108108

109-
#endif /* __ASSEMBLY__ */
109+
#endif /* __ASSEMBLER__ */
110110

111111
#endif /* _ASM_ALTERNATIVE_H */

arch/loongarch/include/asm/asm-extable.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define EX_TYPE_UACCESS_ERR_ZERO 2
88
#define EX_TYPE_BPF 3
99

10-
#ifdef __ASSEMBLY__
10+
#ifdef __ASSEMBLER__
1111

1212
#define __ASM_EXTABLE_RAW(insn, fixup, type, data) \
1313
.pushsection __ex_table, "a"; \
@@ -22,7 +22,7 @@
2222
__ASM_EXTABLE_RAW(\insn, \fixup, EX_TYPE_FIXUP, 0)
2323
.endm
2424

25-
#else /* __ASSEMBLY__ */
25+
#else /* __ASSEMBLER__ */
2626

2727
#include <linux/bits.h>
2828
#include <linux/stringify.h>
@@ -60,6 +60,6 @@
6060
#define _ASM_EXTABLE_UACCESS_ERR(insn, fixup, err) \
6161
_ASM_EXTABLE_UACCESS_ERR_ZERO(insn, fixup, err, zero)
6262

63-
#endif /* __ASSEMBLY__ */
63+
#endif /* __ASSEMBLER__ */
6464

6565
#endif /* __ASM_ASM_EXTABLE_H */

arch/loongarch/include/asm/asm.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
#define LONG_SRA srai.w
111111
#define LONG_SRAV sra.w
112112

113-
#ifdef __ASSEMBLY__
113+
#ifdef __ASSEMBLER__
114114
#define LONG .word
115115
#endif
116116
#define LONGSIZE 4
@@ -131,7 +131,7 @@
131131
#define LONG_SRA srai.d
132132
#define LONG_SRAV sra.d
133133

134-
#ifdef __ASSEMBLY__
134+
#ifdef __ASSEMBLER__
135135
#define LONG .dword
136136
#endif
137137
#define LONGSIZE 8
@@ -158,7 +158,7 @@
158158

159159
#define PTR_SCALESHIFT 2
160160

161-
#ifdef __ASSEMBLY__
161+
#ifdef __ASSEMBLER__
162162
#define PTR .word
163163
#endif
164164
#define PTRSIZE 4
@@ -181,7 +181,7 @@
181181

182182
#define PTR_SCALESHIFT 3
183183

184-
#ifdef __ASSEMBLY__
184+
#ifdef __ASSEMBLER__
185185
#define PTR .dword
186186
#endif
187187
#define PTRSIZE 8

arch/loongarch/include/asm/cpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
#define PRID_PRODUCT_MASK 0x0fff
4848

49-
#if !defined(__ASSEMBLY__)
49+
#if !defined(__ASSEMBLER__)
5050

5151
enum cpu_type_enum {
5252
CPU_UNKNOWN,
@@ -55,7 +55,7 @@ enum cpu_type_enum {
5555
CPU_LAST
5656
};
5757

58-
#endif /* !__ASSEMBLY */
58+
#endif /* !__ASSEMBLER__ */
5959

6060
/*
6161
* ISA Level encodings

arch/loongarch/include/asm/ftrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
1616

17-
#ifndef __ASSEMBLY__
17+
#ifndef __ASSEMBLER__
1818

1919
#ifndef CONFIG_DYNAMIC_FTRACE
2020

@@ -84,7 +84,7 @@ __arch_ftrace_set_direct_caller(struct pt_regs *regs, unsigned long addr)
8484

8585
#endif
8686

87-
#endif /* __ASSEMBLY__ */
87+
#endif /* __ASSEMBLER__ */
8888

8989
#endif /* CONFIG_FUNCTION_TRACER */
9090

arch/loongarch/include/asm/gpr-num.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef __ASM_GPR_NUM_H
33
#define __ASM_GPR_NUM_H
44

5-
#ifdef __ASSEMBLY__
5+
#ifdef __ASSEMBLER__
66

77
.equ .L__gpr_num_zero, 0
88
.irp num,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
@@ -25,7 +25,7 @@
2525
.equ .L__gpr_num_$s\num, 23 + \num
2626
.endr
2727

28-
#else /* __ASSEMBLY__ */
28+
#else /* __ASSEMBLER__ */
2929

3030
#define __DEFINE_ASM_GPR_NUMS \
3131
" .equ .L__gpr_num_zero, 0\n" \
@@ -47,6 +47,6 @@
4747
" .equ .L__gpr_num_$s\\num, 23 + \\num\n" \
4848
" .endr\n" \
4949

50-
#endif /* __ASSEMBLY__ */
50+
#endif /* __ASSEMBLER__ */
5151

5252
#endif /* __ASM_GPR_NUM_H */

arch/loongarch/include/asm/irqflags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef _ASM_IRQFLAGS_H
66
#define _ASM_IRQFLAGS_H
77

8-
#ifndef __ASSEMBLY__
8+
#ifndef __ASSEMBLER__
99

1010
#include <linux/compiler.h>
1111
#include <linux/stringify.h>
@@ -80,6 +80,6 @@ static inline int arch_irqs_disabled(void)
8080
return arch_irqs_disabled_flags(arch_local_save_flags());
8181
}
8282

83-
#endif /* #ifndef __ASSEMBLY__ */
83+
#endif /* #ifndef __ASSEMBLER__ */
8484

8585
#endif /* _ASM_IRQFLAGS_H */

arch/loongarch/include/asm/jump_label.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef __ASM_JUMP_LABEL_H
88
#define __ASM_JUMP_LABEL_H
99

10-
#ifndef __ASSEMBLY__
10+
#ifndef __ASSEMBLER__
1111

1212
#include <linux/types.h>
1313

@@ -50,5 +50,5 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke
5050
return true;
5151
}
5252

53-
#endif /* __ASSEMBLY__ */
53+
#endif /* __ASSEMBLER__ */
5454
#endif /* __ASM_JUMP_LABEL_H */

0 commit comments

Comments
 (0)