diff options
author | Mathias Kresin <dev@kresin.me> | 2019-07-04 22:43:00 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-07-07 11:17:34 +0200 |
commit | 92b768d5f436a0eab809082f294e54e0185c5961 (patch) | |
tree | 606f42202ecad2d5abed8e9b3749633ac467805e /target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch | |
parent | a4bdae7cf2e850e6fe73c8bb3239570903c886ef (diff) | |
download | upstream-92b768d5f436a0eab809082f294e54e0185c5961.tar.gz upstream-92b768d5f436a0eab809082f294e54e0185c5961.tar.bz2 upstream-92b768d5f436a0eab809082f294e54e0185c5961.zip |
lantiq: fix etop compiler warnings
The following warnings are introduced by our own patches:
lantiq_etop.c:173:1: warning: no semicolon at end of struct or union
};
^
lantiq_etop.c: In function 'ltq_etop_change_mtu':
lantiq_etop.c:725:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
int max = ETH_HLEN + VLAN_HLEN + new_mtu + ETH_FCS_LEN;
^~~
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch')
-rw-r--r-- | target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch b/target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch index fe6aad2058..a382b9117c 100644 --- a/target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch +++ b/target/linux/lantiq/patches-4.19/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch @@ -203,7 +203,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> +early_param("ethaddr", setup_ethaddr); --- a/drivers/net/ethernet/lantiq_etop.c +++ b/drivers/net/ethernet/lantiq_etop.c -@@ -779,7 +779,11 @@ ltq_etop_init(struct net_device *dev) +@@ -780,7 +780,11 @@ ltq_etop_init(struct net_device *dev) if (err) goto err_hw; |