• Marek Vasut's avatar
    net: dsa: ksz: Remove dead code and fix warnings · ffc60b55
    Marek Vasut authored
    Remove ksz_port_cleanup(), which is unused. Add missing include
    "ksz_common.h", which fixes the following warning when built with
    make ... W=1
    
    drivers/net/dsa/microchip/ksz_common.c:23:6: warning: no previous prototype for ‘...’ [-Wmissing-prototypes]
    
    Note that the order of the headers cannot be swapped, as that would
    trigger missing forward declaration errors, which would indicate the
    way forward is to merge the two headers into one.
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Andrew Lunn <andrew@lunn.ch>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Florian Fainelli <f.fainelli@gmail.com>
    Cc: Tristram Ha <Tristram.Ha@microchip.com>
    Cc: Vivien Didelot <vivien.didelot@gmail.com>
    Cc: Woojung Huh <woojung.huh@microchip.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ffc60b55
ksz_common.c 11.2 KB