Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp155648yba; Mon, 20 May 2019 06:35:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTTby3AWbATquPCZwZuvlRdr+1oCgptJmgPDN2+oQa7ZcrYorVwq3XuZTY3KkA7wuz3bTo X-Received: by 2002:a17:902:108a:: with SMTP id c10mr76419181pla.48.1558359333889; Mon, 20 May 2019 06:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558359333; cv=none; d=google.com; s=arc-20160816; b=LlmTf6y4KafiwLuY9cqKhTmEQpwPm9vbIf2Yi6N1hjOc9XbaBHd8vunVGJ8I5qJJJ7 goQSZGMtGehSjG14+l3jep5yNb/EE5UTX4+6XaINwtoUw4yziyWwrF07yaHP/bU9LCUA 7cZSrmdgJ4nY5mFt2nz2LvajeM62Zmnoa83fPPwfU/s4B5h9L/Apv1RWSAE+RdFsedy2 lBInwkwqEcWUm5lwTm/GOihrx53ic0I/11lU9SXrwde2XXMiTf/fDALQMv2GAzgP+fT6 r8o7SCmDfQX0XrF4Kivf9kAgsCxVU3XCfkNEFMyiT0f+Dv2wMkAGLQq3lrxz9O84Ovxx 8AUg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=SVmG+KgAS/L8zReuTwf2tG62bM9a7Io4idy5Ia1ZZIw=; b=SjzllhhDjsoxTKHjw7e8TntnbM9B/5o014isSveE0xBR4XUqYT6N4SLIN2fd9WbLSz 6rCzOJP1dvdyUMOu6oiVe9DUkdCbx+f4pL0ETqgmLvAm+7hBRDEDh/16LuUHmbfKa3eB Sr6W47BXIsUZRmM4neel90to7HZTnqE6WCWfSubnovv9rlYeMHPD/rf8x7rwEF/Z1nbI j7XCHQsSqUBW+tUuCt1cTxbO9sMjxNAwzsgbO6YjjOsGykpBMzyIy8OmslMQy5o41A92 rQsjctQAoyjaF8SoNlk95Ds6JUdX/V6VDd/SeqmJu4QS1kEfOBBgYNnyMa/1jYFVrtil hitw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=CItiLunt; 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 i12si1883022plt.287.2019.05.20.06.35.18; Mon, 20 May 2019 06:35:33 -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=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=CItiLunt; 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 S1732243AbfETJg7 (ORCPT + 99 others); Mon, 20 May 2019 05:36:59 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41071 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732174AbfETJg7 (ORCPT ); Mon, 20 May 2019 05:36:59 -0400 Received: by mail-lj1-f193.google.com with SMTP id q16so781289ljj.8 for ; Mon, 20 May 2019 02:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SVmG+KgAS/L8zReuTwf2tG62bM9a7Io4idy5Ia1ZZIw=; b=CItiLuntAhzOMGH2VJ//VLpv/1cTB8FN7h7gueSZp7+ondzT4GAkchg89CIMQlKFCH +PTP10KnFd3DEk6wgkzuQkb6WmUByoW1S17NW/sqSFxs/pJAl0n1/KOiI5NwUo53VuN/ 3WhWE0Fo0J0Aw6fOq1nQ8XXjwhj9eeTaEnllHzRAz3S2QVQ8NX0gp02/99F/FWQnHm2o qk7JJ1qPEtuOeMjLcCwP+/Ht+TvyGGm6x5OONe8RshUFKQIwvWXfR4rJ/+NbLE5fz4qO 59F+Ga0fmI6oNS5NlIUbmYUQ9/00bX0wh08LL65062trdQZW43TGqsruRXx6pgzJ0AQx IKEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SVmG+KgAS/L8zReuTwf2tG62bM9a7Io4idy5Ia1ZZIw=; b=Oy4leXVmJ2moODaUmQB7M2DJNtKLBQTlIlb/kmt2RceTKjdDdNC0UZ/dhD7vpTYf9k gBceSWlEdm/uTULw8NOytFLNEA6GrkyRrFJk6GrxqR38cIJtbX2bjXSZJEVrbfxMjek4 vsUkMBRBCLwbgv19ZOChBOq5iQ7FN/XsZG/U20jBQ6Xb02BIfsaj3N6Itoy+zHVtvIF1 +rKpIYOPiv1keFr9d3rqA7uftYYKJJiL5YGPaWrOhtXn5Qb2jwk18WbqCZAcB6YOgqOt f2v6NeybPDdC5uhVwPVa9jq7GxfuRCCY5yGqqpHQGq1Irh0d6qXddVBnFTKFbwtBVFhf dNHw== X-Gm-Message-State: APjAAAWAw5liUrDypueBO9L9e/ijsK7xwB0ErBUYCYhzj+3BdsawC/Mp nsk5K6IJqI5MftKJX/61U7b4LqalZWw= X-Received: by 2002:a2e:9410:: with SMTP id i16mr7604284ljh.152.1558345016801; Mon, 20 May 2019 02:36:56 -0700 (PDT) Received: from [192.168.0.199] ([31.173.81.27]) by smtp.gmail.com with ESMTPSA id h25sm3594162ljb.80.2019.05.20.02.36.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 02:36:56 -0700 (PDT) Subject: Re: [PATCH] of_net: fix of_get_mac_address retval if compiled without CONFIG_OF To: =?UTF-8?Q?Petr_=c5=a0tetiar?= , Rob Herring , Frank Rowand , Andrew Lunn , Florian Fainelli , Heiner Kallweit Cc: Mirko Lindner , Stephen Hemminger , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1558268324-5596-1-git-send-email-ynezz@true.cz> From: Sergei Shtylyov Message-ID: <421e4a76-dbd7-73ac-d8cd-af0bcd789a03@cogentembedded.com> Date: Mon, 20 May 2019 12:36:50 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1558268324-5596-1-git-send-email-ynezz@true.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 19.05.2019 15:18, 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 It's either "I've forgotten" or just "I forgot". > of_get_mac_address in case where the kernel is compiled without > CONFIG_OF, so I'm doing so now. Well, better late... :-) > 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 [...] MBR, Sergei