Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4106863yba; Sun, 19 May 2019 10:50:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC2/Nvi1qrYt7yTu0kr7gGCkhn81Ts/8kCdt9rZdIPZ2hEB/dvD1wjMNCbUBnaijSF1Kau X-Received: by 2002:aa7:8083:: with SMTP id v3mr11321252pff.135.1558288224960; Sun, 19 May 2019 10:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558288224; cv=none; d=google.com; s=arc-20160816; b=c8btHlybnzL3UmuVi8cNZnniNl+DRlWVYWkiIK40eaXCQT95CiJXz6dzz+fXbmvMqa qGIS5RFhcIyGFmUlh0BpVzRJ66WCiuPr6t7/v5XssZBLoYPU+qQfhhzCACQf4hq+67Gk H295kqqLJ5lA5+cIMEu5LmnL4da8/V312NcEZzyjNsQpXdNXkwvitA4F1lScWVcbrw18 tVNMlCJJPyx4lW0ubiLhufrHfaq58F1AcqAGhgU/QW78sjWfL35P1yrKjbO3aeWCidve CIvh30/JQQLiDa/IL1RbEJ1cdDNezmPJMp/DMyQuCc9RlKlLFpzk+A4AfMWqLdr2kHt3 QaVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nGfJ2GuiWeyt9rdjobbqK26MJz6zWpxPp9VLVvLGkgg=; b=NkKH8iK6UZOfV6svSXduM3CB1yMSgLhhllyYZWZ8NlVSmC/IqvMW+n0UcLbOsYrh0E FN8DVBHcHa6o6flBP11nBzBRUUhpVrEEiezhIZ3qKZV/2blI9IYEk2Y8sWXcYUsQO+q5 FtJ4/83LWVICzhmbAep4FURKJDBKSrMy6BHp5qBIiNuQWg1wQmjlG0PIhvP18+DT4Lg1 gcL27gCxi615vtYdZe+w78mgwtTif66YSHir5Z0+nzyojBgi+sPYcRqXEzpUUTxlfmFP lHldfM3kZkk636/JWTfkfbXB+u+7aRZdLPemu2576m+UvW5ijhg+ujIKimRu8v3PaYvj Fo4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=slfu0BFz; 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 p188si16645935pfp.112.2019.05.19.10.50.10; Sun, 19 May 2019 10:50:24 -0700 (PDT) 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=@lunn.ch header.s=20171124 header.b=slfu0BFz; 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 S1728542AbfESRr6 (ORCPT + 99 others); Sun, 19 May 2019 13:47:58 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39363 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfESRr6 (ORCPT ); Sun, 19 May 2019 13:47:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nGfJ2GuiWeyt9rdjobbqK26MJz6zWpxPp9VLVvLGkgg=; b=slfu0BFzLQZn1MmTp8hvrsCDeP n2F9RinHqlueAn0CJbdWP+F9UROtNCunHcWodts0o01XtaINKnv04y3eAUwf39bsJpe5iPFvWzywb ik0VOfEmH09QalAOH1lWpLPzll0uyscXaV+v12FeXr0ykAQtOae7BXuaeuEBdzHAOrU8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hSMOl-0005Vi-PL; Sun, 19 May 2019 16:02:47 +0200 Date: Sun, 19 May 2019 16:02:47 +0200 From: Andrew Lunn To: Petr =?utf-8?Q?=C5=A0tetiar?= Cc: Rob Herring , Frank Rowand , Florian Fainelli , Heiner Kallweit , Mirko Lindner , Stephen Hemminger , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of_net: fix of_get_mac_address retval if compiled without CONFIG_OF Message-ID: <20190519140247.GB30854@lunn.ch> References: <1558268324-5596-1-git-send-email-ynezz@true.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1558268324-5596-1-git-send-email-ynezz@true.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 19, 2019 at 02:18:44PM +0200, Petr Štetiar wrote: > of_get_mac_address prior to commit d01f449c008a ("of_net: add NVMEM > support to of_get_mac_address") could return only valid pointer or NULL, > after this change it could return only valid pointer or ERR_PTR encoded > error value, but I've forget to change the return value of > of_get_mac_address in case where the kernel is compiled without > CONFIG_OF, so I'm doing so now. > > Cc: Mirko Lindner > Cc: Stephen Hemminger > Fixes: d01f449c008a ("of_net: add NVMEM support to of_get_mac_address") > Reported-by: Octavio Alvarez > Signed-off-by: Petr Štetiar Reviewed-by: Andrew Lunn Andrew