]> git.baikalelectronics.ru Git - kernel.git/commit
net: nixge: Address compiler warnings about signedness
authorMoritz Fischer <mdf@kernel.org>
Fri, 4 May 2018 17:18:34 +0000 (10:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 May 2018 03:30:03 +0000 (23:30 -0400)
commit95778b5e3b1749717efbd793cfd6b1fc039e07f3
tree8ef4b99bcdfa2219f4d8c9d852458eb46fc677c9
parentb2b958407fb6c73841bcfd7406f62b07c8428c64
net: nixge: Address compiler warnings about signedness

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: Moritz Fischer <mdf@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ni/nixge.c