mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-24 11:01:02 +00:00
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> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ocelot_ace.c | ||
| ocelot_ace.h | ||
| ocelot_ana.h | ||
| ocelot_board.c | ||
| ocelot_dev.h | ||
| ocelot_flower.c | ||
| ocelot_io.c | ||
| ocelot_police.c | ||
| ocelot_police.h | ||
| ocelot_ptp.h | ||
| ocelot_qs.h | ||
| ocelot_qsys.h | ||
| ocelot_regs.c | ||
| ocelot_rew.h | ||
| ocelot_s2.h | ||
| ocelot_sys.h | ||
| ocelot_tc.c | ||
| ocelot_tc.h | ||
| ocelot_vcap.h | ||
| ocelot.c | ||
| ocelot.h | ||