Skip to content

Commit 901e950

Browse files
committed
Merge tag 'v4.18.13' into 4.18-main
This is the 4.18.13 stable release
2 parents 9b7760b + 04a3fbb commit 901e950

File tree

182 files changed

+1827
-990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+1827
-990
lines changed

Documentation/devicetree/bindings/net/sh_eth.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Required properties:
1616
"renesas,ether-r8a7794" if the device is a part of R8A7794 SoC.
1717
"renesas,gether-r8a77980" if the device is a part of R8A77980 SoC.
1818
"renesas,ether-r7s72100" if the device is a part of R7S72100 SoC.
19+
"renesas,ether-r7s9210" if the device is a part of R7S9210 SoC.
1920
"renesas,rcar-gen1-ether" for a generic R-Car Gen1 device.
2021
"renesas,rcar-gen2-ether" for a generic R-Car Gen2 or RZ/G1
2122
device.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 4
33
PATCHLEVEL = 18
4-
SUBLEVEL = 12
4+
SUBLEVEL = 13
55
EXTRAVERSION =
66
NAME = Merciless Moray
77

arch/arc/include/asm/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static inline int atomic_fetch_##op(int i, atomic_t *v) \
8484
"1: llock %[orig], [%[ctr]] \n" \
8585
" " #asm_op " %[val], %[orig], %[i] \n" \
8686
" scond %[val], [%[ctr]] \n" \
87-
" \n" \
87+
" bnz 1b \n" \
8888
: [val] "=&r" (val), \
8989
[orig] "=&r" (orig) \
9090
: [ctr] "r" (&v->counter), \

