History

Merge branch 'parisc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux

Pul parisc fixes from Helge Deller: "Two build error fixes, one for the soft_offline_page() parameter change and one for a specific KEXEC/KEXEC_FILE configuration, as well as a compiler and a linker warning fix" * 'parisc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Fix compiler warnings in debug_core.c parisc: soft_offline_page() now takes the pfn parisc: add missing __init annotation parisc: fix compilation when KEXEC=n and KEXEC_FILE=y

Linus Torvalds committed 6 years ago

Commit 62104692 parents 62af608 75cf9795 files · +11 −10Browse files

Unified · Split

5 files
  1. arch/parisc/include/asm/cmpxchg.h +8 −2
  2. arch/parisc/include/asm/kexec.h +0 −4
  3. arch/parisc/kernel/Makefile +1 −1
  4. arch/parisc/kernel/drivers.c +1 −1
  5. arch/parisc/kernel/pdt.c +1 −2
arch/parisc/include/asm/cmpxchg.h+8−2
@@ -44,8 +44,14 @@ __xchg(unsigned long x, __volatile__ void *ptr, int size) · 43 unmodified lines
4444 ** if (((unsigned long)p & 0xf) == 0)
4545 ** return __ldcw(p);
4646 */
47−#define xchg(ptr, x) \
48− ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
47+#define xchg(ptr, x) \
48+({ \
49+ __typeof__(*(ptr)) __ret; \
50+ __typeof__(*(ptr)) _x_ = (x); \
51+ __ret = (__typeof__(*(ptr))) \
52+ __xchg((unsigned long)_x_, (ptr), sizeof(*(ptr))); \
53+ __ret; \
54+})
4955
5056 /* bug catcher for when unsupported size is used - won't link */
5157 extern void __cmpxchg_called_with_bad_pointer(void);
arch/parisc/include/asm/kexec.h+0−4
@@ -2,8 +2,6 @@ · 1 unmodified line
22 #ifndef _ASM_PARISC_KEXEC_H
33 #define _ASM_PARISC_KEXEC_H
44
5−#ifdef CONFIG_KEXEC
6−
75 /* Maximum physical address we can use pages from */
86 #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
97 /* Maximum address we can reach in physical address mode */
@@ -32,6 +30,4 @@ static inline void crash_setup_regs(struct pt_regs *newregs, · 22 unmodified lines
3230
3331 #endif /* __ASSEMBLY__ */
3432
35−#endif /* CONFIG_KEXEC */
36−
3733 #endif /* _ASM_PARISC_KEXEC_H */
arch/parisc/kernel/Makefile+1−1
@@ -37,5 +37,5 @@ obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o · 36 unmodified lines
3737 obj-$(CONFIG_JUMP_LABEL) += jump_label.o
3838 obj-$(CONFIG_KGDB) += kgdb.o
3939 obj-$(CONFIG_KPROBES) += kprobes.o
40−obj-$(CONFIG_KEXEC) += kexec.o relocate_kernel.o
40+obj-$(CONFIG_KEXEC_CORE) += kexec.o relocate_kernel.o
4141 obj-$(CONFIG_KEXEC_FILE) += kexec_file.o
arch/parisc/kernel/drivers.c+1−1
@@ -810,7 +810,7 @@ EXPORT_SYMBOL(device_to_hwpath); · 809 unmodified lines
810810 static void walk_native_bus(unsigned long io_io_low, unsigned long io_io_high,
811811 struct device *parent);
812812
813−static void walk_lower_bus(struct parisc_device *dev)
813+static void __init walk_lower_bus(struct parisc_device *dev)
814814 {
815815 unsigned long io_io_low, io_io_high;
816816
arch/parisc/kernel/pdt.c+1−2
@@ -327,8 +327,7 @@ static int pdt_mainloop(void *unused) · 326 unmodified lines
327327 ((pde & PDT_ADDR_SINGLE_ERR) == 0))
328328 memory_failure(pde >> PAGE_SHIFT, 0);
329329 else
330− soft_offline_page(
331− pfn_to_page(pde >> PAGE_SHIFT), 0);
330+ soft_offline_page(pde >> PAGE_SHIFT, 0);
332331 #else
333332 pr_crit("PDT: memory error at 0x%lx ignored.\n"
334333 "Rebuild kernel with CONFIG_MEMORY_FAILURE=y "

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t