Merge tag 'openrisc-for-linus' of git://github.com/openrisc/linux

Pull OpenRISC fixes from Stafford Horne:
"OpenRISC fixes for build issues that were exposed by kbuild robots
after 4.11 merge. All from allmodconfig builds. This includes:

- bug in the handling of 8-byte get_user() calls

- module build failure due to multile missing symbol exports"

* tag 'openrisc-for-linus' of git://github.com/openrisc/linux:
openrisc: Export symbols needed by modules
openrisc: fix issue handling 8 byte get_user calls
openrisc: xchg: fix `computed is not used` warning

Changed files
+12 -3
arch
openrisc
+6 -2
arch/openrisc/include/asm/cmpxchg.h
··· 77 77 return val; 78 78 } 79 79 80 - #define xchg(ptr, with) \ 81 - ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), sizeof(*(ptr)))) 80 + #define xchg(ptr, with) \ 81 + ({ \ 82 + (__typeof__(*(ptr))) __xchg((unsigned long)(with), \ 83 + (ptr), \ 84 + sizeof(*(ptr))); \ 85 + }) 82 86 83 87 #endif /* __ASM_OPENRISC_CMPXCHG_H */
+1 -1
arch/openrisc/include/asm/uaccess.h
··· 211 211 case 1: __get_user_asm(x, ptr, retval, "l.lbz"); break; \ 212 212 case 2: __get_user_asm(x, ptr, retval, "l.lhz"); break; \ 213 213 case 4: __get_user_asm(x, ptr, retval, "l.lwz"); break; \ 214 - case 8: __get_user_asm2(x, ptr, retval); \ 214 + case 8: __get_user_asm2(x, ptr, retval); break; \ 215 215 default: (x) = __get_user_bad(); \ 216 216 } \ 217 217 } while (0)
+4
arch/openrisc/kernel/or32_ksyms.c
··· 30 30 #include <asm/hardirq.h> 31 31 #include <asm/delay.h> 32 32 #include <asm/pgalloc.h> 33 + #include <asm/pgtable.h> 33 34 34 35 #define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name) 35 36 ··· 43 42 DECLARE_EXPORT(__ashrdi3); 44 43 DECLARE_EXPORT(__ashldi3); 45 44 DECLARE_EXPORT(__lshrdi3); 45 + DECLARE_EXPORT(__ucmpdi2); 46 46 47 + EXPORT_SYMBOL(empty_zero_page); 47 48 EXPORT_SYMBOL(__copy_tofrom_user); 49 + EXPORT_SYMBOL(__clear_user); 48 50 EXPORT_SYMBOL(memset);
+1
arch/openrisc/kernel/process.c
··· 90 90 } 91 91 92 92 void (*pm_power_off) (void) = machine_power_off; 93 + EXPORT_SYMBOL(pm_power_off); 93 94 94 95 /* 95 96 * When a process does an "exec", machine state like FPU and debug