arch/arm64/include/asm/jump_label.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
3030
{
31-
asm goto("1: nop\n\t"
31+
asm_volatile_goto("1: nop\n\t"
3232
".pushsection __jump_table, \"aw\"\n\t"
3333
".align 3\n\t"
3434
".quad 1b, %l[l_yes], %c0\n\t"
@@ -42,7 +42,7 @@ static __always_inline bool arch_static_branch(struct static_key *key, bool bran
4242

4343
static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch)
4444
{
45-
asm goto("1: b %l[l_yes]\n\t"
45+
asm_volatile_goto("1: b %l[l_yes]\n\t"
4646
".pushsection __jump_table, \"aw\"\n\t"
4747
".align 3\n\t"
4848
".quad 1b, %l[l_yes], %c0\n\t"

arch/hexagon/include/asm/bitops.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static inline long ffz(int x)
211211
* This is defined the same way as ffs.
212212
* Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
213213
*/
214-
static inline long fls(int x)
214+
static inline int fls(int x)
215215
{
216216
int r;
217217

@@ -232,7 +232,7 @@ static inline long fls(int x)
232232
* the libc and compiler builtin ffs routines, therefore
233233
* differs in spirit from the above ffz (man ffs).
234234
*/
235-
static inline long ffs(int x)
235+
static inline int ffs(int x)
236236
{
237237
int r;
238238

arch/hexagon/kernel/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void *hexagon_dma_alloc_coherent(struct device *dev, size_t size,
6060
panic("Can't create %s() memory pool!", __func__);
6161
else
6262
gen_pool_add(coherent_pool,
63-
pfn_to_virt(max_low_pfn),
63+
(unsigned long)pfn_to_virt(max_low_pfn),
6464
hexagon_coherent_pool_size, -1);
6565
}
6666

arch/nds32/include/asm/elf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ struct elf32_hdr;
121121
*/
122122
#define ELF_CLASS ELFCLASS32
123123
#ifdef __NDS32_EB__
124-
#define ELF_DATA ELFDATA2MSB;
124+
#define ELF_DATA ELFDATA2MSB
125125
#else
126-
#define ELF_DATA ELFDATA2LSB;
126+
#define ELF_DATA ELFDATA2LSB
127127
#endif
128128
#define ELF_ARCH EM_NDS32
129129
#define USE_ELF_CORE_DUMP

arch/nds32/include/asm/uaccess.h

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ static inline void set_fs(mm_segment_t fs)
7878
#define get_user(x,p) \
7979
({ \
8080
long __e = -EFAULT; \
81-
if(likely(access_ok(VERIFY_READ, p, sizeof(*p)))) { \
82-
__e = __get_user(x,p); \
81+
const __typeof__(*(p)) __user *__p = (p); \
82+
if(likely(access_ok(VERIFY_READ, __p, sizeof(*__p)))) { \
83+
__e = __get_user(x, __p); \
8384
} else \
8485
x = 0; \
8586
__e; \
@@ -99,10 +100,10 @@ static inline void set_fs(mm_segment_t fs)
99100

100101
#define __get_user_err(x,ptr,err) \
101102
do { \
102-
unsigned long __gu_addr = (unsigned long)(ptr); \
103+
const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
103104
unsigned long __gu_val; \
104-
__chk_user_ptr(ptr); \
105-
switch (sizeof(*(ptr))) { \
105+
__chk_user_ptr(__gu_addr); \
106+
switch (sizeof(*(__gu_addr))) { \
106107
case 1: \
107108
__get_user_asm("lbi",__gu_val,__gu_addr,err); \
108109
break; \
@@ -119,7 +120,7 @@ do { \
119120
BUILD_BUG(); \
120121
break; \
121122
} \
122-
(x) = (__typeof__(*(ptr)))__gu_val; \
123+
(x) = (__typeof__(*(__gu_addr)))__gu_val; \
123124
} while (0)
124125

125126
#define __get_user_asm(inst,x,addr,err) \
@@ -169,8 +170,9 @@ do { \
169170
#define put_user(x,p) \
170171
({ \
171172
long __e = -EFAULT; \
172-
if(likely(access_ok(VERIFY_WRITE, p, sizeof(*p)))) { \
173-
__e = __put_user(x,p); \
173+
__typeof__(*(p)) __user *__p = (p); \
174+
if(likely(access_ok(VERIFY_WRITE, __p, sizeof(*__p)))) { \
175+
__e = __put_user(x, __p); \
174176
} \
175177
__e; \
176178
})
@@ -189,10 +191,10 @@ do { \
189191

190192
#define __put_user_err(x,ptr,err) \
191193
do { \
192-
unsigned long __pu_addr = (unsigned long)(ptr); \
193-
__typeof__(*(ptr)) __pu_val = (x); \
194-
__chk_user_ptr(ptr); \
195-
switch (sizeof(*(ptr))) { \
194+
__typeof__(*(ptr)) __user *__pu_addr = (ptr); \
195+
__typeof__(*(__pu_addr)) __pu_val = (x); \
196+
__chk_user_ptr(__pu_addr); \
197+
switch (sizeof(*(__pu_addr))) { \
196198
case 1: \
197199
__put_user_asm("sbi",__pu_val,__pu_addr,err); \
198200
break; \

arch/nds32/kernel/atl2c.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
void __iomem *atl2c_base;
1111
static const struct of_device_id atl2c_ids[] __initconst = {
12-
{.compatible = "andestech,atl2c",}
12+
{.compatible = "andestech,atl2c",},
13+
{}
1314
};
1415

1516
static int __init atl2c_of_init(void)

arch/nds32/kernel/module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void do_reloc16(unsigned int val, unsigned int *loc, unsigned int val_mask,
4040

4141
tmp2 = tmp & loc_mask;
4242
if (partial_in_place) {
43-
tmp &= (!loc_mask);
43+
tmp &= (~loc_mask);
4444
tmp =
4545
tmp2 | ((tmp + ((val & val_mask) >> val_shift)) & val_mask);
4646
} else {
@@ -70,7 +70,7 @@ void do_reloc32(unsigned int val, unsigned int *loc, unsigned int val_mask,
7070

7171
tmp2 = tmp & loc_mask;
7272
if (partial_in_place) {
73-
tmp &= (!loc_mask);
73+
tmp &= (~loc_mask);
7474
tmp =
7575
tmp2 | ((tmp + ((val & val_mask) >> val_shift)) & val_mask);
7676
} else {

0 commit comments

Comments
 (0)