From 77f8a69780746598bd01bdd9227bb666429fc0b8 Mon Sep 17 00:00:00 2001 From: David Wu Date: Tue, 10 Jan 2023 14:57:09 +0800 Subject: [PATCH] net: phy: rk630phy: Fix the compile error drivers/net/phy/rk630phy.c:97:37: error: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (aka 'unsigned long *') [-Werror,-Wincompatible-pointer-types] efuse_buf = nvmem_cell_read(cell, &len); ^~~~ ./include/linux/nvmem-consumer.h:62:56: note: passing argument to parameter 'len' here void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len); Signed-off-by: David Wu Change-Id: Iee69c589b532b067b57290bcb3e39f3402ea83e7 --- drivers/net/phy/rk630phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/rk630phy.c b/drivers/net/phy/rk630phy.c index 8d7265e891cd..260f79e9bf3e 100644 --- a/drivers/net/phy/rk630phy.c +++ b/drivers/net/phy/rk630phy.c @@ -87,7 +87,7 @@ static void rk630_phy_t22_get_tx_level_from_efuse(struct phy_device *phydev) unsigned int tx_level_10M = T22_TX_LEVEL_10M; unsigned char *efuse_buf; struct nvmem_cell *cell; - int len; + size_t len; cell = nvmem_cell_get(&phydev->mdio.dev, "txlevel"); if (IS_ERR(cell)) {