mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
c3c9ef598c
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:
|
||
---|---|---|
.. | ||
204-module_strip.patch | ||
205-kconfig-abort-configuration-on-unset-symbol.patch | ||
210-darwin_scripts_include.patch | ||
211-darwin-uuid-typedef-clash.patch | ||
212-tools_portability.patch | ||
214-spidev_h_portability.patch | ||
220-arm-gc_sections.patch | ||
221-module_exports.patch | ||
230-openwrt_lzma_options.patch | ||
250-netfilter_depends.patch | ||
251-kconfig.patch | ||
253-ksmbd-config.patch | ||
259-regmap_dynamic.patch | ||
260-crypto_test_dependencies.patch | ||
261-lib-arc4-unhide.patch | ||
280-rfkill-stubs.patch | ||
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch | ||
321-powerpc_crtsavres_prereq.patch | ||
402-mtd-blktrans-call-add-disks-after-mtd-device.patch | ||
410-block-fit-partition-parser.patch | ||
420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch | ||
421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch | ||
430-mtk-bmt-support.patch | ||
600-bridge_offload.patch | ||
601-of_net-add-mac-address-ascii-support.patch | ||
645-netfilter-connmark-introduce-set-dscpmark.patch | ||
650-netfilter-add-xt_FLOWOFFLOAD-target.patch | ||
651-wireless_mesh_header.patch | ||
660-fq_codel_defaults.patch | ||
661-kernel-ct-size-the-hashtable-more-adequately.patch | ||
700-swconfig_switch_drivers.patch | ||
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch | ||
720-net-phy-add-aqr-phys.patch | ||
721-net-add-packet-mangeling.patch | ||
722-net-phy-aquantia-enable-AQR112-and-AQR412.patch | ||
723-net-phy-aquantia-fix-system-side-protocol-mi.patch | ||
724-net-phy-aquantia-Add-AQR113-driver-support.patch | ||
725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch | ||
760-net-usb-r8152-add-LED-configuration-from-OF.patch | ||
761-dt-bindings-net-add-RTL8152-binding-documentation.patch | ||
773-bgmac-add-srab-switch.patch | ||
780-usb-net-MeigLink_modem_support.patch | ||
790-SFP-GE-T-ignore-TX_FAULT.patch | ||
800-GPIO-add-named-gpio-exports.patch | ||
901-debloat_sock_diag.patch | ||
902-debloat_proc.patch | ||
904-debloat_dma_buf.patch | ||
910-kobject_uevent.patch | ||
911-kobject_add_broadcast_uevent.patch | ||
920-device_tree_cmdline.patch | ||
930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch |