Received: by 10.192.165.148 with SMTP id m20csp4649701imm; Tue, 24 Apr 2018 06:20:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx49W6kydsJjQJO63rfRvKXHrarzkESZME/tHr3eEukdkcJA80dqK0VLf+gGDj4SGE/vbRmNz X-Received: by 10.99.115.81 with SMTP id d17mr19730052pgn.297.1524576035296; Tue, 24 Apr 2018 06:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576035; cv=none; d=google.com; s=arc-20160816; b=pVMga8juQcaXi+sZR3hbX2HljoBd+mK4Ghx1xU/ILfVDVZEe929qM1nVeZ7m7sgPQ5 hm5NSf/Zxe964Db16itozhUeEQdLO4AwH+64pKyh+wsARKyk7Jf7scvrWjTBb4suZjGh esACesobXeeu+8t7uerkZ6uJwvVCg3ZGKblkp/cH/plHI25YT/qKCFB7dXxkXI1mAH72 B6gZqUa8KKQcBzFENlnvVOKvDJuUyCHWIYbZgErXBJOfZtXnncA++tOaqVTOolGEAOzt lNbG64n/tRjHXIkarzToHl/oc/C9Z7LLHCcAmyTLMQVjCs/gORIa35IHRxm4hJXBoAVh mhsg== 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=xD93GuBMvCA4IWy1QL1kklam8aXuy/alGt6fAJ8G/78=; b=pCCjG3opNUI3PPM69vmEAS/aomNADirkamF0m57zLEQgpu0hH/BfPHG+HOrKDQ9r6g zNe3NviyHpHjjiHxGZ8O1OqFkOYN0to+23jEHXUyoBvhBpBK4/0v4zYFKndx1JwKsprT iD+2/D31mMd7B1diKIjg5EbZInGEXVGcVsLj9ll8uWCCGlJyWQhy0soLdTVkt5yhwSQR ZmnQ8HT9csQL2qU0h03yUmssBqDA4ittGfavgKOJBcNmvsQjyUIqxFc2uA5JkS/yygm9 wS6DopUlCZ8CK1EHkZfhzxU62bsbqgGqvkkIc6v3t80YhCvIlmb2OSi8jE0N95qX0UX9 vZdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aOVVdLcY; 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 34-v6si14205542pln.473.2018.04.24.06.20.20; Tue, 24 Apr 2018 06:20:35 -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=aOVVdLcY; 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 S1757934AbeDXNTC (ORCPT + 99 others); Tue, 24 Apr 2018 09:19:02 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55846 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933838AbeDXNSv (ORCPT ); Tue, 24 Apr 2018 09:18:51 -0400 Received: by mail-wm0-f68.google.com with SMTP id a8so918961wmg.5; Tue, 24 Apr 2018 06:18:51 -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=xD93GuBMvCA4IWy1QL1kklam8aXuy/alGt6fAJ8G/78=; b=aOVVdLcY3PZV7k3I6soLLVkmBrQ9KhyNwaPOp07orCPRGn7BJbkojNUO6ZTUwhD+Wf 5seF+UIyy6N/e6XNWr9g6pO18OAZLxv/npGYr95jOoWW5KHWlQlEfSzNStyGj6RpAqv8 KSRahb09CfiKw5HeBMJvwUVEW+FSADyyhQ0EGM8qn69hfvvY+twHHgr0KlSEjGzrEd81 d3ZIU/jg/eCnEIJOEoVZa0Wgb3DfA+MsGyaM+0L+l5eWHlQq483Xo7P/Gr56VWhLT73r ojU9piBtfm7eZdPvzhlykcZpx1PvWIja5FOgmvyTZ7659KcG+hFz9qZAlNGd4HVbed5r 3efw== 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=xD93GuBMvCA4IWy1QL1kklam8aXuy/alGt6fAJ8G/78=; b=XGYCsdmjQo+fU42oOz2KPg6ZtAYfggXISyu4uWykX+nKCZ9eN6A+ALiup3weAhvQ1K +7HXDGnNSLhOPKeSma7oT53OesFKNmf2vgvdTR8T+yy9UK7Rr2QDtFg3w2EcQyHGOhKv Uoyu+3HYw35pgtOvK5pLakMWAkUQ7YUM96RQ/lPVdHd4j+m/RoKM0ZgCGJ/bk5OxhOsP TTtAnEoKZ9e1lHi+J+FwwFtq6GBTeU6vd36+9XNiOcTW2N14HemYGPIhIPMxyqmrDCCO WpeuT+PpNcx2UNGNR+JXUF7vOWiWlNKQKj2aodOoYIdsHKgq/df1k87aTQK3490CNpTf 9LuA== X-Gm-Message-State: ALQs6tDqX7ystnnZBFSFtUwsZTiPtf6p3quVSA+jqGnM1CiVTEVkOZ/e A9MMA+Z015HYOJgXFcJrOtPvukLzSF8= X-Received: by 10.80.231.13 with SMTP id a13mr32892858edn.212.1524575930367; Tue, 24 Apr 2018 06:18:50 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id i6sm8789229edk.23.2018.04.24.06.18.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:49 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Dmitry Tarnyagin , "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH] net: caif: fix chnl_net_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:48 +0200 Message-Id: <20180424131849.5519-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/caif/chnl_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index 53ecda10b..d9712247f 100644 --- a/net/caif/chnl_net.c +++ b/net/caif/chnl_net.c @@ -211,7 +211,7 @@ static void chnl_flowctrl_cb(struct cflayer *layr, enum caif_ctrlcmd flow, } } -static int chnl_net_start_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t chnl_net_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct chnl_net *priv; struct cfpkt *pkt = NULL; -- 2.17.0