aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2023-05-23 14:19:04 +0000
committerChristos Margiolis <christos@FreeBSD.org>2023-05-23 14:19:04 +0000
commit27ff920e6a0e0a918b3addb8cb0704949e41b374 (patch)
tree75e52b0c6c5c582ed533e29857fb5da30d2571ac /sys/cddl/contrib
parent1e136a9cbd3a9d137037e47a53c1dba3be7f6925 (diff)
downloadsrc-27ff920e6a0e0a918b3addb8cb0704949e41b374.tar.gz
src-27ff920e6a0e0a918b3addb8cb0704949e41b374.zip
dtrace: remove ifdef around dtrace_instr_size()
Architectures that are not included in the #ifdef won't be able to compile libdtrace. This was tested on an ARM64 build. If the ifdef is removed, libdtrace can be compiled with no problems, otherwise it fails at libdtrace. Reviewed by: markj Approved by: markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39948
Diffstat (limited to 'sys/cddl/contrib')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h b/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
index 6b09a1761af9..a9730c356e9e 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
+++ b/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
@@ -2427,9 +2427,7 @@ extern void dtrace_helpers_destroy(proc_t *);
#endif /* _KERNEL */
-#if defined(__i386) || defined(__amd64) || defined (__riscv)
extern int dtrace_instr_size(uint8_t *instr);
-#endif
#if defined(__i386) || defined(__amd64)
extern int dtrace_dis_get_byte(void *p);