compat: fix warning on trace backport for 2.6.29 and older