lede/target
Christian Marangi 92fbd549a3 generic: fix wrong PTR_ERR use in of net mac address ascii patch
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);
      |                        ^~~~~~~~~~~~~~~~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-22 19:45:20 +08:00
..
imagebuilder sync with upstream (#10562) 2022-12-08 14:20:57 +08:00
linux generic: fix wrong PTR_ERR use in of net mac address ascii patch 2022-12-22 19:45:20 +08:00
llvm-bpf toolchain: add llvm-bpf 2022-04-07 01:01:05 +08:00
sdk sync with upstream (#10562) 2022-12-08 14:20:57 +08:00
toolchain sync with upstream (#10562) 2022-12-08 14:20:57 +08:00
Config.in sync with upstream (#10562) 2022-12-08 14:20:57 +08:00
Makefile ipq60xx: add dma arm64 api patch 2022-09-13 15:19:06 +08:00