diff --git a/patches.suse/net-Extra-_get-in-declaration-of-arch_get_platform_m.patch b/patches.suse/net-Extra-_get-in-declaration-of-arch_get_platform_m.patch new file mode 100644 index 0000000..8358596 --- /dev/null +++ b/patches.suse/net-Extra-_get-in-declaration-of-arch_get_platform_m.patch @@ -0,0 +1,47 @@ +From 7cc263efedd57ce0dcbf2017802a281aaed6506b Mon Sep 17 00:00:00 2001 +From: Mathieu Malaterre +Date: Wed, 7 Feb 2018 20:35:00 +0100 +Subject: [PATCH 3/8] net: Extra '_get' in declaration of + arch_get_platform_mac_address +References: git-fixes +Patch-mainline: v4.16-rc1 +Git-commit: e728789c52afccc1275cba1dd812f03abe16ea3c + +In commit c7f5d105495a ("net: Add eth_platform_get_mac_address() helper."), +two declarations were added: + + int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); + unsigned char *arch_get_platform_get_mac_address(void); + +An extra '_get' was introduced in arch_get_platform_get_mac_address, remove +it. Fix compile warning using W=1: + + CC net/ethernet/eth.o +net/ethernet/eth.c:523:24: warning: no previous prototype for ‘arch_get_platform_mac_address’ [-Wmissing-prototypes] + unsigned char * __weak arch_get_platform_mac_address(void) + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + AR net/ethernet/built-in.o + +Signed-off-by: Mathieu Malaterre +Signed-off-by: David S. Miller +Signed-off-by: Denis Kirjanov +--- + include/linux/etherdevice.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h +index 43c37093823e..d7a8b407207d 100644 +--- a/include/linux/etherdevice.h ++++ b/include/linux/etherdevice.h +@@ -31,7 +31,7 @@ + #ifdef __KERNEL__ + struct device; + int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); +-unsigned char *arch_get_platform_get_mac_address(void); ++unsigned char *arch_get_platform_mac_address(void); + u32 eth_get_headlen(void *data, unsigned int max_len); + __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); + extern const struct header_ops eth_header_ops; +-- +2.16.4 + diff --git a/series.conf b/series.conf index f37869b..e6f01be 100644 --- a/series.conf +++ b/series.conf @@ -24461,6 +24461,7 @@ patches.suse/nfp-populate-MODULE_VERSION.patch patches.suse/netlink-ensure-to-loop-over-all-netns-in-genlmsg_mul.patch patches.suse/ibmvnic-queue-reset-when-CRQ-gets-closed-during-rese.patch + patches.suse/net-Extra-_get-in-declaration-of-arch_get_platform_m.patch patches.suse/net-sched-cls_u32-fix-cls_u32-on-filter-replace.patch patches.suse/rtlwifi-rtl8821ae-Fix-connection-lost-problem-correc patches.suse/ath10k-correct-the-length-of-DRAM-dump-for-QCA6174-h.patch