diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-25 18:00:00 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-25 19:28:47 +0200 |
commit | a0c8c3372b41002e65dc109d431eb50da002e728 (patch) | |
tree | 9f8f80d3af881fb4328ab358b6143ca8345f4f1c /drivers/net/fddi | |
parent | net/tls: getsockopt supports complete algorithm list (diff) | |
download | linux-a0c8c3372b41002e65dc109d431eb50da002e728.tar.xz linux-a0c8c3372b41002e65dc109d431eb50da002e728.zip |
fddi: defza: add missing pointer type cast
hw_addr is a uint AKA unsigned int. dev_addr_set() takes
a u8 *.
drivers/net/fddi/defza.c:1383:27: error: passing argument 2 of 'dev_addr_set' from incompatible pointer type [-Werror=incompatible-pointer-types]
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 1e9258c389ee ("fddi: defxx,defza: use dev_addr_set()")
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://lore.kernel.org/r/20211025160000.2803818-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/fddi')
-rw-r--r-- | drivers/net/fddi/defza.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fddi/defza.c b/drivers/net/fddi/defza.c index 3a6b08eb5e1b..f5c25acaa577 100644 --- a/drivers/net/fddi/defza.c +++ b/drivers/net/fddi/defza.c @@ -1380,7 +1380,7 @@ static int fza_probe(struct device *bdev) goto err_out_irq; fza_reads(&init->hw_addr, &hw_addr, sizeof(hw_addr)); - dev_addr_set(dev, &hw_addr); + dev_addr_set(dev, (u8 *)&hw_addr); fza_reads(&init->rom_rev, &rom_rev, sizeof(rom_rev)); fza_reads(&init->fw_rev, &fw_rev, sizeof(fw_rev)); |