• Moritz Fischer's avatar
    net: nixge: Address compiler warnings about signedness · a86b74d3
    Moritz Fischer authored
    Fixes the following warnings:
    warning: pointer targets in passing argument 1 of
    ‘is_valid_ether_addr’ differ in signedness [-Wpointer-sign]
      if (mac_addr && is_valid_ether_addr(mac_addr)) {
                                          ^~~~~~~~
    expected ‘const u8 * {aka const unsigned char *}’ but argument
    is of type ‘const char *’
     static inline bool is_valid_ether_addr(const u8 *addr)
                        ^~~~~~~~~~~~~~~~~~~
    warning: pointer targets in passing argument 2 of
    ‘ether_addr_copy’ differ in signedness [-Wpointer-sign]
       ether_addr_copy(ndev->dev_addr, mac_addr);
                                       ^~~~~~~~
    expected ‘const u8 * {aka const unsigned char *}’ but argument
    is of type ‘const char *’
     static inline void ether_addr_copy(u8 *dst, const u8 *src)
    Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a86b74d3
nixge.c 35.8 KB