Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2249001ybt; Sun, 28 Jun 2020 12:54:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzquPvvELPt8CKGJWpDz/6iP7Di0IY56B4FBR2Bdul1v9HxKq0hPhqmFL789V33zFnbIPG4 X-Received: by 2002:a17:906:e2ca:: with SMTP id gr10mr10847874ejb.81.1593374072920; Sun, 28 Jun 2020 12:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593374072; cv=none; d=google.com; s=arc-20160816; b=th3ZTe7iTzAKOfNWBsJ+zUbGp5vHiFWOJvMVcwP9VA10gfnrusZ1VRi3eQacNvN+Oa oNnwVTqC4HjpcZwKHDjr+wgrkOx/b+8xjCMoWX5UZ27PrBRfZtjhY34fKmCPuL2X5TX7 UqROmkz7N1ecHeyIM2gRB2wmMeQ/KP3tz3iz6zv3KfAYydO2fQIIYH0cuOVJshcnVhPd QitHXUC0C0FK4Uf+O1vqEJhcEcPx7uQxibHrq2rGNYA4pC5TRsOXX12OB4gwjRW3BA8g LN+y5HIdoEiDRudz+R/MF6q6NUG+/kC6qYy75ZgykdBLozqzN6qdYq/L5Yg1AZeUsjA0 TQxQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lytj8JREnMITA3Qx/LJdVYiI5LTDssfwED1xOl5FxoM=; b=qqchrh7dKJG6KWHRNS90VTgrepQlDNltkCn3MmXs4Ke2L0wUdHP5OJR8rYQROdLI2K fOnHmYZ3S//lB90NMy1kspim2PzfUbSZg4+UHbRx4nZrjGmLfiW45vx6tEI16y5t9Vxh kcWC9IkW7vdggZi1SDQsp2aIIV8IhbCFA3MGTu54nFjNeY8RzZ90ahHjcJA8F58i2N/v bUWDEXiskT3CpNeoJfsVFmPPmvNNeY4wPINMQFZNIWsRFrEnMc1WRpvwTjviexyorV7w go4EbiAvt04bktA+syJwk0/ITlut13US2pBKOJ8dcfXkJb8U7U+UBFPzkxflG6mLn0GG bVfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s5sJzU+W; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si6296689eds.492.2020.06.28.12.54.09; Sun, 28 Jun 2020 12:54:32 -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=@gmail.com header.s=20161025 header.b=s5sJzU+W; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbgF1Txx (ORCPT + 99 others); Sun, 28 Jun 2020 15:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbgF1Txr (ORCPT ); Sun, 28 Jun 2020 15:53:47 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E6F4C03E979; Sun, 28 Jun 2020 12:53:46 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id i14so14511919ejr.9; Sun, 28 Jun 2020 12:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lytj8JREnMITA3Qx/LJdVYiI5LTDssfwED1xOl5FxoM=; b=s5sJzU+WEEpr1/XqsXUOXsZ9DleB4kE2Itb7EK9Sfi0VoP/AqFQGI+MLcqPnlR65MT UJhYLCBCsgOHo1CfSN4DablGz78ThZgMvlq4sJceEM4kqx7lnE8eA9ixrBdVnPa4ZDO/ u12VYqMCP6Cmh0/ntMEzxo12eBiAfRrgOktn3JHB3M82qnIovlpkcNv0f5GQwphsoINY 1IrgAEuaMlJgrLXQCUivQTQ3QC47ObIOqo4ZLJKRQCapLEt43KxdqFzqaPz8tonp1Wy6 doCl3XS1oe7IorGTSnMGHkVVDA6vzPBAopIVuJYNhBtWGV2XidswvWOm5uRMquxQiVvE 73Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lytj8JREnMITA3Qx/LJdVYiI5LTDssfwED1xOl5FxoM=; b=jgRncCqEDk9FuqT3GDS6xQzuwLAWQEVnw/TgHcPmqnPOl+DgvLlXMfhhvo75VNwj7Q 9bEFAW/7B8wqc07I7rW7CGYLdcnxGMjYZw9e0B3/jrn1yYExJ7SZD7vyWqlYc3oPmUin +aAaltarHZax5IZ2nxpVpTxHQxxjPFgZfSFfk9fuo0Tv4OBwB9aMzaw6fA2MrBZY6hgE fID1fprh9Zc6groc/Tz5QWCBPgjDFsYfXHPxQ0iHlQflpfUdbhsDMJLGcS7XMc9io55t jaiOCBf/QpiGOGp8Cj4w8GScBpDQ/QIMjk+6pi7dxtfDU3aFLm6PugDpPXDsZacu1Mn9 OUsA== X-Gm-Message-State: AOAM532lnodzoVIrGwPDlOHHRyHua1A2s2DqFZjuqqGDXPse6F6gaWhg mAyfBmr2JuneRivIhCIFcDQ= X-Received: by 2002:a17:907:72ca:: with SMTP id du10mr11055838ejc.78.1593374025363; Sun, 28 Jun 2020 12:53:45 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:b7f9:7600:f145:9a83:6418:5a5c]) by smtp.gmail.com with ESMTPSA id z8sm15669531eju.106.2020.06.28.12.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 12:53:44 -0700 (PDT) From: Luc Van Oostenryck To: "David S . Miller" Cc: Jakub Kicinski , netdev@vger.kernel.org, oss-drivers@netronome.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Luc Van Oostenryck Subject: [PATCH 03/15] caif: fix cfspi_xmit()'s return type Date: Sun, 28 Jun 2020 21:53:25 +0200 Message-Id: <20200628195337.75889-4-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200628195337.75889-1-luc.vanoostenryck@gmail.com> References: <20200628195337.75889-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too and returning NETDEV_TX_OK instead of 0 accordingly. Signed-off-by: Luc Van Oostenryck --- drivers/net/caif/caif_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c index 63f2548f5b1b..7d5899626130 100644 --- a/drivers/net/caif/caif_spi.c +++ b/drivers/net/caif/caif_spi.c @@ -488,7 +488,7 @@ static void cfspi_xfer_done_cb(struct cfspi_ifc *ifc) complete(&cfspi->comp); } -static int cfspi_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t cfspi_xmit(struct sk_buff *skb, struct net_device *dev) { struct cfspi *cfspi = NULL; unsigned long flags; @@ -514,7 +514,7 @@ static int cfspi_xmit(struct sk_buff *skb, struct net_device *dev) cfspi->cfdev.flowctrl(cfspi->ndev, 0); } - return 0; + return NETDEV_TX_OK; } int cfspi_rxfrm(struct cfspi *cfspi, u8 *buf, size_t len) -- 2.27.0