Commit cda689f8 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'csky-for-linus-5.13-rc1' of git://github.com/c-sky/csky-linux

Pull arch/csky updates from Guo Ren:
 "Just cleanups"

* tag 'csky-for-linus-5.13-rc1' of git://github.com/c-sky/csky-linux:
  csky: uaccess.h: Coding convention with asm generic
  csky: fix syscache.c fallthrough warning
  csky: Fixup typos
  csky: Remove duplicate include in arch/csky/kernel/entry.S
parents d835ff6c e58a41c2
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
generic-y += asm-offsets.h generic-y += asm-offsets.h
generic-y += extable.h
generic-y += gpio.h generic-y += gpio.h
generic-y += kvm_para.h generic-y += kvm_para.h
generic-y += qrwlock.h generic-y += qrwlock.h
......
...@@ -37,7 +37,7 @@ void asid_new_context(struct asid_info *info, atomic64_t *pasid, ...@@ -37,7 +37,7 @@ void asid_new_context(struct asid_info *info, atomic64_t *pasid,
* Check the ASID is still valid for the context. If not generate a new ASID. * Check the ASID is still valid for the context. If not generate a new ASID.
* *
* @pasid: Pointer to the current ASID batch * @pasid: Pointer to the current ASID batch
* @cpu: current CPU ID. Must have been acquired throught get_cpu() * @cpu: current CPU ID. Must have been acquired through get_cpu()
*/ */
static inline void asid_check_context(struct asid_info *info, static inline void asid_check_context(struct asid_info *info,
atomic64_t *pasid, unsigned int cpu, atomic64_t *pasid, unsigned int cpu,
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
/* /*
* sync: completion barrier, all sync.xx instructions * sync: completion barrier, all sync.xx instructions
* guarantee the last response recieved by bus transaction * guarantee the last response received by bus transaction
* made by ld/st instructions before sync.s * made by ld/st instructions before sync.s
* sync.s: inherit from sync, but also shareable to other cores * sync.s: inherit from sync, but also shareable to other cores
* sync.i: inherit from sync, but also flush cpu pipeline * sync.i: inherit from sync, but also flush cpu pipeline
......
...@@ -7,11 +7,4 @@ typedef struct { ...@@ -7,11 +7,4 @@ typedef struct {
unsigned long seg; unsigned long seg;
} mm_segment_t; } mm_segment_t;
#define KERNEL_DS ((mm_segment_t) { 0xFFFFFFFF })
#define USER_DS ((mm_segment_t) { PAGE_OFFSET })
#define get_fs() (current_thread_info()->addr_limit)
#define set_fs(x) (current_thread_info()->addr_limit = (x))
#define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
#endif /* __ASM_CSKY_SEGMENT_H */ #endif /* __ASM_CSKY_SEGMENT_H */
This diff is collapsed.
...@@ -16,7 +16,7 @@ struct vdso_data { ...@@ -16,7 +16,7 @@ struct vdso_data {
* offset of 0, but since the linker must support setting weak undefined * offset of 0, but since the linker must support setting weak undefined
* symbols to the absolute address 0 it also happens to support other low * symbols to the absolute address 0 it also happens to support other low
* addresses even when the code model suggests those low addresses would not * addresses even when the code model suggests those low addresses would not
* otherwise be availiable. * otherwise be available.
*/ */
#define VDSO_SYMBOL(base, name) \ #define VDSO_SYMBOL(base, name) \
({ \ ({ \
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <asm/unistd.h> #include <asm/unistd.h>
#include <asm/asm-offsets.h> #include <asm/asm-offsets.h>
#include <linux/threads.h> #include <linux/threads.h>
#include <asm/setup.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
......
This diff is collapsed.
...@@ -12,7 +12,7 @@ int fixup_exception(struct pt_regs *regs) ...@@ -12,7 +12,7 @@ int fixup_exception(struct pt_regs *regs)
fixup = search_exception_tables(instruction_pointer(regs)); fixup = search_exception_tables(instruction_pointer(regs));
if (fixup) { if (fixup) {
regs->pc = fixup->nextinsn; regs->pc = fixup->fixup;
return 1; return 1;
} }
......
...@@ -17,6 +17,7 @@ SYSCALL_DEFINE3(cacheflush, ...@@ -17,6 +17,7 @@ SYSCALL_DEFINE3(cacheflush,
flush_icache_mm_range(current->mm, flush_icache_mm_range(current->mm,
(unsigned long)addr, (unsigned long)addr,
(unsigned long)addr + bytes); (unsigned long)addr + bytes);
fallthrough;
case DCACHE: case DCACHE:
dcache_wb_range((unsigned long)addr, dcache_wb_range((unsigned long)addr,
(unsigned long)addr + bytes); (unsigned long)addr + bytes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment