[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230104205017.3e3cff38@kernel.org>
Date:   Wed, 4 Jan 2023 20:50:17 -0800
From:   Jakub Kicinski <kuba@...nel.org>
To:     Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc:     "David S . Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        Paolo Abeni <pabeni@...hat.com>,
        Michael Jamet <michael.jamet@...el.com>,
        Yehezkel Bernat <YehezkelShB@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH 3/3] net: thunderbolt: Add tracepoints
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
?
Powered by blists - more mailing lists