Skip to content

Commit a86b74d

Browse files
mfischerdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent abcd3d6 commit a86b74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ni/nixge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ static int nixge_probe(struct platform_device *pdev)
11831183
struct nixge_priv *priv;
11841184
struct net_device *ndev;
11851185
struct resource *dmares;
1186-
const char *mac_addr;
1186+
const u8 *mac_addr;
11871187
int err;
11881188

11891189
ndev = alloc_etherdev(sizeof(*priv));

0 commit comments

Comments
 (0)