Received: by 10.192.165.148 with SMTP id m20csp4735697imm; Tue, 24 Apr 2018 07:37:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx49jUvMjuiq6KdWUro9CdAGhjDm6s3d/RKiNU0YBCe49+rQDlltFF7xBKBHeC8tEwpgKgi+H X-Received: by 2002:a17:902:be08:: with SMTP id r8-v6mr24780828pls.289.1524580659429; Tue, 24 Apr 2018 07:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580659; cv=none; d=google.com; s=arc-20160816; b=Ol6ducBM/NBbXKP7WHvUjjdIs0Zu9n4r43EylW6g4l8qrMqK/qibhodLcZpZmrMUPZ wbdfJoa3NcEwghGbUkvqpQbFailjxkNBEYnIks3LA5pIO0+MoyLUzjw2crhpv98jBb6H fod9pYX1jtRNH1n80dwut9WM4I78ZJZxeWaz6beLUf+jSYc5CPrdN4Lkl+d0TcBpYkZM DW/W0EE8DPuubT5MNcOdwLdrjJXGFaphH+gkE5s12vcjXRp2vI7yZljBeKeNuNZkkbGm yp4vM7HeL5WKNuL9xHQ7NAEzY+ZUrbDsY6WT83+zrcNuD8UL5yticX8Lsbqj/Gu6BTvC ya1w== 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=xLvR/HRcHL3Y9WSadO8cFo0tJpj5rVNndfqUcfQG4vo=; b=kV6emlLNdmF4j7eg+C0S8Zl68/+g8pdYPgqX755ok5FWMSEjswrF5MYS62Ddq1J52y O9C+2LXJgY6gbc2kNp9rRbWe15tuLCg2sbPdO9Utl5G3JGwJVLsOsIbY3iDnSicY5oTw 1NJfef1+vRt74DEO2SYDkSicXlyZXuZQLY/slT2ll48Antv9RMtMY730SpMUOb4Yoa+U byIl0lPI8s/uusvt2o3AIr3BNULrnEDtpoQe9ra8IqWyl0DLVjVmdcvmeRHlHc23oqe4 6BUgjA5lwBV66BNlwmgPiJhVshrwuH2zeJ0nVCUXrLSdnubidlCLercJBH2F1pH2jcOA fWGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bZVQ10o9; 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 t202si8778807pgb.60.2018.04.24.07.37.24; Tue, 24 Apr 2018 07:37:39 -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=bZVQ10o9; 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 S934092AbeDXNSt (ORCPT + 99 others); Tue, 24 Apr 2018 09:18:49 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51585 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934081AbeDXNSm (ORCPT ); Tue, 24 Apr 2018 09:18:42 -0400 Received: by mail-wm0-f67.google.com with SMTP id j4so919546wme.1 for ; Tue, 24 Apr 2018 06:18:42 -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=xLvR/HRcHL3Y9WSadO8cFo0tJpj5rVNndfqUcfQG4vo=; b=bZVQ10o9i1/faivx0z/N85V2wWYi2BfR+jhKjwtWqFHVMMwHFf7vxxN+YigtLM5k3v KVPFYhkJ2Tl3P8+m7+eNYLveGT5uggEWTgea615C6aNCkkdlNsjq2HGlNMOePTnyolKV /+SKTs8PMk3GZY/K1NMPMjwUWyWpLQT/XoPfTxrfKXljQVPC/rX3f4WwlrT62R/MkF9y VAAVgQ6hkkG5hBr2gsOSuhrc2z6TVQOF+NMQgTnsz47IKtL93lff3CowvjylO2KNidL5 /xLIYK7YC3KHKUwp5HqVqd+EClHqcEvGGm/M50J6cASRLSXjEwdb6yMnSGWExra2ssVw qcEw== 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=xLvR/HRcHL3Y9WSadO8cFo0tJpj5rVNndfqUcfQG4vo=; b=bmIdOEfLvWnuAOTR7A4QAZy7w3gUtrlpnraFzuWeCfnM9qIrgCDFd3Xys3S3mmdO5h WqEPlBpOIWgMWsvsAUFSXtK1VwTwUdHuRJwUJQZHrD3iMJrVqYxGcvwxbMlmffEoXszH bA1dDFd2TztgLJeynoUimUTbu3qhUDDY0FXLfxicmdQ1y75aDWzuuvGmZyZt/1kVburp DvnNTCErBgfhNP70XvTwIxqNnEpgmzqi2eKXs/8oNO9Hx+IDHXk/g+5MSBsoCBiu28zd O0GVelPCuHNfGR2In6nfBTiGK4QlHaeYPfYFVRm9pwlIIz17uunkJqaz7rt4iOYQfa3W x+cQ== X-Gm-Message-State: ALQs6tCPs5u7U9Joag8SNhXf7YhII1FSc5hEwfxl9va42BqYy258+FBi fqKiOs6QBEaHzoR4N1UuS9X6nH2Y33c= X-Received: by 10.80.159.193 with SMTP id c59mr33170640edf.277.1524575921230; Tue, 24 Apr 2018 06:18:41 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id j90sm8636565edb.12.2018.04.24.06.18.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:40 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH] tty: n_gsm: fix gsm_mux_net_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:39 +0200 Message-Id: <20180424131840.5368-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/tty/n_gsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 3b3e1f663..349c2e967 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -2665,7 +2665,7 @@ static inline void muxnet_put(struct gsm_mux_net *mux_net) kref_put(&mux_net->ref, net_free); } -static int gsm_mux_net_start_xmit(struct sk_buff *skb, +static netdev_tx_t gsm_mux_net_start_xmit(struct sk_buff *skb, struct net_device *net) { struct gsm_mux_net *mux_net = netdev_priv(net); -- 2.17.0