Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'csky-for-linus-6.6' of https://github.com/c-sky/csky-linux

Pull arch/csky updates from Guo Ren:

- Fixup compile warnings

- Fixup update_mmu_cache

* tag 'csky-for-linus-6.6' of https://github.com/c-sky/csky-linux:
csky: Fixup -Wmissing-prototypes warning
csky: Make pfn accessors static inlines
csky: Cast argument to virt_to_pfn() to (void *)
csky: pgtable: Invalidate stale I-cache lines in update_mmu_cache
csky: fix old style declaration in module.c

+43 -8
+1 -1
arch/arc/include/asm/page.h
··· 108 108 109 109 #else /* CONFIG_HIGHMEM */ 110 110 111 - #define ARCH_PFN_OFFSET virt_to_pfn(CONFIG_LINUX_RAM_BASE) 111 + #define ARCH_PFN_OFFSET virt_to_pfn((void *)CONFIG_LINUX_RAM_BASE) 112 112 113 113 #endif /* CONFIG_HIGHMEM */ 114 114
+1 -3
arch/csky/abiv2/cacheflush.c
··· 27 27 28 28 addr = (unsigned long) kmap_atomic(page); 29 29 30 + icache_inv_range(address, address + PAGE_SIZE); 30 31 dcache_wb_range(addr, addr + PAGE_SIZE); 31 - 32 - if (vma->vm_flags & VM_EXEC) 33 - icache_inv_range(addr, addr + PAGE_SIZE); 34 32 35 33 kunmap_atomic((void *) addr); 36 34 }
+10 -3
arch/csky/include/asm/page.h
··· 34 34 35 35 #include <linux/pfn.h> 36 36 37 - #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) 38 - #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) 39 - 40 37 #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && \ 41 38 (void *)(kaddr) < high_memory) 42 39 ··· 76 79 #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - va_pa_offset)) 77 80 78 81 #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) 82 + 83 + static inline unsigned long virt_to_pfn(const void *kaddr) 84 + { 85 + return __pa(kaddr) >> PAGE_SHIFT; 86 + } 87 + 88 + static inline void * pfn_to_virt(unsigned long pfn) 89 + { 90 + return (void *)((unsigned long)__va(pfn) << PAGE_SHIFT); 91 + } 79 92 80 93 #define MAP_NR(x) PFN_DOWN((unsigned long)(x) - PAGE_OFFSET - \ 81 94 PHYS_OFFSET_OFFSET)
+2
arch/csky/include/asm/ptrace.h
··· 96 96 return *(unsigned long *)((unsigned long)regs + offset); 97 97 } 98 98 99 + asmlinkage int syscall_trace_enter(struct pt_regs *regs); 100 + asmlinkage void syscall_trace_exit(struct pt_regs *regs); 99 101 #endif /* __ASSEMBLY__ */ 100 102 #endif /* __ASM_CSKY_PTRACE_H */
+2
arch/csky/include/asm/sections.h
··· 7 7 8 8 extern char _start[]; 9 9 10 + asmlinkage void csky_start(unsigned int unused, void *dtb_start); 11 + 10 12 #endif /* __ASM_SECTIONS_H */
+15
arch/csky/include/asm/traps.h
··· 40 40 41 41 void csky_alignment(struct pt_regs *regs); 42 42 43 + asmlinkage void do_trap_unknown(struct pt_regs *regs); 44 + asmlinkage void do_trap_zdiv(struct pt_regs *regs); 45 + asmlinkage void do_trap_buserr(struct pt_regs *regs); 46 + asmlinkage void do_trap_misaligned(struct pt_regs *regs); 47 + asmlinkage void do_trap_bkpt(struct pt_regs *regs); 48 + asmlinkage void do_trap_illinsn(struct pt_regs *regs); 49 + asmlinkage void do_trap_fpe(struct pt_regs *regs); 50 + asmlinkage void do_trap_priv(struct pt_regs *regs); 51 + asmlinkage void trap_c(struct pt_regs *regs); 52 + 53 + asmlinkage void do_notify_resume(struct pt_regs *regs, 54 + unsigned long thread_info_flags); 55 + 56 + void trap_init(void); 57 + 43 58 #endif /* __ASM_CSKY_TRAPS_H */
+1 -1
arch/csky/kernel/module.c
··· 40 40 } 41 41 } 42 42 #else 43 - static void inline jsri_2_lrw_jsr(uint32_t *location) 43 + static inline void jsri_2_lrw_jsr(uint32_t *location) 44 44 { 45 45 return; 46 46 }
+11
arch/csky/kernel/vdso/vgettimeofday.c
··· 3 3 #include <linux/time.h> 4 4 #include <linux/types.h> 5 5 6 + extern 7 + int __vdso_clock_gettime(clockid_t clock, 8 + struct old_timespec32 *ts); 6 9 int __vdso_clock_gettime(clockid_t clock, 7 10 struct old_timespec32 *ts) 8 11 { ··· 13 10 } 14 11 15 12 int __vdso_clock_gettime64(clockid_t clock, 13 + struct __kernel_timespec *ts); 14 + int __vdso_clock_gettime64(clockid_t clock, 16 15 struct __kernel_timespec *ts) 17 16 { 18 17 return __cvdso_clock_gettime(clock, ts); 19 18 } 20 19 20 + extern 21 + int __vdso_gettimeofday(struct __kernel_old_timeval *tv, 22 + struct timezone *tz); 21 23 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, 22 24 struct timezone *tz) 23 25 { 24 26 return __cvdso_gettimeofday(tv, tz); 25 27 } 26 28 29 + extern 30 + int __vdso_clock_getres(clockid_t clock_id, 31 + struct old_timespec32 *res); 27 32 int __vdso_clock_getres(clockid_t clock_id, 28 33 struct old_timespec32 *res) 29 34 {