Received: by 10.192.165.148 with SMTP id m20csp4657410imm; Tue, 24 Apr 2018 06:28:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/DfyKvFM7dGzJ4mo+k/n+cwZXCOu140T4RtFXVmvUmgZmkapUXtU68bY5rP53/crX5RPon X-Received: by 10.101.91.7 with SMTP id y7mr20125015pgq.396.1524576486609; Tue, 24 Apr 2018 06:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576486; cv=none; d=google.com; s=arc-20160816; b=SJk9C+7fjN1tQiONveSCRnuVm3cezE8YN4s/dlP/Vmv8HN8gZ5hNPOCrpf97HIlWBv zIKF9gHcbFR4kTK7NKQ4jWAowxdKyF9PD2X0ju5HXr+R3jgstRUBfSPDQcaYcg/cIhjH Ki7bF1LygtPlf5cQZ3QZqyik+kAndptF5S8zz8XfyokoQBHka57yYP0vBQXtj2mIFMpy taz29MxN0BCJXDaiiUreM9LnCd4QWuQJgnqmhLDR9Sp1EkaMmgfFetT2UxePS8Jveyie mxyL2JmAy4FZy5xH7ypOhOwTaLUtixqdhs17yvuHJY8Xuqib+bS7NP4EkAJwBmkEKir3 S5rQ== 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=3QfrfrzPbytYCDbrnqePEjvTa6Fp0aK8zV+1FhKPAl4=; b=XWdVhTdsmbd6vypQMH751o2zYivqtevzRrzVQrN46aJ/QUJO5fOOr9nwZ69eq0/9TB n9cP8vDXW8RpYmLdwbTkSLZjCo8/L7BjWrZm7jGJybMBUkRKrRHLkGh4VUl6kN+A2K0j f52kD4xzxXtZ3xYEHpAlg6qUJL6HkLyBPdURKh/ssPX2XCUdoCbsTMeKcfDZeemS/bE1 tLh36Ptwd9qcdZHJ2GiT0rDU9KyGmA5HCO1XNn/rv7JdXYLQMuHmTOJ4epwKo+50RSul XivcReH8AAK2SptweJM37tmEYRwowwOBZSYdSDz8fd6MX90R6DVWuJLBPQnwV4spQgbJ TAFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tgnvl8H6; 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 c23-v6si13236263plo.80.2018.04.24.06.27.52; Tue, 24 Apr 2018 06:28:06 -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=tgnvl8H6; 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 S934271AbeDXN0T (ORCPT + 99 others); Tue, 24 Apr 2018 09:26:19 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40313 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934067AbeDXNSk (ORCPT ); Tue, 24 Apr 2018 09:18:40 -0400 Received: by mail-wm0-f65.google.com with SMTP id j5so814490wme.5 for ; Tue, 24 Apr 2018 06:18:40 -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=3QfrfrzPbytYCDbrnqePEjvTa6Fp0aK8zV+1FhKPAl4=; b=tgnvl8H6OSvgKEGz3CG4vuZIzfpR6bVbiB/mch02cY+FoNGOpPPliyTsj/GfZ+wA8+ X23IN0SyEu3kX6vPiAIprRvek+W3/7fHTMT6GMit3WhopfJniuJGWGy+2UwGYBz6mDDQ qCI2s+X5A+f005CWwAO3cd1oqFoRAPicxEhki4axpSZ/CQRxB2sNb+4ttOt0iZ6sqJRf btR7yrkJ46toviyfjFFBbJF+jSSUcs+IxbOdOPiq6yXsDTWVdWWI2H2hY1dRxly6thcH y4p6x/cAk4LSdOBGtM/v/H3BnAj1LZJvvxTPsM4zGtT3fqE058t+Ap6k7iZYk3A1FdT3 mBOQ== 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=3QfrfrzPbytYCDbrnqePEjvTa6Fp0aK8zV+1FhKPAl4=; b=LE8bRSxBb2I6HqfZfDs17OPahay5RZ4O2QfLFTjkABNEXXAX0uULy7XtQMUCmv5//u guNqOeQ2mN99FWGAC1HqQmuHwwO/5Xu2aq6NPt8EsMUwnPf3xH1WQklmQk8UdD2PRpfT bSFEiXAehlD2sb1fZKjq4f5i6dxBL0DZTv0aGMIlDqdupIxGLXLNpSZoJkTk6CNzv5aH Wp4zTVjdmZcPkcwkx4IEdYXcxjRzd7ME9dmgqai+3i23MrHq8gITO+eFPuEZzrIwag40 9/FZtHQq3CNoluphtlkOz/fjkiIkqIZeWUu+JsfVRahmekCxm9ZZgcfrfkbGu9cj9wA7 Luxw== X-Gm-Message-State: ALQs6tB6AamIvgczSqL4N2UeqNrYU2oAQAmka9A6zAfMt1mrIcYGbXam YFdfnsHwEieIg/88JlbFTmVU78L3JmM= X-Received: by 10.80.172.164 with SMTP id x33mr33556687edc.270.1524575919169; Tue, 24 Apr 2018 06:18:39 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id p36sm10582467eda.43.2018.04.24.06.18.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:38 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Greg Kroah-Hartman , Rodrigo Zaiden , Simo Koskinen , devel@driverdev.osuosl.org Subject: [PATCH] staging: wlan-ng: fix p80211knetdev_hard_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:35 +0200 Message-Id: <20180424131837.5317-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/staging/wlan-ng/p80211netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index ec9cc00ee..710ce8394 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c @@ -95,7 +95,7 @@ static int p80211knetdev_init(struct net_device *netdev); static int p80211knetdev_open(struct net_device *netdev); static int p80211knetdev_stop(struct net_device *netdev); -static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, +static netdev_tx_t p80211knetdev_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev); static void p80211knetdev_set_multicast_list(struct net_device *dev); static int p80211knetdev_do_ioctl(struct net_device *dev, struct ifreq *ifr, @@ -321,7 +321,7 @@ static void p80211netdev_rx_bh(unsigned long arg) * zero on success, non-zero on failure. *---------------------------------------------------------------- */ -static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, +static netdev_tx_t p80211knetdev_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev) { int result = 0; -- 2.17.0