mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Per the reasoning in commit f811f58597 ("riscv: Replace __ASSEMBLY__
with __ASSEMBLER__ in non-uapi headers"), convert one last remaining
instance of __ASSEMBLY__ in the arch/riscv kprobes code. This entered
the tree from patches that were sent before Thomas' changes; and when
I reviewed the kprobes patches before queuing them, I missed this
instance.
Cc: Nam Cao <namcao@linutronix.dev>
Cc: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/linux-riscv/16b74b63-f223-4f0b-b6e5-31cea5e620b4@redhat.com/
Link: https://lore.kernel.org/linux-riscv/20250606070952.498274-1-thuth@redhat.com/
Signed-off-by: Paul Walmsley <pjw@kernel.org>
25 lines
704 B
C
25 lines
704 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
#ifndef TEST_KPROBES_H
|
|
#define TEST_KPROBES_H
|
|
|
|
/*
|
|
* The magic value that all the functions in the test_kprobes_functions array return. The test
|
|
* installs kprobes into these functions, and verify that the functions still correctly return this
|
|
* value.
|
|
*/
|
|
#define KPROBE_TEST_MAGIC 0xcafebabe
|
|
#define KPROBE_TEST_MAGIC_LOWER 0x0000babe
|
|
#define KPROBE_TEST_MAGIC_UPPER 0xcafe0000
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* array of addresses to install kprobes */
|
|
extern void *test_kprobes_addresses[];
|
|
|
|
/* array of functions that return KPROBE_TEST_MAGIC */
|
|
extern long (*test_kprobes_functions[])(void);
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* TEST_KPROBES_H */
|