Received: by 10.192.165.148 with SMTP id m20csp4737274imm; Tue, 24 Apr 2018 07:39:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx49SIRKUipnEqW75QKBIXECjJL+rkVPRN6w07BwttBHir9iqEbnHHH6WY/5KyH8gKdkrs47l X-Received: by 10.99.111.200 with SMTP id k191mr20554958pgc.330.1524580745049; Tue, 24 Apr 2018 07:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580744; cv=none; d=google.com; s=arc-20160816; b=WOnwpsv5WAHr/iwVrhAR3mbZkVHo+us+58VBiVhJxwYV/b5hVKcq+cSM/1/nGxR2HO 8qOjqSD3yxEyYqJcf1t6a3B5bcievQDbZgzpn41q7I2CqzAiY4Ba5QXbLRwsJZRJbX0W Wj7YRkG/odFA7oKQRQHSSVzNLuZKbkj3W1P4JyQ93ZvXTSMYJrvdOxvs4ZvcYj4o81S+ 7D5LcUxzElvfYrpikyUWuO7eBxRzBy0K5HnBRJNIpd1xD4YsF7CKITO0zoftm7JkQ80J F4ycxJnI8OGqF3vKZAJ4M6OSYn4sK18nIoR/I0jHIZhdWkLqc1goPFS8/tyHHJlHOK+U 5srw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9AvQRvm4rGInYe1umGfAd3VrJuBm4lq+/JTJGFM2x1s=; b=XOVEuHG4ZAOPLMX2AM9Mhk+56yRR1AnEB4PNGFclIqS3RU1w+60ESLabzCHC//J4gT rbEfC31LAzCw8gc+Ysc5ExGACW45ix8QqZW9vl3vMmOGaZhz6iOLng+iE1+/NNbi1AHq Njsz+MeZoVvdoWUXp8RBqCqrTnxWBNY/pVJowGhbvqdEHgkwLFR+oq+Dojk2wZ3WKoMJ 9nCbMsXbreCiyqCOEBZb4Gyv2TPKeJuGn6SSH3c4JgnwqVIT1Muv8mnTdO2Qrq3Eu1bw ey+Q2UBaB3SoPeQuKboQszed1qZd+wDeK3DIPqQ6NCjUHg7N0do1y1ClVWLuRciiBbuC v4jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qpZMJ2Ax; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l12si11791051pgc.438.2018.04.24.07.38.50; Tue, 24 Apr 2018 07:39:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qpZMJ2Ax; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S934349AbeDXNb3 (ORCPT + 99 others); Tue, 24 Apr 2018 09:31:29 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55548 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933927AbeDXNRp (ORCPT ); Tue, 24 Apr 2018 09:17:45 -0400 Received: by mail-wm0-f66.google.com with SMTP id a8so911632wmg.5; Tue, 24 Apr 2018 06:17:44 -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; bh=9AvQRvm4rGInYe1umGfAd3VrJuBm4lq+/JTJGFM2x1s=; b=qpZMJ2AxPt/5Rs6U5oPShFnSmQ024AIlk+UTcZgUhEr5eYfXaMbO69vDTCv1vdFBoK jKPbqM+H3ZlqU4tnYjJf5dCExZcTNJQWbICUY+0bT1n2spjnVAFVYy42YBFUwdid3MPJ j9LZFfjuJaLcPzOBjVfg6Q4m+mrqitdSP38osumVxXLe3jzI6PpJm5z2+N75oWeiYiNk hShLYGO9MyG8SGpimigdXxqwycd4ycLaOyC9QpJ+VMwO5ADzaghrb3gHwEKY0/SdNIv2 XlRhG+k45eQpNzFIehEOXwy27mjw3RoO8BPktOBHYqHDHgw55bTx39hs8+PX66bB7f1A WbYg== 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; bh=9AvQRvm4rGInYe1umGfAd3VrJuBm4lq+/JTJGFM2x1s=; b=XuxzM4clXzvBlmx8Kx8mlFudzzdQOTOncL1XtmdCfurvm93hCGhoSfY0X1nd9ODTub Ezk4nBT49XkArz5QixTXHg8RQGTVbOcRJqgvohhaxLoHbSEQA8EcfWeQb7SbUlPOjOb2 Sid2yLUHlWdm60puBBku7BI0WiPfZiCMN0yiqG5EfGKkkAabfSDWEd2mbTFMNdwIcpIP oxP9mENqBKY/yUVyDQrHuGotnoQ3md5Rv3s8hBfPeWNoMT7ZoPUx3+aD4bBn8X4LnZQ/ d57RzAgOqByaM+wM568vSk2OvZZ0qwkLwSKn2jruvo6nqHoFbGk0dkue0Sh7Dsxb7v4p /nQw== X-Gm-Message-State: ALQs6tBITLRfFA4YAHGL+zrJntqCQv6K+aVaLFrHJPCLHtEmUc9eMEgi bJXlJ6PpizRcw05qSuazJ+lSq20+s4s= X-Received: by 10.80.176.3 with SMTP id i3mr27751051edd.293.1524575864183; Tue, 24 Apr 2018 06:17:44 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id a88sm9152963edf.64.2018.04.24.06.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:17:43 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , netdev@vger.kernel.org Subject: [PATCH] net: w5300: fix w5300_start_tx()'s return type Date: Tue, 24 Apr 2018 15:17:40 +0200 Message-Id: <20180424131742.4611-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 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/ethernet/wiznet/w5300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/wiznet/w5300.c b/drivers/net/ethernet/wiznet/w5300.c index 56ae57300..80fdbff67 100644 --- a/drivers/net/ethernet/wiznet/w5300.c +++ b/drivers/net/ethernet/wiznet/w5300.c @@ -365,7 +365,7 @@ static void w5300_tx_timeout(struct net_device *ndev) netif_wake_queue(ndev); } -static int w5300_start_tx(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t w5300_start_tx(struct sk_buff *skb, struct net_device *ndev) { struct w5300_priv *priv = netdev_priv(ndev); -- 2.17.0