[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y1+9g7jgDY9Opg10@black.fi.intel.com>
Date: Mon, 31 Oct 2022 14:20:19 +0200
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: "Jiri Slaby (SUSE)" <jirislaby@...nel.org>
Cc: andreas.noever@...il.com, linux-kernel@...r.kernel.org,
Martin Liska <mliska@...e.cz>,
Michael Jamet <michael.jamet@...el.com>,
Yehezkel Bernat <YehezkelShB@...il.com>,
linux-usb@...r.kernel.org
Subject: Re: [PATCH] thunderbolt (gcc13): synchronize
tb_port_is_clx_enabled()'s 2nd param
Hi,
On Mon, Oct 31, 2022 at 12:43:23PM +0100, Jiri Slaby (SUSE) wrote:
> tb_port_is_clx_enabled() generates a valid warning with gcc-13:
> drivers/thunderbolt/switch.c:1286:6: error: conflicting types for 'tb_port_is_clx_enabled' due to enum/integer mismatch; have 'bool(struct tb_port *, unsigned int)' ...
> drivers/thunderbolt/tb.h:1050:6: note: previous declaration of 'tb_port_is_clx_enabled' with type 'bool(struct tb_port *, enum tb_clx)' ...
>
> I.e. the type of the 2nd parameter of tb_port_is_clx_enabled() in the
> declaration is unsigned int, while the definition spells enum tb_clx.
> Synchronize them to the latter. And do the same for
> tb_port_clx_supported() where the enum is propagated.
Actually in both places we want to have bitmask of possible states so I
think unsigned int is the right one here.
Powered by blists - more mailing lists