linux_dsm_epyc7002/drivers/net/ethernet/freescale/fman
Andrew Lunn 0c65b2b90d net: of_get_phy_mode: Change API to solve int/unit warnings
Before this change of_get_phy_mode() returned an enum,
phy_interface_t. On error, -ENODEV etc, is returned. If the result of
the function is stored in a variable of type phy_interface_t, and the
compiler has decided to represent this as an unsigned int, comparision
with -ENODEV etc, is a signed vs unsigned comparision.

Fix this problem by changing the API. Make the function return an
error, or 0 on success, and pass a pointer, of type phy_interface_t,
where the phy mode should be stored.

v2:
Return with *interface set to PHY_INTERFACE_MODE_NA on error.
Add error checks to all users of of_get_phy_mode()
Fixup a few reverse christmas tree errors
Fixup a few slightly malformed reverse christmas trees

v3:
Fix 0-day reported errors.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-04 11:21:25 -08:00
..
fman_dtsec.c fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman_dtsec.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman_keygen.c fsl/fman: include IPSEC SPI in the Keygen extraction 2019-05-28 11:21:03 -07:00
fman_keygen.h fsl/fman: enable FMan Keygen 2017-08-28 16:41:00 -07:00
fman_mac.h fsl/fman: remove leftover comment 2016-10-04 10:08:44 +03:00
fman_memac.c fsl/fman: Use GFP_ATOMIC in {memac,tgec}_add_hash_mac_address() 2018-12-28 21:54:12 -08:00
fman_memac.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman_muram.c fsl/fman: split lines over 80 characters 2016-10-04 09:26:05 +03:00
fman_muram.h fsl/fman: split lines over 80 characters 2016-10-04 09:26:05 +03:00
fman_port.c fsl/fman: remove unused struct member 2019-10-24 15:21:58 -07:00
fman_port.h fsl/fman: add API to get the device behind a fman port 2019-10-24 15:21:58 -07:00
fman_sp.c fsl/fman: fix loadable module compilation 2016-10-04 09:26:05 +03:00
fman_sp.h fsl/fman: Add FMan SP support 2015-12-27 20:51:40 -05:00
fman_tgec.c fsl/fman: Use GFP_ATOMIC in {memac,tgec}_add_hash_mac_address() 2018-12-28 21:54:12 -08:00
fman_tgec.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
fman.c fsl/fman: don't touch liodn base regs reserved on non-PAMU SoCs 2019-10-24 15:21:57 -07:00
fman.h fsl/fman: define frame description command UPD 2018-06-26 22:15:14 +09:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mac.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
mac.h fsl/fman: add set_tstamp interface 2018-06-26 22:15:14 +09:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00