Received: by 10.223.176.5 with SMTP id f5csp1041940wra; Wed, 7 Feb 2018 11:37:49 -0800 (PST) X-Google-Smtp-Source: AH8x224wg+pFbTTrmdQMh2I2x2feMFI0W6YsXTMlDeIptngm1LvaF9H8Pnfb5/Mrb/FNBZYCijPt X-Received: by 2002:a17:902:507:: with SMTP id 7-v6mr7022397plf.0.1518032269725; Wed, 07 Feb 2018 11:37:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518032269; cv=none; d=google.com; s=arc-20160816; b=OMhcbfaZPaj1rz7g/ZbdiWKzHboVLPehNc+r3oaN3dgJH9arTbRGqvg6jchH1NI4OX BdGvPtorOGqn3BtqPm9l6sHu8Kmbh/ImWia25pk8H0LQQfd4+o3W7XsjMqO9fqVYc/IH 1uDd80gd8Aw/7VRNg2Pb9zCFObfIKOZaAiSWX7/73u7RW1qTyzmdWNVFwxjlSqX5DTG6 +RGU4QNIJiO3X9ByzGY/HfiPr2wQc8tYNV/FHDwoTTyYjci5uD5vYZf6+IHPewAj6aXL EDO7bnau0nBUbwHC3APH5sVraV9xhfTB3IXMoywcPNn9kXvh23br0Qm015fZM5LWnwQI GWfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=HEUV4bm/BkCbMYZL4igm90w+BV46ChuOnI/cIGjHi2M=; b=mqNuQCLVrPLj8abNKfnPFpjPQn5czY9lqP8Mi7HeTSkLzUoMcttMpA/GzN+KK7awBr DxxV3ddvC5hBwmgo/2y7l1ZX7cBCMe8pqP5GgcbNYz0LnQhAbCPppq/Mi+FLrkMpPw3H eGAD4vVFpC74wwNGuKMAuLSwJpT2k9lUQMWqjRwY3AKB6oQHCZDZEgvSOf99z+JtQRl3 smF9iXeOuk2dwWUxb0BXj+MRyS3zZLBiQ5UopugMLiohiBUrPHqslwqtm8Tefp9hzu7H RsL6KEvj7BBSTpwKS8iLIZIm5Hi1phz5KLAHciepeUWyZoBZ3WOaGkaAZK4i0epJ2Uhm NRQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ckkviNA+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25si1322982pgc.280.2018.02.07.11.37.35; Wed, 07 Feb 2018 11:37:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ckkviNA+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754632AbeBGTgT (ORCPT + 99 others); Wed, 7 Feb 2018 14:36:19 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:45988 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754002AbeBGTgR (ORCPT ); Wed, 7 Feb 2018 14:36:17 -0500 Received: by mail-wr0-f193.google.com with SMTP id h9so2300409wre.12; Wed, 07 Feb 2018 11:36:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HEUV4bm/BkCbMYZL4igm90w+BV46ChuOnI/cIGjHi2M=; b=ckkviNA+42d06qXbvTISnP+281wQgDmPXUzaq+rnt5iWPuATGf0F2GgTPirZIcNmvg Hc16pj1meNs1/KqoqxgznFnO46DbCSlak2Og5gNn8Ginc2ODbALSDlcDfm6L3mx10bU+ wYozLsHZ95sH1sUnuddDWiGQaIXKFasNYs4m6tWHRK6G9Qy4ep0o2pyaflHSynuroM9j Zm3KJOTu/AsyUCQ8AMO9PO9Ye2MoGNzU22gd96ryO0H/ZDF6G9Yyggs9SEfrMlShmbwy pw6jp0YPcdnz8eokqJHDyiBDS2tqv3tUa//OuQsqf7ilWJW9vSqazabHaF120bc1uzAk lkIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=HEUV4bm/BkCbMYZL4igm90w+BV46ChuOnI/cIGjHi2M=; b=MFtLMT1q6CGDXJ+KDXrnwSNFbNmClG98qCSz8iKkg0rGMCqHsc5iuJUnzV5/q7LUD6 O8XFxhj3xayTsoWMKeIY+YBhd3wCLrtvzODRDwsza8N9SVxVJiCZdRSXJgi7KHg7jUSw O2kuNiKpXmEuiMU0P3qpszWMN2kOxlPe2QhfPJTqY6EyM1Garj64M9zHWroVsiRcSa06 Xk7qNlKtOHocwTwlNxKgAQ0Vy8foiIpflvweNDs9Hniy12We16mdIXre8xZZ1e8DZ91M XfrqkyWXOOkx/efrQgWOJMPOlHvlV/TV0IFVS9LZ1P3O8jkb/jbQLe2lMVpN3zmwaa9Q FLZQ== X-Gm-Message-State: APf1xPCKCt58En7O0wKxqx00koUj6yyT2G34I58n/pcSk94Qo84FdSC3 qFjBX+YYigLE3p/hHBCW5nI= X-Received: by 10.223.157.129 with SMTP id p1mr6563613wre.95.1518032176417; Wed, 07 Feb 2018 11:36:16 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 19sm2089880wrx.73.2018.02.07.11.36.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 11:36:15 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 7ECD810C0388; Wed, 7 Feb 2018 20:36:14 +0100 (CET) From: Mathieu Malaterre To: "David S . Miller" Cc: trivial@kernel.org, Mathieu Malaterre , Andrew Lunn , Egil Hjelmeland , Vivien Didelot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: Extra '_get' in declaration of arch_get_platform_mac_address Date: Wed, 7 Feb 2018 20:35:00 +0100 Message-Id: <20180207193501.25446-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 263dbcad22fc..79563840c295 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.11.0