aboutsummaryrefslogtreecommitdiff
path: root/target/linux/lantiq/patches-5.15/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
Commit message (Collapse)AuthorAge
* lantiq: replace random_ether_addr with eth_random_addrAleksander Jan Bajkowski2023-06-10
| | | | | | | | | | | Random_ether_addr() is a helper function which was kept for backward compatibility. It is available in the kernel from version 3.6 to 5.16. In newer kernel verions, it has been completely replaced by eth_random_addr(). There should be no functional changes. Ref: https://github.com/torvalds/linux/commit/ba530fea8ca1b57ee71d4e62f287a5d7ed92f789 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
* lantiq: fix compilation warning in lantiq_etop_initAleksander Jan Bajkowski2023-05-12
| | | | | | | | | | | | | | | | | | | | | Commit c5cc3d96109a ("lantiq: Change the data-type of mac address in ETOP driver") changed the type of the mac variable. Since then, the priv->mac check always evaluates as true, so this check can be removed. This fix compilation warning: drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_init': drivers/net/ethernet/lantiq_etop.c:775:13: warning: the comparison will always evaluate as 'true' for the address of 'mac' will never be NULL [-Waddress] 775 | if (priv->mac && !is_valid_ether_addr(mac.sa_data)) | ^~~~ drivers/net/ethernet/lantiq_etop.c:157:23: note: 'mac' declared here 157 | unsigned char mac[6]; | cc1: all warnings being treated as errors Fixes: c5cc3d96109a ("lantiq: Change the data-type of mac address in ETOP driver") Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> [ fix wrong fixes tag format ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* lantiq: copy Linux 5.10 files in preparation for Linux 5.15 supportMartin Blumenstingl2022-10-22
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>