Subject: Re: [PATCH 3/3] net: thunderbolt: Add tracepoints

From: Jakub Kicinski <[email-masked]>
Date: Wed, 4 Jan 2023 20:50:17 -0800

On Wed,  4 Jan 2023 10:17:31 +0200 Mika Westerberg wrote:
> +DECLARE_EVENT_CLASS(tbnet_ip_frame,
> +	TP_PROTO(u32 size, u32 id, u32 index, u32 count),
> +	TP_ARGS(size, id, index, count),
> +	TP_STRUCT__entry(
> +		__field(u32, size)
> +		__field(u32, id)
> +		__field(u32, index)
> +		__field(u32, count)
> +	),
> +	TP_fast_assign(
> +		__entry->size = le32_to_cpu(size);
> +		__entry->id = le32_to_cpu(id);
> +		__entry->index = le32_to_cpu(index);
> +		__entry->count = le32_to_cpu(count);

Looks like sparse is not happy with the byte swaps, perhaps PROTO
can also use the __le32 type?

Could you make sure there are no new warnings when building with

  make drivers/net/thunderbolt/ C=1 W=1

?