The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=83e5b79c7c98a7f8c94a99b102bc8a90c195769a

commit 83e5b79c7c98a7f8c94a99b102bc8a90c195769a
Author:     John Baldwin <[email protected]>
AuthorDate: 2026-02-09 16:27:44 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2026-02-09 16:27:44 +0000

    ext2fs: Use __sdt_used for variables only used by SDT probes
    
    Reviewed by:    imp, markj
    Differential Revision:  https://reviews.freebsd.org/D55164
---
 sys/fs/ext2fs/ext2_extents.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sys/fs/ext2fs/ext2_extents.c b/sys/fs/ext2fs/ext2_extents.c
index 146aa48f6743..0aa709a8e354 100644
--- a/sys/fs/ext2fs/ext2_extents.c
+++ b/sys/fs/ext2fs/ext2_extents.c
@@ -447,11 +447,7 @@ static int
 ext4_ext_check_header(struct inode *ip, struct ext4_extent_header *eh,
     int depth)
 {
-#ifdef KDTRACE_HOOKS
-       char *error_msg;
-#else
-       char *error_msg __unused;
-#endif
+       char *error_msg __sdt_used;
 
        if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) {
                error_msg = "header: invalid magic";

Reply via email to