ext2fs: Use __sdt_used for variables only used by SDT probes

Reviewed by:	imp, markj
Differential Revision:	https://reviews.freebsd.org/D55164
This commit is contained in:
John Baldwin
2026-02-09 11:27:44 -05:00
parent 3f18463745
commit 83e5b79c7c
+1 -5
View File
@@ -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";