Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3986987rwb; Sun, 9 Oct 2022 15:21:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7T+pu4V1YiV31HZJnfdprC/15BUASe9PRgM6P7zb6VdkC+MZp05+QRLP5LmkA3mrTzoQ4j X-Received: by 2002:a05:6402:5215:b0:459:fd8d:90a3 with SMTP id s21-20020a056402521500b00459fd8d90a3mr15082893edd.130.1665354081364; Sun, 09 Oct 2022 15:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665354081; cv=none; d=google.com; s=arc-20160816; b=ReFTeWSeMEi6paMxhDZ/9spZpEWv12jyfaaoaZXMaz9yLuN8ysdBb89iae/ZuArpYC UN2MJjADGEQUQCI2VsZ0NLc+rhSqEOH1etU5qUw2uMx05UbWl/4rgToRnd51COH6mcdD keDvZpChoooweTTVJwpCCcJ4cQdDgg22XCzNu+jSIBF3dIm+muHXWXImyiYLrJHlF0b1 zbhNcuPdWClOp/6BgZtkFJch5G4d3r1waWn/HWt2GobLLqCRfZmYfyRPGHKvFmR9EN3L 98Ke8UjNfHPIDDMt9dWdX51iAAOIFnG2kt+H3HJ02M/KVpuuDqcVfTIKIoIGiGk1QmWT U9oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=p0VuyqSIcdFv9s44JGmTo+iChMH1etFtWe6lEGY7rdU=; b=HyLCkV8Sex/xFPPS/vTnBZG1ueKI4NiziRcWN/w/SBbdbbk++wmQMCEmvLuTGH2Ez9 runUBhMXdbP7m3MsuB3hAJmjFuQB1ddN7MR+44+kZWZTjwc9o0K2+istX8O8cpr5RmAH wdHDGzrIKYE+BY93yxX/Y5eJ5b9yAVjDFvd/IIerTUhc08HjG9VsiwuJGOrNArAStAWW GrS1+kuslUoptuXYws5wXl4v/n+3oNuHqAHel4S55Am/NusWVp2eCvdqBTa/Z7OVV14s gUOc+65IFxA3tktaAzuPLh20mBL50SyWowUS3bn1w+OhWzqY/EgIRJu1iwgB++s8QUGe vaPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m61ZJ8jI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a056402278600b0045901aa2468si7532789ede.333.2022.10.09.15.20.56; Sun, 09 Oct 2022 15:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m61ZJ8jI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231292AbiJIWMl (ORCPT + 99 others); Sun, 9 Oct 2022 18:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiJIWLi (ORCPT ); Sun, 9 Oct 2022 18:11:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8C5229C9A; Sun, 9 Oct 2022 15:09:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9EFCF60CBA; Sun, 9 Oct 2022 22:09:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10AD1C433D7; Sun, 9 Oct 2022 22:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665353368; bh=LQc9Hq9N4qEx7hcxjs71Wwvi8yIcl8MH/VNR5qpvAe8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m61ZJ8jI5pQvYDmB9kC9GkFiYssCiMi0FJOZSDCUEEKrLt1eRWTufgLfoDFCXYYcS 2Nyd7qADC6fa5AT7jPlFCh5x3aKUKYcVBl0pqSmLxb/QN6NIlTTNhTZYJwMMQPFf4O iwcsQNBvF1UGHVSc6IpF24nv3mkGFLBhS69HrC3puHkGTvrmbtQ7PXpxsIulV+2Agk p/lQiunJX9hAxDR7c+Lt9nABfc0Dx6d0M1PP5ysSDSmXBe1S118I+h487rGxf0t2pB yskA4ZEzDH7vy6XCo1g4qCRUGZLRQPt/kAHwrUEg+4+z///cMLnJy6EzZx9gRD6QRc fVcNMfHNpq3PQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: GUO Zihua , Jakub Kicinski , Sasha Levin , khalasa@piap.pl, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.0 29/77] net: xscale: Fix return type for implementation of ndo_start_xmit Date: Sun, 9 Oct 2022 18:07:06 -0400 Message-Id: <20221009220754.1214186-29-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009220754.1214186-1-sashal@kernel.org> References: <20221009220754.1214186-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: GUO Zihua [ Upstream commit 0dbaf0fa62329d9fe452d9041a707a33f6274f1f ] Since Linux now supports CFI, it will be a good idea to fix mismatched return type for implementation of hooks. Otherwise this might get cought out by CFI and cause a panic. eth_xmit() would return either NETDEV_TX_BUSY or NETDEV_TX_OK, so change the return type to netdev_tx_t directly. Signed-off-by: GUO Zihua Link: https://lore.kernel.org/r/20220902081612.60405-1-guozihua@huawei.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c index 3591b9edc9a1..3b05287b6889 100644 --- a/drivers/net/ethernet/xscale/ixp4xx_eth.c +++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c @@ -841,7 +841,7 @@ static void eth_txdone_irq(void *unused) } } -static int eth_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t eth_xmit(struct sk_buff *skb, struct net_device *dev) { struct port *port = netdev_priv(dev); unsigned int txreadyq = port->plat->txreadyq; -- 2.35.1