mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
powerpc: Add a probe_user_read_inst() function
Introduce a probe_user_read_inst() function to use in cases where probe_user_read() is used for getting an instruction. This will be more useful for prefixed instructions. Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Reviewed-by: Alistair Popple <alistair@popple.id.au> [mpe: Don't write to *inst on error, fold in __user annotations] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200506034050.24806-14-jniethe5@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
f8faaffaa7
commit
7ba68b2172
@@ -16,7 +16,7 @@ CFLAGS_code-patching.o += -DDISABLE_BRANCH_PROFILING
|
||||
CFLAGS_feature-fixups.o += -DDISABLE_BRANCH_PROFILING
|
||||
endif
|
||||
|
||||
obj-y += alloc.o code-patching.o feature-fixups.o pmem.o
|
||||
obj-y += alloc.o code-patching.o feature-fixups.o pmem.o inst.o
|
||||
|
||||
ifndef CONFIG_KASAN
|
||||
obj-y += string.o memcmp_$(BITS).o
|
||||
|
||||
Reference in New Issue
Block a user