Received: by 10.192.165.148 with SMTP id m20csp4678450imm; Tue, 24 Apr 2018 06:47:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+UwRAekyeeDiWp+uNbn4uh1R+Ak9UTZRJgOXmVqlv5tUkDJhp6/9LycUpoJS0OahTWFYif X-Received: by 10.98.107.138 with SMTP id g132mr23724277pfc.163.1524577661624; Tue, 24 Apr 2018 06:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577661; cv=none; d=google.com; s=arc-20160816; b=p5pEA3RwFkRf1e05XE6FULjcE6u4LxTVtJFAnRWQfsLtk5nKPsOZQ3u3ZTX54Pioju +3joT92U6mUU/29OryXZIws4CrBGe3UjDpincLq7+mRBUW9J1T9DoEcylxDjMMK7aeKa Whqb7zf4lydmmzKW4f8d9vnzh7eIpQKAQgLDMFCTE3NuB7JCBZs6cIoM5s7E0U/0EbMe V8gmN/YwArCQLK8CmKwQt9Y6fhwI1Jygvm3uHgx3D+14kG0cxDycNUBytfYTargW63WJ Nx98HV5KvBlfa4tk3wiOnW5WtX8MLnwudSHEomnvMdQnLQqyoBVaUAGJgCDVfzUlrw5K M5ow== 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=qIzVgoc+T+l53V/l0wo/kO6sieVX8LLAXqRMTvB8JFU=; b=Kt2I8+2A/J3rUBnTDJfccqQM29WCNr/WdNSFO6snP1gi/kqBKdCPyBFVuLeKG0OtEk BkzPFgXP+wB0x1rRjhDe0JxYGk9i8fpw+15CeeXnbk8Sp4DVfg5db1XylRZLtXwf+gSG pSXI6pNY/W2O25rAENPQb+sw1CMnFgO+bKJjCauXzlDx31gBaFOraiPJmWaGbYPhhnGN GtwyaA7HEmx0zEaX+IM7CewM2RzZXT0oDGuj+MvXa657p6nSHjf4+k8d7LtxBw0Y2hH3 VCz8kE8KLVIwuU5VTi/qeKednevuSxv32gnhZ6Q/RJapr5FFbTxxSZRmnnL5Pi9/fuwn W5yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ehyCNJFs; 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 34-v6si14205542pln.473.2018.04.24.06.47.27; Tue, 24 Apr 2018 06:47:41 -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=ehyCNJFs; 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 S933699AbeDXNQc (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:32 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54350 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933683AbeDXNQ0 (ORCPT ); Tue, 24 Apr 2018 09:16:26 -0400 Received: by mail-wm0-f67.google.com with SMTP id f6so895640wmc.4; Tue, 24 Apr 2018 06:16:25 -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=qIzVgoc+T+l53V/l0wo/kO6sieVX8LLAXqRMTvB8JFU=; b=ehyCNJFsdPCXi3V+bthecvscKZjVLRM4biiKaghTuK5O6NmMF14oC5I6PQ6AbITQau DxGzZeVIzDJPbkC1tY5qK/or79nlUGh6sU1nyTcLg4+XApsShE4FoDHmDWk0y1ZBYoNF 3yrE19IrnJZEB/HE5OTqUmmhurrkKcu0BuH6582q60Q2xR0p3vQNjdfAwo08ZoUxgiod fJK/rHnO3+y5UM+wykPjlcx+XgQCJ2U3fL6U03mDeJ05tVAOZBf4LHivityCBbtxaf94 m8e7aC4CSHtglWv9o/oAwV2s/MggD7bIqKF4USB6b8GTkHFlIwkth0X0jmZDXGwVFsHZ K72g== 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=qIzVgoc+T+l53V/l0wo/kO6sieVX8LLAXqRMTvB8JFU=; b=thxRKhw/0/Sp90mJrVvEhvnD8zUFrpL6cF+ltmyJsrZXevGGy+tuv9YHdmddF30AZL YTzX9U5hjpYDrepVdRTGeeuXsfxdqq2U0CvQfDSvdCBjcWKdKRKylLDasvannVxHM+Tf xFFKvQzhmqQ5ehGB4anMscgtvEPcMzkUQ+uk/tcCBonOIFS6nVJQG7V/VvesLtNczEWg ERFKqll8DTToW8OUTbYGbodE7qQKJXwL25qrWQQJXEISFIMQ8vDGd5bVBz8KtX3OThjd +9J5qbX5CXFOxOKDFeK+kXkSPofDAVgYlhPqTvPEyFzj+TUTFJonpcCcY/myZcU3khFo Qw4w== X-Gm-Message-State: ALQs6tDm4/imYnzNIRdC0WbcIOqMSBy9jDtQV4fVQt+7sjrW8HIHLoVV AMAW8pfraCgWEQGW5DsVVipTeM52Pk8= X-Received: by 10.80.215.7 with SMTP id t7mr33500913edi.104.1524575785134; Tue, 24 Apr 2018 06:16:25 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id j2sm4603934edp.22.2018.04.24.06.16.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:24 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Igor Russkikh , "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH] net: aquantia: fix aq_ndev_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:16:20 +0200 Message-Id: <20180424131623.3505-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/aquantia/atlantic/aq_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_main.c b/drivers/net/ethernet/aquantia/atlantic/aq_main.c index ba5fe8c41..79b0a4d41 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_main.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_main.c @@ -73,7 +73,7 @@ static int aq_ndev_close(struct net_device *ndev) return err; } -static int aq_ndev_start_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t aq_ndev_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct aq_nic_s *aq_nic = netdev_priv(ndev); -- 2.17.0