From nobody Tue May 23 14:19:49 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQc056HZhz4CXJK; Tue, 23 May 2023 14:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQc055gNTz42rV; Tue, 23 May 2023 14:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684851589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jdZbeSAsCLwg87TUHSiPmwCop11oq8IrDV+xuu6yP4o=; b=Xoacm+Nl/pK72x4Nxrqj2bzuuAa1W5mEyhQsMbnnuj/kLZyOMrJHXpm6/4G2FIWih/td5Y FtsH8KYKJhI4V1sh//+/O3bQGcRHkXXNZGTm1ElewwlxtwhB6B+bBuuyzeAACj9CP6p1mw gC68ZY1qhqxmiuO8H1NNM4kHWS/Gsi4y79FRMuagKZwYhPrf4dEXhp7PVCRt09zmMyJxV+ stn/gyuZhvxFW61ToXjtGkOFi4hU/n6ql6u57ylt5hLbkbK6UtE4uGK7Lw8pc5r1hFSmUC s1EfsGtd2AmJI+IWImNdeZLiXkJH8NgqsKAeMMd/iMZglfSAjWMrYLIs9yy6Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684851589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jdZbeSAsCLwg87TUHSiPmwCop11oq8IrDV+xuu6yP4o=; b=qn1PhkzyX4y9F7x4FsUsMkTE3RJjXLg6fvzXxXf/suNEbpiDu7N7Adg34e+v9BpwVC5ncJ Sj/iYvZusivhnFDrjw6+8Fu44dFED/ND5PIP8gsVpR1dRkrr+PUDg6DkzvDbUrWdiUZXx4 +v0jiVHN6PqVRdYMApf5dDjKwXK1luKJM3XrCRfI3z0SJuT0+evQp2A52wKo9orsfO21Vo 3nmlIacfxrruhdhS7ifyHl244g4op9LQlxys34n5P42I8Sz3KkU3Vj3s0sje4rzhfZ0sE9 PCDNFPGzUTKdFwNlm3gaQbHQlIZf2Wa91mpRUNrHd+DMxSCuT2lDAN/uC0C8HA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684851589; a=rsa-sha256; cv=none; b=QEduW1orrZlv1XcZbrjL9Ra4Kgx36loKOWZ2SkiyRjZHJvLZEtSCeU5iD22RNN4HHAcetj s4sB+17oe6RflqfjbWlexYB25t6lTp435Q1aL2+pFoJ+AuynMPGjBQMKs467YF0EyflBUU KZ5VS2vbWNA9JnFCM1D6hOYKh7UJjHxmL20pZtrOJ7pXFksvxmmCBVzUoIVHxZ4CEOP+6u KEr/JtNme9W74DdVngQhZyY7XE09Subc3fyYEcCXZV2RtXFMoKwuC4xKXD0PRNF4G6vonU A3LDD+9J4tcjYvAJlMWrl3dXHX6bhnWKG+nU8tCmZpSGYb5DfdGxN+EoA3X+KA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QQc0543tnz13Sg; Tue, 23 May 2023 14:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34NEJnWs099896; Tue, 23 May 2023 14:19:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34NEJnw3099895; Tue, 23 May 2023 14:19:49 GMT (envelope-from git) Date: Tue, 23 May 2023 14:19:49 GMT Message-Id: <202305231419.34NEJnw3099895@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 27ff920e6a0e - main - dtrace: remove ifdef around dtrace_instr_size() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 27ff920e6a0e0a918b3addb8cb0704949e41b374 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=27ff920e6a0e0a918b3addb8cb0704949e41b374 commit 27ff920e6a0e0a918b3addb8cb0704949e41b374 Author: Christos Margiolis AuthorDate: 2023-05-23 14:19:04 +0000 Commit: Christos Margiolis 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);