From patchwork Fri Jul 21 18:07:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 13322425 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D32E120F83 for ; Fri, 21 Jul 2023 18:08:35 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7D92D46; Fri, 21 Jul 2023 11:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1689962895; x=1690567695; i=ps.report@gmx.net; bh=d7+NOCj0zr2QbS/Qs3ayEuVHnM+vEVtZH5MttU94reQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Np1OBUPMC3WTOwoM91eZK5rrNtjNqd1PrbUEpnsCsJlpATQcpRDzX6tzjxfV7q+7EKRXoI5 AsBJqOjkdbfqks1+ooZce/l4lMviQRdkoPezslBErBBHmBm0Hfb8OIwfHvGPWrfhh1GjJVZQB Rh5/35hGCIUnuB8Cys/FAEvvurUi1Sod9hJUwPkCQXJ85R3I6gmsmYfaBJekHxrGxRtU+X2Yp AlcFanicrnPqZI20Fd8nDfDcubRMjNYFuv4/MfGnZ3R5Zf0yez4RWOea77gwkymQ5YY/qyeo7 T627Y0psaR4tdi3lfMmD28FFkWTjzvEAlM5TzXvwjoEMgDvMm8ew== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost.fritz.box ([62.216.209.39]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDhhX-1qEybI0mUZ-00Aiwa; Fri, 21 Jul 2023 20:08:15 +0200 From: Peter Seiderer To: linux-can@vger.kernel.org Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lukas Magel , Stephane Grosjean , Vincent Mailhol , Wolfram Sang , Oliver Hartkopp , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Seiderer Subject: [PATCH v1] can: peak_usb: remove unused/legacy peak_usb_netif_rx() function Date: Fri, 21 Jul 2023 20:07:58 +0200 Message-ID: <20230721180758.26199-1-ps.report@gmx.net> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:HKm+8cK0Tw1sAFXS0uN6nAmdO3n8J4GLE+78t6hDn1BCjTrLeZJ 93t5ncU96ScQpKqDboh6pVP0dM2pAS3NJ7jN5drsVZis8R6x1PX28VLmpP7rK1jVYGVgzBy XjOtI20Y3Q+Z2QRasf295HRNx/3bTuTA1mkCtBPHr2xVDZsYSeJiLYlAIMMvcA7Q4dUAxI2 JeWFVL3QjLv8KaWrrvsAg== UI-OutboundReport: notjunk:1;M01:P0:i8wtBtZ+2lw=;XOKH+cMPUGrMTJSMwkuncju9v/4 j7aMj/uOUIGMHO0C1k4cO48wZOcQk5OTM5MPeJ5ft5VDt/mMYs/fq7SYoYNgBpfZqgdJa7CvE w7km0RoDkBUR+FznHCyyQZZGvgIrCHsYQKNsxxoEBTP8HRAc6W/a+UXdV+Gt31o29HddaWdtv CTTw8jmkutxYhWSz/mXrbMUX0xOxmFGc1sCcMVGaSZqSHzhe3q6O1zJO/cpwM1UxHQgySDCK8 1O37hblSTFduLD5+/MXLa7xib4bG9bmrVfWXBkaNenFswlhzbWgV1uviWX3a76zVn/21B4hHu 5y3U9q95mpFWkkhVigyyuMBlMER5q+EDLAMfkVyt1pf6F+b7yPmh1rlinoWAbtKeofXvnB22U cl0YCvki3CnzxmyEY7xa+rZk2mDxwmqjHg0p/RSjqMubhli1izeTVsCqV0S/pn+7arz8iEizq yPcPwstQqcVQbUVjHB2m8DpXMh66DmgPD4/gYjOY0VqxkwPvZPxHshaGKOiJCWNPik3p7K3r/ 8kZphDh2QippOecRzVDbfayZoKRxUg8Q12Cub0JgHVuC59qovvt0VCmLSdqfc/zkSi/KhZt2A uDN8cCIFV4ZWDHDPyD/dc9LAtQytCsk4g7DPZpCMju7cLHUR3bcxWimZDYEgcpXGLkFNzFVaD OH0hhV/3uTcUvG3gaxpJUbfyM0G6Ajgh/+FTf6n6aCdEJSUXYxTCvAsSdPseIKJEl2V+dKAOh crHxyG3NBdN06hJUEERsAN+PZjBCBVpLW0JfThDuJncQ7pQkgygEUAB04C9cezoGcAnbCkw1w MHJxkg9BX7mmKHI9WV0unb/2PMg9mAewbwgOnntv2c3yItVXG4sCbjmgWMBvLUNJqqfZ34zaM z6suJo0TDcMmlQGaY1lccWaLHv4y3t6oHjOjC2YZPeOzAve4tXKpQCsx8HhWE1JVVPMIzWdYh v732dflfqBbo9BrTm9CQQgI00sc= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Remove unused/legacy peak_usb_netif_rx() function (not longer used since commit 28e0a70cede3 ("can: peak_usb: CANFD: store 64-bits hw timestamps"). Signed-off-by: Peter Seiderer --- drivers/net/can/usb/peak_usb/pcan_usb_core.c | 13 ------------- drivers/net/can/usb/peak_usb/pcan_usb_core.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_core.c b/drivers/net/can/usb/peak_usb/pcan_usb_core.c index d881e1d30183..24ad9f593a77 100644 --- a/drivers/net/can/usb/peak_usb/pcan_usb_core.c +++ b/drivers/net/can/usb/peak_usb/pcan_usb_core.c @@ -214,19 +214,6 @@ void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *time) } } -/* - * post received skb after having set any hw timestamp - */ -int peak_usb_netif_rx(struct sk_buff *skb, - struct peak_time_ref *time_ref, u32 ts_low) -{ - struct skb_shared_hwtstamps *hwts = skb_hwtstamps(skb); - - peak_usb_get_ts_time(time_ref, ts_low, &hwts->hwtstamp); - - return netif_rx(skb); -} - /* post received skb with native 64-bit hw timestamp */ int peak_usb_netif_rx_64(struct sk_buff *skb, u32 ts_low, u32 ts_high) { diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_core.h b/drivers/net/can/usb/peak_usb/pcan_usb_core.h index 980e315186cf..f6cf84bb718f 100644 --- a/drivers/net/can/usb/peak_usb/pcan_usb_core.h +++ b/drivers/net/can/usb/peak_usb/pcan_usb_core.h @@ -142,8 +142,6 @@ void peak_usb_init_time_ref(struct peak_time_ref *time_ref, void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now); void peak_usb_set_ts_now(struct peak_time_ref *time_ref, u32 ts_now); void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *tv); -int peak_usb_netif_rx(struct sk_buff *skb, - struct peak_time_ref *time_ref, u32 ts_low); int peak_usb_netif_rx_64(struct sk_buff *skb, u32 ts_low, u32 ts_high); void peak_usb_async_complete(struct urb *urb); void peak_usb_restart_complete(struct peak_usb_device *dev);