Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2825307pxj; Mon, 31 May 2021 11:47:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZlnnLfJhxYAxrOdzDpUILNo2JRRzLm2FPjbkzvrF7hMvIWm7BalaK/UHx6c8hb/FnGc5h X-Received: by 2002:aa7:d550:: with SMTP id u16mr26818298edr.72.1622486871594; Mon, 31 May 2021 11:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622486871; cv=none; d=google.com; s=arc-20160816; b=xXO55pZEa/cAs//7R8q/pPuLFXAd0DLMVYSqoIu9ezn4KgHZKgCFcLsU8qsRXin6Ag P8UAyK4xBlUIzT9Pw0r+9RyVxEonB511pMzHV46vsZMZVqPs/kPJ40StaSkFbuDVUaQW mju4XRDENnSWAlasOGravlXavfjhfWD4wJlzXqyp+rbU+7p2sqro3U1EiIIAkw5sQRTF kbxoNyggMF3qlKaQMWuYCham4txJL2hbspfaOJcCJF0cubq2Dbh7RgNX8L6A/G2V+vZp IScVzhAe10J94lSNSq9b1Fk5U3r6uds3CTd9EnwCqUUMcmT4wIoXncq/XncdGbzCbJBc 52xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=DpPz72iIEQQbFLwMHu9BY4wdBKnmqA9j8+m8gf63O/k=; b=kWFrXCE0WttypBCC3DfqayT/GKUFUJmPEFS5j+JKCoXrUqAhvrOpyivr43fQIxYiLj +UhEUfMHEROqI+wAHSGqpFMBmQtoAJ3waMgo2lwIUc0fxRX8KCfzvdrmHHlQQWhXp2ow qz8J3R+VjvS8pm5y4OzIge+fdyEDCFk1MYh3TezoHiuTyhz+YWtBbyZWpvxVjAOMMLVS kB4CyxS+CEV4RfJogPSDqmWSRtXTgCK86j31i4VsXVs3Cwkm4woEJWP3cZ38sZn4v02F sQQ8YN1ldpqwOWNxCQ2EbqSnMLas5XYtFFl6cHFsYc0wIiNnj/fLWo+qkBBuOTlseTXb gIJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si13263681ejd.10.2021.05.31.11.47.28; Mon, 31 May 2021 11:47:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232006AbhEaSqQ (ORCPT + 99 others); Mon, 31 May 2021 14:46:16 -0400 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:53795 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231997AbhEaSqI (ORCPT ); Mon, 31 May 2021 14:46:08 -0400 Received: from [192.168.1.18] ([86.243.172.93]) by mwinf5d55 with ME id BWkQ2500Y21Fzsu03WkQDY; Mon, 31 May 2021 20:44:25 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 31 May 2021 20:44:25 +0200 X-ME-IP: 86.243.172.93 Subject: Re: [PATCH 4.19 096/116] net: netcp: Fix an error message To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, "David S. Miller" , Sasha Levin , Dan Carpenter References: <20210531130640.131924542@linuxfoundation.org> <20210531130643.385993582@linuxfoundation.org> From: Marion & Christophe JAILLET Message-ID: Date: Mon, 31 May 2021 20:44:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210531130643.385993582@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 31/05/2021 à 15:14, Greg Kroah-Hartman a écrit : > From: Christophe JAILLET > > [ Upstream commit ddb6e00f8413e885ff826e32521cff7924661de0 ] > > 'ret' is known to be 0 here. > The expected error code is stored in 'tx_pipe->dma_queue', so use it > instead. > > While at it, switch from %d to %pe which is more user friendly. > > Fixes: 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver") > Signed-off-by: Christophe JAILLET > Signed-off-by: David S. Miller > Signed-off-by: Sasha Levin > --- > drivers/net/ethernet/ti/netcp_core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c > index a1d335a3c5e4..60d411bbbdc6 100644 > --- a/drivers/net/ethernet/ti/netcp_core.c > +++ b/drivers/net/ethernet/ti/netcp_core.c > @@ -1364,8 +1364,8 @@ int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe) > tx_pipe->dma_queue = knav_queue_open(name, tx_pipe->dma_queue_id, > KNAV_QUEUE_SHARED); > if (IS_ERR(tx_pipe->dma_queue)) { > - dev_err(dev, "Could not open DMA queue for channel \"%s\": %d\n", > - name, ret); > + dev_err(dev, "Could not open DMA queue for channel \"%s\": %pe\n", > + name, tx_pipe->dma_queue); > ret = PTR_ERR(tx_pipe->dma_queue); > goto err; > } Hi, Apparently %pe is only supported up to (including) 5.5. It is not part of 5.4.123. So this patch should not be backported here or should be backported differently, ie:    leave dev_err as-is    move "ret = PTR_ERR(tx_pipe->dma_queue);" 1 line above (or %pe should be backported first) PS: adding Dan Carpenter because we had a small discussion about some potential backport issue when, using %pe CJ