Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2918718pxj; Mon, 31 May 2021 14:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzlUEPGkONUiZ/+xX71CAj8P5j0o+OHsb69+5evkOKAPudVRmbP1UULcQuF/ULdbcsw+OD X-Received: by 2002:a5d:88c4:: with SMTP id i4mr18616179iol.210.1622497480932; Mon, 31 May 2021 14:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622497480; cv=none; d=google.com; s=arc-20160816; b=EfFrrwD2c9iAg7jSvZaMo84wVScgN8uiXVUQQ+BcKKOfF7dZ93TcjosRKrfleFU4c3 vxAeIuSmwlbu62P6tGes9mpAAOZpqtBvuMU6K/LbQWqoe51lOeVjKBF+VaZb23rrRQsR 34hM7fitxrCebKnyJDIsIv3YdzguJP0IqpKil+LqYtSSt4AZqg2c7Yu3jGPuANm7izws 6jyXN7oOlFNlcMfyT248PZLu5igwk6K4pId70cM8vFUJ7Mw2Uyr02MXogU78E6M8LWa/ S/8LOdMCJNMhfeV+bj6/mWBeipwCSOuhBSN963o6vpQjyjNpy6hI7NJZ+8fyyf7nwSCA M/gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RhBx6tz4KOVvPzj/U26CVVFT6TE8iihZJuID/2X/v20=; b=P1v6sZYMsjbfrxoyrJMeaiH9x0IyAdh4k99LEkEGhPQOhxtCv0fy3Tt4B8CTLxUqW3 vMFCiJSfK0VkH7MEpYnS7KkfW2aNASXS5xSRdX+oH+Xo4J6f7to9/38EmS+dwMZeu2ou gRlDtFv/gWryDpMu/qAlbFNsjr0J3fl3c4CHIGqTLM/mB/CClG6i+gSyklLxasqyHXeX WVPovAQdVAQyF2xIoxhnm/vAhJsaZ6LXLbmUb7IcpPNZcprqN/XBpdRyKEeY+7HPfhcM mSbhKl0JMHx1IJ2zVQKLpf3oK1/c0BAYh9N3LaFdvj3LUW1LuZ84LjSSvs0Q+RjfqzqK bj5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dv2L+3Sy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si9355895ilc.83.2021.05.31.14.44.27; Mon, 31 May 2021 14:44:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dv2L+3Sy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232221AbhEaVoM (ORCPT + 99 others); Mon, 31 May 2021 17:44:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:33896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbhEaVoK (ORCPT ); Mon, 31 May 2021 17:44:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC6E86101C; Mon, 31 May 2021 21:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622497350; bh=7xqVdJ6VbiQeEU+7EPsKt6LFV9qCZNw0B2oWnGh0sFM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dv2L+3SysDrZhPc45UFKLI5WmZtzuoO91R84zSJ9SX6VeUDdb8K9WA+RyG2qcoLXE oedyKP8WX7sbO5uM3VZpFkGxdmRvzRLK+E8vUBWA8Blb+47yUdT78Id9OyUWRQCvJY nrm6G8raeKaZhiuNNnmcWxmhcOoA8wjYXEjyvl3AxZ6NLRvlk5KrrMVnE9Ju9UsLdn 8FYWnKGB269awrra1Lj0vtWwrADRXIT34m2cokfq+76srU6IBJSDUt2bmIUmUI1r5O LDA/NGIvHVtcIMdbVbo0/YnxinkgBmni/RBgLGQ+DUuZaYBD5yZdMQd8PhrPr8cq/f A3y1V+obuFssA== Date: Mon, 31 May 2021 17:42:28 -0400 From: Sasha Levin To: Marion & Christophe JAILLET Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, "David S. Miller" , Dan Carpenter Subject: Re: [PATCH 5.4 135/177] net: netcp: Fix an error message Message-ID: References: <20210531130647.887605866@linuxfoundation.org> <20210531130652.606363904@linuxfoundation.org> <60ba11bd-acc0-d48d-ad80-6987847e6e79@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <60ba11bd-acc0-d48d-ad80-6987847e6e79@wanadoo.fr> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 31, 2021 at 08:46:03PM +0200, Marion & Christophe JAILLET wrote: > >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 1b2702f74455..c0025bb8a584 100644 >>--- a/drivers/net/ethernet/ti/netcp_core.c >>+++ b/drivers/net/ethernet/ti/netcp_core.c >>@@ -1350,8 +1350,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 I'll fix it up the way you've described above. Thanks! -- Thanks, Sasha