git: 27ff920e6a0e - main - dtrace: remove ifdef around dtrace_instr_size()

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Tue, 23 May 2023 14:19:49 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=27ff920e6a0e0a918b3addb8cb0704949e41b374

commit 27ff920e6a0e0a918b3addb8cb0704949e41b374
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2023-05-23 14:19:04 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2023-05-23 14:19:04 +0000

    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
---
 sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h | 2 --
 1 file changed, 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);