Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2248956ybt; Sun, 28 Jun 2020 12:54:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG5llbtGDu5V6Gf9bA4dJIrk+nJr5P3t/4joZVzsmlnxXkiBxQ+EWBcwMPQvtNhXyhX0tb X-Received: by 2002:a50:c219:: with SMTP id n25mr14322412edf.306.1593374066231; Sun, 28 Jun 2020 12:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593374066; cv=none; d=google.com; s=arc-20160816; b=ahJk7lYZ+C/5CW1hHxZYSG26q98W7iwN6YI0h5ggaeZFs1V0K4j3H/43AHj+FaCS1B nCXHUK5Rd4WW2138RT90Uc97aplGqJ2JcNmP/RFhYmMHCHZ+jZqLzOBK6FuE5rXVd09r PVpOr/dUFiXvhj8YmPBXwUoYV77tC/w1U4oBZ50/1YNKFy6YFo6P45oKft+tSHC6zlJ/ R9yX2fiUhkX2jDbePOM8VrCny1vwVXK2dU2gG959YB4rkN8ZhZGy2Q6m8fVL/1MucHCj xwkKsH8E8gbcuY2C5fp7O7MwJjdT2Go7ya1eIcSqwON47ZFcffU0LQDh9pFoPnKbvolL EmnA== 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=FkEfzQFYhiTTzIfLmoFDGHIS3u7YcXXOiJy6nfPZIrQ=; b=DDTTZM+MjfD/Z/AHZJFm4JuOuxxOYd4/mG6vfAfP/+1lsn7AxnCBRKErgucWWpUZAZ YD+zMc4ZBd2ibzLLTMEsFcDe6Yh1b60LNG6DXlgAYP1pi/IawPju7K9zaNxWCiKxIUtF DkU8CGogsyRwFkm+4WRdsat+4oqAWcIGHITzJXZWYkX3GjcLmp/oY/GbcSFKPF7MPXG2 lPI/lg+yx/LQsJr0P3NhAfFgaO0TyRpixtBKA9SDwsglOX6KIdjCz0LwFAu85VhlafeW VKdg14A0SS3l4t0CfeIgmr55bUbzbhDPjkTBb0yBtnMxgHFsPtJcYS4LIaQF+Tv0xAwP MRZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DiaK0Mfg; 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 p25si1419165edy.109.2020.06.28.12.54.02; Sun, 28 Jun 2020 12:54:26 -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=DiaK0Mfg; 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 S1726854AbgF1Txu (ORCPT + 99 others); Sun, 28 Jun 2020 15:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbgF1Txs (ORCPT ); Sun, 28 Jun 2020 15:53:48 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD82AC03E97B; Sun, 28 Jun 2020 12:53:47 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id h28so11146510edz.0; Sun, 28 Jun 2020 12:53:47 -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=FkEfzQFYhiTTzIfLmoFDGHIS3u7YcXXOiJy6nfPZIrQ=; b=DiaK0MfgTCNEv/bYJOycIrJnQ+dTB96cNpQZaeWYfRY8pT+Gf1HveHth8+mY9m4R1R WfwI2rgxPnHguKWTKquz2/dneH+2JFPiPyZdiuKAAnDOq2qVfITb0fsfLo66k0rN8OUJ YAgbM5qF8Fgf7cgGAtyv78AxYyM0uWd05rAkQY1xpCiA/fwMmrKduE919u86wwDzTjpa iM3aXKvGiQxUWaL91O4qRkCLljOdbDAO8vLwvlsDa3YgAR/SlcPzvno/PXQqbyRV7aU1 22dDO0tioJ1ekBkyBXFtxNZHnr0CJ0HU1YzoFW8GteP6p4xvOrgdamDa0fQzwJ+edKR2 UY6Q== 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=FkEfzQFYhiTTzIfLmoFDGHIS3u7YcXXOiJy6nfPZIrQ=; b=b7Gshd3dV0IT3PPHAmCwdiU0/Dcb3xCHMWuJ2lWt5EIpkE5ll93sUB/ffPQWZIGHdK 6xnmV9X2qZs/q46HPixZdS2XPJnzKT+mAAi0sJE2pz584UPlB2ngFdUkUc0lubDdTyy4 4tNlYpNGUonYh8epTkewGRqBmtGhNpwgJWLzM+QxUUhkRH8jyftkqgDnGNJ5LeyLLTWW B1n+2Ui4Ebfbgudj4oR3+Phd5B4WHfNyTK1B5BknlFtIE3h96rVREtTzETuesc/Twc/b K3LAi53b7Tb5hvmra/VzAVwHmqiWGXZKdvTRww9EU7i662c3froAHELpEnjHM7h3iml9 P6Ww== X-Gm-Message-State: AOAM530JtKeqLW7q2+LkPSimUenK8paMfo2SKNWUBNIbgzLqmee0YmyW EIA9eXYvFBBXTOrt0o7MR54= X-Received: by 2002:aa7:c54f:: with SMTP id s15mr14629590edr.175.1593374026518; Sun, 28 Jun 2020 12:53:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 12:53:46 -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 04/15] caif: fix cfv_netdev_tx()'s return type Date: Sun, 28 Jun 2020 21:53:26 +0200 Message-Id: <20200628195337.75889-5-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. Signed-off-by: Luc Van Oostenryck --- drivers/net/caif/caif_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/caif/caif_virtio.c b/drivers/net/caif/caif_virtio.c index eb426822ad06..80ea2e913c2b 100644 --- a/drivers/net/caif/caif_virtio.c +++ b/drivers/net/caif/caif_virtio.c @@ -519,7 +519,7 @@ static struct buf_info *cfv_alloc_and_copy_to_shm(struct cfv_info *cfv, } /* Put the CAIF packet on the virtio ring and kick the receiver */ -static int cfv_netdev_tx(struct sk_buff *skb, struct net_device *netdev) +static netdev_tx_t cfv_netdev_tx(struct sk_buff *skb, struct net_device *netdev) { struct cfv_info *cfv = netdev_priv(netdev); struct buf_info *buf_info; -- 2.27.0