Received: by 10.192.165.148 with SMTP id m20csp4657088imm; Tue, 24 Apr 2018 06:27:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx490Ho3UY8osbvvDGapRV35qhIlehugljaY5A6GgmoFB+7Bnu32piiTbrgcLZ0Yua/6Cjr2r X-Received: by 10.101.72.140 with SMTP id n12mr20519021pgs.155.1524576468267; Tue, 24 Apr 2018 06:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576468; cv=none; d=google.com; s=arc-20160816; b=slKxSd03h+8eKvhmEivGelLON0UnAGyWYljbavxKPu1ycvu0jPX2uB/g9mQ1KuRjnJ 6KsLNPRFAJaml5NQaEow6SJiyMxwwITsMJc0VVfWeP+gccmtNhLn0zMP8v4C4pulJYRb n83XG37yuMJ1Juddn8fxHf/m6FUs5ApmUOYKvN2+Uan0rF+iI5mBsZ6eYJaOAszDJzpB UWNpjxiD1T5WF9VPxkcdReDmBwt7LghISdOeRDpDBEZyR82b7TFnTZoAneIrxQFlPp+b cCd7zMNT32ZydZ/x2wm9s6S30McE+o9r1XNdxOOS2UzA8UqDrNyg3GlNrlI0Fng6cTYj nDdg== 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=mYnz5degboQ7Ion/nDA9QPi3KUbJtrSOrF8jl7HtGh4=; b=d9Rp0cPii8V7vyk4CRdyUpfEvVRxfIcTBCpOzS9opmVe9eoISCaXy7m4Lo/lhX3ZuV 7D2zb+P2gE5EOPtjed8YzPR6Esi23oxoxz6CN0h/6o+0BrwGpUjc1QnF8klNZTLvAXZV F4J6XJGFr/QvXTaXSs8aZEKJfxD6iLkG+donqWILSAMmhGK3OiXx09rWshW047kvwMW+ t9BMgNZlRzPnP/0x+B+9f1s0S9Snpq6VJZ90LOt1bselKFxo/TbkB4T/BK/XYhkxYi1U lhYn/zn+UwO8Gt+hG7ap6MqOuMKfPKDxMx6jkRHXJywCrrThd3qSpJ2aGKDnDym/bPoX X1Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Him7f7Fc; 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 z63si11456943pgb.28.2018.04.24.06.27.33; Tue, 24 Apr 2018 06:27:48 -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=Him7f7Fc; 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 S934112AbeDXNSz (ORCPT + 99 others); Tue, 24 Apr 2018 09:18:55 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55839 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934093AbeDXNSt (ORCPT ); Tue, 24 Apr 2018 09:18:49 -0400 Received: by mail-wm0-f68.google.com with SMTP id a8so918731wmg.5; Tue, 24 Apr 2018 06:18:49 -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=mYnz5degboQ7Ion/nDA9QPi3KUbJtrSOrF8jl7HtGh4=; b=Him7f7Fcz6HvuQp+G0gX7ZTv21yY0EM+KUAd78h7Okn6eh2CCgdORezmkzAtJAWzvF PAisR4q+Esz/TB6+Wq70h/84yYxbc2gsKZGqqXfCuDFpsyDXcZGcdDsYD8h1NDb+CzwP ohCRY5I69k5GtrrPz6MTTCAArTrKKREd83ebZ+pDoX4ccb7x+2xDAvlkoqD8LITFkjcT nJGdNXOkw+l0eluFks7RfAM+/Jyx6l+shyh9oYQLe5kxnrlcYOzeTzkhI4EnjoFzZqti hAkqcdJGx9OYq1GVZb85lMXHPf59U832TUPSokDOLZAUCZbJPFpBT9YPSzW0sWr0bQAq fNUw== 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=mYnz5degboQ7Ion/nDA9QPi3KUbJtrSOrF8jl7HtGh4=; b=KKFId90EZ8oTZwzmos9N46X/ksvzapIdIksGtVZu3BdISzIMGVOOuB+IaX0omqXdVh TbnTaq8LSGpEoVTXBGVmxOlKV/BzVofeGVzlrc0QB4oSf5M0NjumytZldMjBuFr4LPbb Ay64RU0qDdI3GNals7xW07xMlpKATN5XlzQeoYuDrgO5mNiakdkwwl5oqqN/bpybFQ0A JfQKe6Bbj1rNglBg4EMZwU8yCMgjibdvQin3Bn1Lvl31ipYziLUk9B9Rys9ksbO9kX2C t3uz6E0dksDTBSKrDJB2OOgZKW9j85FjtyIVBfsYrS+WY+qkt7KWqJzJuRhgKh/Jcz8f Q9Qg== X-Gm-Message-State: ALQs6tBMXs2o7tx2YDd72tBItwfKjqsvpEZ7mCsANznAiDiQrsYOouQy dsboNOHXHOpspyyhBvLYl2qhEvkP00Y= X-Received: by 10.80.211.3 with SMTP id g3mr33037540edh.15.1524575928296; Tue, 24 Apr 2018 06:18:48 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id h64sm9349075edc.19.2018.04.24.06.18.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:47 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Marek Lindner , Simon Wunderlich , Antonio Quartulli , "David S. Miller" , b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org Subject: [PATCH] batman-adv: fix batadv_interface_tx()'s return type Date: Tue, 24 Apr 2018 15:18:46 +0200 Message-Id: <20180424131847.5469-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 --- net/batman-adv/soft-interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index edeffcb9f..e6c800b06 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -188,7 +188,7 @@ static void batadv_interface_set_rx_mode(struct net_device *dev) { } -static int batadv_interface_tx(struct sk_buff *skb, +static netdev_tx_t batadv_interface_tx(struct sk_buff *skb, struct net_device *soft_iface) { struct ethhdr *ethhdr; -- 2.17.0