Received: by 10.192.165.148 with SMTP id m20csp4735555imm; Tue, 24 Apr 2018 07:37:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+eTSdGy7Ex7sAXyjEW2cq0cx8nbugBbGPwoTj9w5Z4wjXB6WlAddyqJTPfpRWLKbeehbpD X-Received: by 10.99.166.10 with SMTP id t10mr20906746pge.357.1524580651206; Tue, 24 Apr 2018 07:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580651; cv=none; d=google.com; s=arc-20160816; b=aerL9PtWWutmUaRifeUPHyLV+eBWLBbdPX5pHCLc1+ZW/Dg5b/lG++onna/n5eXH4+ +XMYeUTmuRA/ol0OZ40uSVGrtGajKQlFh4AsdgxLFaxbvDrHSs2WGdOUV4FkkjroN5x5 GHVZcGDfnXe1/7kNo9rudhYLTdm5/MP1TD4ChBH/vwnJup3zbIFIMeFRWL7jm1T8p3pt krHXmxg4V6ZbUZ2LvOHcLpY1L+JKzZXWsz2hDmbGl+m09Q1MiUEwGFOD0LUzClnzKhaK hAb3jy7XUXLyXyRhgKxFq4rlofInYi5XxVDD2McA4oVwiUXmaQb46c6MkGn3I9UH7/Og VVMg== 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=dnm1Lhl2Dd7FZQ5+uE/5A3XfJgEDMtBPxwzIZkg5d9Q=; b=Y5FdnzwwpvnNwdN71y+rN6vnmyglc/uBbtlJmyfmY3M57RiLCWWqa5d8n5hVq0FbmW r3HNzrjplJ8PgfbY9jcPeAjDOxIBjM2PgSbRXqVMGOcygXuY8aAGAM/pvubRoD8dEczD VaddsRT8fIWGp2O3spUOjuWtSWa1W7pHXE6DCImzTel7WI1Thsq8w7kt1CVWlFXTk3JL 0pCCg585zZ8C9BUeWlQbqUjUi4ns/129mnqCe6qgJL0L559KhOq3qJuEYyNRyrL+TOic LlDhJk1ZxlYwlsLFXmsUsSg0Iu99SqCi72iBOr0OFNVk/cssfaJLcXIXgXn+ZLFv4z8F JPRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DudTNrr/; 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 q8si11107995pgn.692.2018.04.24.07.37.16; Tue, 24 Apr 2018 07:37:31 -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=DudTNrr/; 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 S934031AbeDXNST (ORCPT + 99 others); Tue, 24 Apr 2018 09:18:19 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54884 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933839AbeDXNSN (ORCPT ); Tue, 24 Apr 2018 09:18:13 -0400 Received: by mail-wm0-f65.google.com with SMTP id f6so908362wmc.4; Tue, 24 Apr 2018 06:18:12 -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=dnm1Lhl2Dd7FZQ5+uE/5A3XfJgEDMtBPxwzIZkg5d9Q=; b=DudTNrr/npoaxpQimYfQmhgHAakdiKmkJSV0n9QqjR5G84iCR2hGzJSQpZdc/bJ5eF 0ARuFrxk/twkmzI9zNXFUiykOZzm6TVH/Q14RgJg76sQkWyIYz2dvDXyo+E1DQbpnNb6 GZ57yxxWOutJDoh9/cF2uiVy8yhnroW4PzCywGLsvDH+M4CPwVtbDxmyuRtaV7GEU73J BZ/rVYJIrXdzl5XwM3tL/9svKEJmHUcUtDa4/EpvUyvQTfhlTu9Ryxht+whwICj4V4RU rjStzakRhnIs7vb5NRmhZC3jdVOXuRSYkeozRGZJxwrzzX+lK3rvIFrq3+oQ1v3THxk0 AO8w== 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=dnm1Lhl2Dd7FZQ5+uE/5A3XfJgEDMtBPxwzIZkg5d9Q=; b=lWYth71hAltS/LyLEnTS0i5dqpNv3xfdMEjsJ0F7sogBgCnm3wzIjUaCIK4Oyliz7s rFIyVaGZn1leJ+jSIpJjfzmLjSOwJfqQHpxzdPFkOmeHzWVhhXFRMfxlinD24WmLF8Vw HIZ0wIW6ALLIWdGTOpuKdA5hy08jdQDoTj0a6FxzjjP/1LgAwPUU3D77xNEmTMb7Y1ic XQX5YCToEgNn4B/WtmsyUYCQ2I03J6KTij/30oDV+b3XvtuUrMooLs6HxhqKLjj+4d3S x0Y91G/TZgDc416ga3kR4c+T32LxuEvipgspWfZ0v4c5Ql138K61VCtboiiYoEUhG0LJ LmQA== X-Gm-Message-State: ALQs6tC39t1gMCjCOOmFH/PMKkBY8NQkpGtx1l8zOSBOPztQHGAFw5HA uOw3BAS/hV8f36yeHbvQrqlef8syjB4= X-Received: by 10.80.161.165 with SMTP id 34mr27547430edk.273.1524575891470; Tue, 24 Apr 2018 06:18:11 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id t1sm1455526edq.84.2018.04.24.06.18.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:11 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , Vasily Ulyanov , Kees Cook , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] qtnfmac: fix qtnf_netdev_hard_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:04 +0200 Message-Id: <20180424131810.4963-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/wireless/quantenna/qtnfmac/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/core.c b/drivers/net/wireless/quantenna/qtnfmac/core.c index cf26c15a8..b3bfb4faa 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/core.c +++ b/drivers/net/wireless/quantenna/qtnfmac/core.c @@ -76,7 +76,7 @@ static int qtnf_netdev_close(struct net_device *ndev) /* Netdev handler for data transmission. */ -static int +static netdev_tx_t qtnf_netdev_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct qtnf_vif *vif; -- 2.17.0