openwrt/target/linux/generic
Christian Marangi c3c9ef598c
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);
      |                        ^~~~~~~~~~~~~~~~~~

Fixes: 7b863af180 ("kernel: move mac-address-ascii patches to generic")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-13 00:33:19 +01:00
..
backport-5.10 kernel: bump 5.10 to 5.10.158 2022-12-11 02:43:28 +01:00
backport-5.15 kernel: bump 5.15 to 5.15.82 2022-12-11 02:42:52 +01:00
files kernel: move ubnt ledbar driver to a separate package 2022-09-30 11:28:51 +02:00
hack-5.10 generic: fix wrong PTR_ERR use in of net mac address ascii patch 2022-12-13 00:33:19 +01:00
hack-5.15 generic: fix wrong PTR_ERR use in of net mac address ascii patch 2022-12-13 00:33:19 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.10 kernel: Refresh kernel 5.10 2022-12-11 16:42:16 +01:00
pending-5.15 kernel: bump 5.15 to 5.15.82 2022-12-11 02:42:52 +01:00
config-5.10 sunxi: fix sunxi-ir kconfig and description 2022-12-12 09:06:17 +01:00
config-5.15 sunxi: fix sunxi-ir kconfig and description 2022-12-12 09:06:17 +01:00
config-filter kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00