From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D7BCC433ED for ; Wed, 14 Apr 2021 12:57:21 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9E2E861176 for ; Wed, 14 Apr 2021 12:57:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E2E861176 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FL2Yp5Xrhz3c0T for ; Wed, 14 Apr 2021 22:57:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.a=rsa-sha256 header.s=mail2016061301 header.b=VZL40Qx/; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=walle.cc (client-ip=2a01:4f8:151:8464::1:2; helo=ssl.serverraum.org; envelope-from=michael@walle.cc; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.a=rsa-sha256 header.s=mail2016061301 header.b=VZL40Qx/; dkim-atps=neutral Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FL2YJ2jyHz2yxv for ; Wed, 14 Apr 2021 22:56:50 +1000 (AEST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id E331F22236; Wed, 14 Apr 2021 14:56:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1618404993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nIqcTyZ0aGklq+mdSHotuPklBOhZa+ud8+bN5Q5+CPw=; b=VZL40Qx/ZFqrvlYpNa+CpUnri3A5IcdLrj+2SxpxVHAI8fYpizPcSIOU0o4IGsNgU2L8zb buzdqfa91h/T+Kc3jCccsyXkXKwvO0deOpvm1xgmDARKkJkG9wKdcW8QSFZ/zWqZRgSGou k2tTqyTzN0TuoPWxydGMvbSU0aMYGjo= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 14 Apr 2021 14:56:30 +0200 From: Michael Walle To: Dan Carpenter Subject: Re: [PATCH net-next v2 1/2] of: net: pass the dst buffer to of_get_mac_address() In-Reply-To: <20210414053336.GQ6021@kadam> References: <20210414053336.GQ6021@kadam> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@lists.01.org, lkp@intel.com, netdev@vger.kernel.org, kbuild@lists.01.org, linux-kernel@vger.kernel.org, ath9k-devel@qca.qualcomm.com, linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-amlogic@lists.infradead.org, UNGLinuxDriver@microchip.com, linuxppc-dev@lists.ozlabs.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Dan, Am 2021-04-14 07:33, schrieb Dan Carpenter: > url: > https://github.com/0day-ci/linux/commits/Michael-Walle/of-net-support-non-platform-devices-in-of_get_mac_address/20210406-234030 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > cc0626c2aaed8e475efdd85fa374b497a7192e35 > config: x86_64-randconfig-m001-20210406 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > smatch warnings: > drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2069 axienet_probe() > warn: passing a valid pointer to 'PTR_ERR' > > vim +/PTR_ERR +2069 drivers/net/ethernet/xilinx/xilinx_axienet_main.c > > 522856cefaf09d Robert Hancock 2019-06-06 2060 /* Check for > Ethernet core IRQ (optional) */ > 522856cefaf09d Robert Hancock 2019-06-06 2061 if (lp->eth_irq > <= 0) > 522856cefaf09d Robert Hancock 2019-06-06 2062 > dev_info(&pdev->dev, "Ethernet core IRQ not defined\n"); > 522856cefaf09d Robert Hancock 2019-06-06 2063 > 8a3b7a252dca9f Daniel Borkmann 2012-01-19 2064 /* Retrieve the > MAC address */ > 411b125c6ace1f Michael Walle 2021-04-06 2065 ret = > of_get_mac_address(pdev->dev.of_node, mac_addr); > 411b125c6ace1f Michael Walle 2021-04-06 2066 if (!ret) { > 411b125c6ace1f Michael Walle 2021-04-06 2067 > axienet_set_mac_address(ndev, mac_addr); > 411b125c6ace1f Michael Walle 2021-04-06 2068 } else { > d05a9ed5c3a773 Robert Hancock 2019-06-06 @2069 > dev_warn(&pdev->dev, "could not find MAC address property: %ld\n", > d05a9ed5c3a773 Robert Hancock 2019-06-06 2070 > PTR_ERR(mac_addr)); > > ^^^^^^^^^^^^^^^^^ > This should print "ret". Thanks, this was fixed (in the now merged) v4. I forgot to add you to that huge CC list. Sorry for that. -michael