Skip to content

Commit

Permalink
Merge tag 'loongarch-fixes-5.19-4' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/chenhuacai/linux-loongson

Pull LoongArch fixes from Huacai Chen:
 "A fix for tinyconfig build error, a fix for section mismatch warning,
  and two cleanups of obsolete code"

* tag 'loongarch-fixes-5.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
  LoongArch: Fix section mismatch warning
  LoongArch: Fix build errors for tinyconfig
  LoongArch: Remove obsolete mentions of vcsr
  LoongArch: Drop these obsolete selects in Kconfig
  • Loading branch information
torvalds committed Jul 7, 2022
2 parents ef4ab3b + f0fbe65 commit e8a4e1c
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 19 deletions.
4 changes: 0 additions & 4 deletions arch/loongarch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ config LOONGARCH
select GENERIC_CMOS_UPDATE
select GENERIC_CPU_AUTOPROBE
select GENERIC_ENTRY
select GENERIC_FIND_FIRST_BIT
select GENERIC_GETTIMEOFDAY
select GENERIC_IRQ_MULTI_HANDLER
select GENERIC_IRQ_PROBE
Expand All @@ -77,7 +76,6 @@ config LOONGARCH
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
select HAVE_ASM_MODVERSIONS
select HAVE_CONTEXT_TRACKING
select HAVE_COPY_THREAD_TLS
select HAVE_DEBUG_STACKOVERFLOW
select HAVE_DMA_CONTIGUOUS
select HAVE_EXIT_THREAD
Expand All @@ -86,8 +84,6 @@ config LOONGARCH
select HAVE_IOREMAP_PROT
select HAVE_IRQ_EXIT_ON_IRQ_STACK
select HAVE_IRQ_TIME_ACCOUNTING
select HAVE_MEMBLOCK
select HAVE_MEMBLOCK_NODE_MAP
select HAVE_MOD_ARCH_SPECIFIC
select HAVE_NMI
select HAVE_PERF_EVENTS
Expand Down
1 change: 0 additions & 1 deletion arch/loongarch/include/asm/fpregdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@
#define fcsr1 $r1
#define fcsr2 $r2
#define fcsr3 $r3
#define vcsr16 $r16

#endif /* _ASM_FPREGDEF_H */
1 change: 1 addition & 0 deletions arch/loongarch/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define _ASM_PAGE_H

#include <linux/const.h>
#include <asm/addrspace.h>

/*
* PAGE_SHIFT determines the page size
Expand Down
2 changes: 0 additions & 2 deletions arch/loongarch/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ BUILD_FPR_ACCESS(64)

struct loongarch_fpu {
unsigned int fcsr;
unsigned int vcsr;
uint64_t fcc; /* 8x8 */
union fpureg fpr[NUM_FPU_REGS];
};
Expand Down Expand Up @@ -161,7 +160,6 @@ struct thread_struct {
*/ \
.fpu = { \
.fcsr = 0, \
.vcsr = 0, \
.fcc = 0, \
.fpr = {{{0,},},}, \
}, \
Expand Down
1 change: 0 additions & 1 deletion arch/loongarch/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ void output_thread_fpu_defines(void)

OFFSET(THREAD_FCSR, loongarch_fpu, fcsr);
OFFSET(THREAD_FCC, loongarch_fpu, fcc);
OFFSET(THREAD_VCSR, loongarch_fpu, vcsr);
BLANK();
}

Expand Down
10 changes: 0 additions & 10 deletions arch/loongarch/kernel/fpu.S
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,6 @@
movgr2fcsr fcsr0, \tmp0
.endm

.macro sc_save_vcsr base, tmp0
movfcsr2gr \tmp0, vcsr16
EX st.w \tmp0, \base, 0
.endm

.macro sc_restore_vcsr base, tmp0
EX ld.w \tmp0, \base, 0
movgr2fcsr vcsr16, \tmp0
.endm

/*
* Save a thread's fp context.
*/
Expand Down
1 change: 0 additions & 1 deletion arch/loongarch/kernel/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ int __init init_numa_memory(void)
return 0;
}

EXPORT_SYMBOL(init_numa_memory);
#endif

void __init paging_init(void)
Expand Down
1 change: 1 addition & 0 deletions arch/loongarch/vdso/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS))
endif

cflags-vdso := $(ccflags-vdso) \
-isystem $(shell $(CC) -print-file-name=include) \
$(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \
-O2 -g -fno-strict-aliasing -fno-common -fno-builtin -G0 \
-fno-stack-protector -fno-jump-tables -DDISABLE_BRANCH_PROFILING \
Expand Down

0 comments on commit e8a4e1c

Please sign in to comment.