Skip to content

Commit 21873bd

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Catalin Marinas: "Most of issues addressed were introduced during this merging window. - Initialise jump labels before setup_machine_fdt(), needed by commit f5bda35 ("random: use static branch for crng_ready()"). - Sparse warnings: missing prototype, incorrect __user annotation. - Skip SVE kselftest if not sufficient vector lengths supported" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported arm64: Initialize jump labels before setup_machine_fdt() arm64: hibernate: Fix syntax errors in comments arm64: Remove the __user annotation for the restore_za_context() argument ftrace/fgraph: fix increased missing-prototypes warnings
2 parents f66e797 + 78c09c0 commit 21873bd

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

arch/arm64/kernel/hibernate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ int swsusp_arch_resume(void)
427427
return rc;
428428

429429
/*
430-
* We need a zero page that is zero before & after resume in order to
430+
* We need a zero page that is zero before & after resume in order
431431
* to break before make on the ttbr1 page tables.
432432
*/
433433
zero_page = (void *)get_safe_page(GFP_ATOMIC);

arch/arm64/kernel/setup.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,14 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p)
303303
early_fixmap_init();
304304
early_ioremap_init();
305305

306-
setup_machine_fdt(__fdt_pointer);
307-
308306
/*
309307
* Initialise the static keys early as they may be enabled by the
310-
* cpufeature code and early parameters.
308+
* cpufeature code, early parameters, and DT setup.
311309
*/
312310
jump_label_init();
311+
312+
setup_machine_fdt(__fdt_pointer);
313+
313314
parse_early_param();
314315

315316
/*

arch/arm64/kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static int preserve_za_context(struct za_context __user *ctx)
385385
return err ? -EFAULT : 0;
386386
}
387387

388-
static int restore_za_context(struct user_ctxs __user *user)
388+
static int restore_za_context(struct user_ctxs *user)
389389
{
390390
int err;
391391
unsigned int vq;

kernel/trace/fgraph.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ int ftrace_graph_active;
3030
/* Both enabled by default (can be cleared by function_graph tracer flags */
3131
static bool fgraph_sleep_time = true;
3232

33+
#ifdef CONFIG_DYNAMIC_FTRACE
3334
/*
3435
* archs can override this function if they must do something
3536
* to enable hook for graph tracer.
@@ -47,6 +48,7 @@ int __weak ftrace_disable_ftrace_graph_caller(void)
4748
{
4849
return 0;
4950
}
51+
#endif
5052

5153
/**
5254
* ftrace_graph_stop - set to permanently disable function graph tracing

tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* supported and is expected to segfault.
77
*/
88

9+
#include <kselftest.h>
910
#include <signal.h>
1011
#include <ucontext.h>
1112
#include <sys/prctl.h>
@@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td)
4041
/* We need at least two VLs */
4142
if (nvls < 2) {
4243
fprintf(stderr, "Only %d VL supported\n", nvls);
44+
td->result = KSFT_SKIP;
4345
return false;
4446
}
4547

0 commit comments

Comments
 (0)