Commit b29cc397 authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Treehugger Robot
Browse files

UPSTREAM: usb: dwc3: core: Fix compile warning on s390 gcc in dwc3_get_phy call



Recent commit introduced support for reading Multiport PHYs and
while doing so iterated over an integer variable which runs from
[0-254] in the worst case scenario. But S390 compiler treats it as a
warning and complains that the integer write to string can go to 11
characters. Fix this by modifying iterator variable to u8.

Bug: 254441685
Suggested-by: default avatarJohan Hovold <johan@kernel.org>
Fixes: 30a46746 ("usb: dwc3: core: Refactor PHY logic to support Multiport Controller")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404241215.Mib19Cu7-lkp@intel.com/


Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
Reviewed-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240426050512.57384-1-quic_kriskura@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3f12222a)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: If11b5b866842a9e94edfdfcaa7c4aea1f575e0d2
parent 48ab183a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment