mirror-linux/drivers/thunderbolt
Jiri Slaby (SUSE) 55c91905b9 thunderbolt: Use correct type in tb_port_is_clx_enabled() prototype
commit d311376197 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>
2023-05-11 23:03:41 +09:00
..
Kconfig
Makefile
acpi.c
cap.c
ctl.c
ctl.h
debugfs.c thunderbolt: Fix memory leak in margining 2023-03-30 12:49:14 +02:00
dma_port.c
dma_port.h
dma_test.c
domain.c
eeprom.c
icm.c
lc.c
nhi.c thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit 2023-03-30 12:49:15 +02:00
nhi.h
nhi_ops.c
nhi_regs.h thunderbolt: Disable interrupt auto clear for rings 2023-03-30 12:49:15 +02:00
nvm.c
path.c
property.c
quirks.c thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers 2023-04-06 12:10:33 +02:00
retimer.c thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:49:15 +02:00
sb_regs.h thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:49:15 +02:00
switch.c thunderbolt: Call tb_check_quirks() after initializing adapters 2023-03-30 12:49:14 +02:00
tb.c
tb.h thunderbolt: Use correct type in tb_port_is_clx_enabled() prototype 2023-05-11 23:03:41 +09:00
tb_msgs.h
tb_regs.h
test.c
tmu.c
tunnel.c
tunnel.h
usb4.c thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers 2023-04-06 12:10:33 +02:00
usb4_port.c
xdomain.c