Skip to content

Commit 4213f97

Browse files
committed
Merge branch 'stable/linux-4.14.y' into linux-4.14-at91
2 parents 9665cfa + ee13f7e commit 4213f97

178 files changed

Lines changed: 1396 additions & 776 deletions

File tree

Some content is hidden

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

Makefile

Lines changed: 5 additions & 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 = 14
4-
SUBLEVEL = 67
4+
SUBLEVEL = 68
55
EXTRAVERSION =
66
NAME = Petit Gorille
77

@@ -490,9 +490,13 @@ KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
490490
endif
491491

492492
RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register
493+
RETPOLINE_VDSO_CFLAGS_GCC := -mindirect-branch=thunk-inline -mindirect-branch-register
493494
RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk
495+
RETPOLINE_VDSO_CFLAGS_CLANG := -mretpoline
494496
RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG)))
497+
RETPOLINE_VDSO_CFLAGS := $(call cc-option,$(RETPOLINE_VDSO_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_VDSO_CFLAGS_CLANG)))
495498
export RETPOLINE_CFLAGS
499+
export RETPOLINE_VDSO_CFLAGS
496500

497501
ifeq ($(config-targets),1)
498502
# ===========================================================================

arch/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ config HAVE_ARCH_JUMP_LABEL
336336
config HAVE_RCU_TABLE_FREE
337337
bool
338338

339+
config HAVE_RCU_TABLE_INVALIDATE
340+
bool
341+
339342
config ARCH_HAVE_NMI_SAFE_CMPXCHG
340343
bool
341344

arch/arc/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ config ARC
4545
select HAVE_KERNEL_GZIP
4646
select HAVE_KERNEL_LZMA
4747

48+
config ARCH_HAS_CACHE_LINE_SIZE
49+
def_bool y
50+
4851
config MIGHT_HAVE_PCI
4952
bool
5053

arch/arc/include/asm/cache.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
})
4949

5050
/* Largest line length for either L1 or L2 is 128 bytes */
51-
#define ARCH_DMA_MINALIGN 128
51+
#define SMP_CACHE_BYTES 128
52+
#define cache_line_size() SMP_CACHE_BYTES
53+
#define ARCH_DMA_MINALIGN SMP_CACHE_BYTES
5254

5355
extern void arc_cache_init(void);
5456
extern char *arc_cache_mumbojumbo(int cpu_id, char *buf, int len);

arch/arc/include/asm/delay.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
#ifndef __ASM_ARC_UDELAY_H
1818
#define __ASM_ARC_UDELAY_H
1919

20+
#include <asm-generic/types.h>
2021
#include <asm/param.h> /* HZ */
2122

23+
extern unsigned long loops_per_jiffy;
24+
2225
static inline void __delay(unsigned long loops)
2326
{
2427
__asm__ __volatile__(

arch/arc/mm/cache.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ void flush_cache_mm(struct mm_struct *mm)
10351035
void flush_cache_page(struct vm_area_struct *vma, unsigned long u_vaddr,
10361036
unsigned long pfn)
10371037
{
1038-
unsigned int paddr = pfn << PAGE_SHIFT;
1038+
phys_addr_t paddr = pfn << PAGE_SHIFT;
10391039

10401040
u_vaddr &= PAGE_MASK;
10411041

@@ -1055,8 +1055,9 @@ void flush_anon_page(struct vm_area_struct *vma, struct page *page,
10551055
unsigned long u_vaddr)
10561056
{
10571057
/* TBD: do we really need to clear the kernel mapping */
1058-
__flush_dcache_page(page_address(page), u_vaddr);
1059-
__flush_dcache_page(page_address(page), page_address(page));
1058+
__flush_dcache_page((phys_addr_t)page_address(page), u_vaddr);
1059+
__flush_dcache_page((phys_addr_t)page_address(page),
1060+
(phys_addr_t)page_address(page));
10601061

10611062
}
10621063

arch/arc/plat-eznps/include/plat/ctop.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#error "Incorrect ctop.h include"
2222
#endif
2323

24+
#include <linux/types.h>
2425
#include <soc/nps/common.h>
2526

2627
/* core auxiliary registers */
@@ -143,6 +144,15 @@ struct nps_host_reg_gim_p_int_dst {
143144
};
144145

145146
/* AUX registers definition */
147+
struct nps_host_reg_aux_dpc {
148+
union {
149+
struct {
150+
u32 ien:1, men:1, hen:1, reserved:29;
151+
};
152+
u32 value;
153+
};
154+
};
155+
146156
struct nps_host_reg_aux_udmc {
147157
union {
148158
struct {

arch/arc/plat-eznps/mtm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616

1717
#include <linux/smp.h>
18+
#include <linux/init.h>
19+
#include <linux/kernel.h>
1820
#include <linux/io.h>
1921
#include <linux/log2.h>
2022
#include <asm/arcregs.h>
@@ -157,10 +159,10 @@ void mtm_enable_core(unsigned int cpu)
157159
/* Verify and set the value of the mtm hs counter */
158160
static int __init set_mtm_hs_ctr(char *ctr_str)
159161
{
160-
long hs_ctr;
162+
int hs_ctr;
161163
int ret;
162164

163-
ret = kstrtol(ctr_str, 0, &hs_ctr);
165+
ret = kstrtoint(ctr_str, 0, &hs_ctr);
164166

165167
if (ret || hs_ctr > MT_HS_CNT_MAX || hs_ctr < MT_HS_CNT_MIN) {
166168
pr_err("** Invalid @nps_mtm_hs_ctr [%d] needs to be [%d:%d] (incl)\n",

arch/arm/probes/kprobes/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ void __kprobes kprobe_handler(struct pt_regs *regs)
291291
break;
292292
case KPROBE_REENTER:
293293
/* A nested probe was hit in FIQ, it is a BUG */
294-
pr_warn("Unrecoverable kprobe detected at %p.\n",
295-
p->addr);
294+
pr_warn("Unrecoverable kprobe detected.\n");
295+
dump_kprobe(p);
296296
/* fall through */
297297
default:
298298
/* impossible cases */

arch/arm/probes/kprobes/test-core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,6 @@ static bool check_test_results(void)
15171517
print_registers(&result_regs);
15181518

15191519
if (mem) {
1520-
pr_err("current_stack=%p\n", current_stack);
15211520
pr_err("expected_memory:\n");
15221521
print_memory(expected_memory, mem_size);
15231522
pr_err("result_memory:\n");

0 commit comments

Comments
 (0)