diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2022-12-12 11:29:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-11 23:11:36 +0900 |
commit | f4393ae16e4c9c9430edbfdc3b70f0e17fcf3106 (patch) | |
tree | 507cc5e4c10ac40772e40ccba20fd40c32792576 /lib/debugobjects.c | |
parent | 6dbd709df900f80f687737954b2b8298c48c6747 (diff) |
thunderbolt: Use correct type in tb_port_is_clx_enabled() prototype
commit d31137619776f9c173a46a79bc7733a2b106061f upstream.
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 former as the parameter is in fact a mask of the
enum values.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions