Received: by 10.192.165.148 with SMTP id m20csp4736916imm; Tue, 24 Apr 2018 07:38:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qVWSnDKBioy7F6ECgYL+LwcaofKEZ1qK3hHnCFZsnPFi5MPLcsLHJdy2sua2Nu6qefUUL X-Received: by 2002:a17:902:7201:: with SMTP id ba1-v6mr24545086plb.283.1524580725306; Tue, 24 Apr 2018 07:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580725; cv=none; d=google.com; s=arc-20160816; b=kQoUlM4dZPvINSM3MUqaAkpmGvEkt4CtlIlvMXMbxGtf9nBO0np8oecY/Qx8j2Z9sh 2els+HEl6RG1XwvGcJhqICZZa0YWBY9M3i18uBA5EycwT/Vu5+i11bvgHk+/kLMToiSx +EYpI4zX0YleVt/vOscmhpwwZFYhPOaHKHV3rxS52fXQ4ktaQqRHnV8gR1nmZ72aCgPB h4UcSNIZDDySuzb7trBi36+LarSbzHQ+vRUTFnvEPmODAbjYgPI4PNkFvbJ4ufI8ab+1 IfGh/Y89VsTJAbn0WQDqWnPBzMezkzwbLYZLLkL4zLe5rng5gi7A6hak1FXKmS32Btgb 1PSw== 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=OREgMkYD3pp0Wr4CaTzUkDCrsNVGRgA52qCt2EBPTLY=; b=mtt9y2b6uvT7KkOpT9vv32zXBGFJqAQEAyel91NH8otfGLMoNpCHYqq2UeNIPZOXE0 Lh18IOXn+3+KH5ISw42DtftUX/is9BbyCVbCey3pBhb9wfyVqIl2iaiM8qmy77WMF2a9 3KXawjq9FvyPhMwsfnjKAgf3DU/aDHsnqRUVCyCOdi85Mk+znjwSU9qihxK6efewdWwx 9KnTQ5mgMwwjF1UbTlodNf48edYIJ+uYTSWzRzQ5+BX3B+hWdbxdQ8sNsDApQGfYswWN Jry0Y6UOB6P/LE42ACUR5GGQ0zOAadC/lVBFDrZaLRyVMmcoEdQiq7M6f30+UfjtwcFs pThw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fwrxr//f; 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 33-v6si13665261plg.34.2018.04.24.07.38.30; Tue, 24 Apr 2018 07:38:45 -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=Fwrxr//f; 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 S1758085AbeDXN1T (ORCPT + 99 others); Tue, 24 Apr 2018 09:27:19 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37543 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934053AbeDXNSb (ORCPT ); Tue, 24 Apr 2018 09:18:31 -0400 Received: by mail-wm0-f67.google.com with SMTP id l16so815186wmh.2 for ; Tue, 24 Apr 2018 06:18:31 -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=OREgMkYD3pp0Wr4CaTzUkDCrsNVGRgA52qCt2EBPTLY=; b=Fwrxr//fL3uA3mvgoVH5L8W1gp1n3rf3a8HpaI287e1oTgL4jc0K0EJK55DsZWPRje Mx9TKdQ7CwiFuV8iKeYkjnt0v1CC6Y79nVqtO+fJbxYFADNfQ21DfcnMmaAUx3r1C/27 MFqsh0pmFK9tvB3dmKPIPMBHCYOcc7Doov453+/uJ3GHvw41QbFcWHjlLBRHFagJUfe0 q4zppzy+ToMWCOCwhhQ08c8LpxiB5QSMouO0FVADUHCaxODDO2y2sXTYXMFub5Yr2Lte Gs5QQCBaFMnj4IIV3XNDsL5jU8PRtp8thpbu+/uCv3RazBR8beujBWNekfJts2BIhVH4 vRIQ== 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=OREgMkYD3pp0Wr4CaTzUkDCrsNVGRgA52qCt2EBPTLY=; b=cT4xzpzK581GGj9BbERXKMzEWGr4Psxd3twMU8IGvarwQ35C49eH79tXNevJ2a7ECE ZLdwjkqitatXBMxZByqFGh6sktG63ycWU7BAUF5J6K/jfhDKnQblmx65fUPpvqXHrsKt TeoTLYrlkLLp2jYTtWDIlECGPRGd6m6gh1SOzhrQQThvovd94RRHPMEFHzAjtS4i4ccK 1jetNulOL0WqlBmok1E4e481qF934xZp3Rocoa6PlbVm0z5CzIUIstLGlzo8CfeZM0m7 oVXdkMthhJIbmU2A/6Pi4YpYUM4wmmtU7AuZstHLtDaT+ndFYogdWaGUdqloSttWYPHD Ehmw== X-Gm-Message-State: ALQs6tDA9YSdWyOI1dzZqnRXLG8Zo1WziKvrZBd3DebQ8AM1pDxa2Yxu Gu5bWZ58E0/zyD+EWXYuX9Swp+I3Lgs= X-Received: by 10.167.208.210 with SMTP id u18mr17910715edo.97.1524575910428; Tue, 24 Apr 2018 06:18:30 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id j89sm9077495edd.37.2018.04.24.06.18.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:29 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Greg Kroah-Hartman , Quytelda Kahja , Colin Ian King , Hans de Goede , Joe Perches , Arushi Singhal , "David S. Miller" , Arnd Bergmann , devel@driverdev.osuosl.org Subject: [PATCH] staging: rtl8723bs: fix rtw_cfg80211_monitor_if_xmit_entry()'s return type Date: Tue, 24 Apr 2018 15:18:26 +0200 Message-Id: <20180424131829.5215-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/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index 46bc2e512..75d8a16f5 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -2472,7 +2472,7 @@ static int rtw_cfg80211_monitor_if_close(struct net_device *ndev) return ret; } -static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_device *ndev) { int ret = 0; int rtap_len; -- 2.17.0