mirror of
https://github.com/hzyitc/openwrt-redmi-ax3000.git
synced 2025-12-24 20:32:39 +00:00
nvmem_cell_read return a pointer error when an error occurs. Currently
we convert the pointer error to an int while the rest of the function
return a void* and expcet an error pointer. Fix this PTR_ERR msuse
fixing compilation warning.
Fixes the following compilation warning:
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address':
net/ethernet/eth.c:547:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
547 | return PTR_ERR(mac);
| ^~~~~~~~~~~~
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address_ascii':
net/ethernet/eth.c:564:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
564 | return PTR_ERR(mac_ascii);
| ^~~~~~~~~~~~~~~~~~
Fixes:
|
||
|---|---|---|
| .. | ||
| backport-5.10 | ||
| backport-5.15 | ||
| files | ||
| hack-5.10 | ||
| hack-5.15 | ||
| image | ||
| other-files | ||
| pending-5.10 | ||
| pending-5.15 | ||
| config-5.10 | ||
| config-5.15 | ||
| config-filter | ||
| PATCHES | ||