diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-02-09 16:27:44 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-02-09 16:27:44 +0000 |
| commit | 83e5b79c7c98a7f8c94a99b102bc8a90c195769a (patch) | |
| tree | 974910918b1b6360047a4c278f1a8e2f8b4acfcf | |
| parent | 3f18463745c9c75e1fdcfacc710799838ef5c9d9 (diff) | |
ext2fs: Use __sdt_used for variables only used by SDT probes
Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D55164
| -rw-r--r-- | sys/fs/ext2fs/ext2_extents.c | 6 |
1 files changed, 1 insertions, 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"; |
