Received: by 10.192.165.148 with SMTP id m20csp4685217imm; Tue, 24 Apr 2018 06:54:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpSBJI8HfbExPghniUusEshZgCN2HAO/G54q3p2G4d52yoGCeJdy/sGwIFiQDtEm4N3Y8KE X-Received: by 2002:a17:902:728f:: with SMTP id d15-v6mr3905859pll.119.1524578060428; Tue, 24 Apr 2018 06:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578060; cv=none; d=google.com; s=arc-20160816; b=QrgJlpCSNuxoL6JXycXhONLvvkfoYJFBXWdPwrmSRsTRVB/2UL+rQ0Lwk+HRQ2ryEg Bw1vzuEdIkT4eDRUJZEu24DGO/tmnwl0uohu3HjrLaupdoCIP3uF5z/p4TxYL7bjz+TR ermB4b/N9jZ1+WiH36PLtwd0V5GWLK/Sw55qSKEM91SXzFocaR3FqixS+GNXIyU4He03 USmG4x27r34LVaEYr0NzeZWi57gCRVj3aQI70JCtFdUsB8KJZaw9fkCM/lbBDNBCbHND AlrDTGSxU/vXmh3jNHeZumSbWNRXeTXw3J+8MOYZ3ynyjXJICQ+fY6yCGBNI4UufnPsX UQsA== 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=58f8JM7SkbaRR77voO4w0397HYGn8kEjKhuPPlIqzi8=; b=LjU0nXNL/gMmeCjDb1g9C9lvh7aR1G+CuL7Z2AiXwhHTngtWUYrJOkn5WgmZNBKWQ2 /7crBJsf10ZpUk5Y6ciuFPyQwJTGmYUPNWTttrKSw9q9gy5D6xVITOAitZj6aGc9v9nP Ze1CPz21gzR0+IK1cjGt8yKoXTDXMhm314OzHV0DyRJgjN1YMpmTpDCXjK5Pkz7tSGKn RuCwXiqS7W0ziKv8G8eIEkNo3otU2TsvhHaWZuK5kfaPMASF/yLHAnVJhmBU4pE/ZxMZ ezBidK1YpdDKYfXZJMrIQPcUSXXlR5HZKE89tUEyaUe3QwB2Mva9K8zesNJFstfreoPv /52Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YgGnVCfW; 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 t3-v6si805466plq.547.2018.04.24.06.54.05; Tue, 24 Apr 2018 06:54:20 -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=YgGnVCfW; 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 S934235AbeDXNwa (ORCPT + 99 others); Tue, 24 Apr 2018 09:52:30 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:53989 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933548AbeDXNQD (ORCPT ); Tue, 24 Apr 2018 09:16:03 -0400 Received: by mail-wm0-f67.google.com with SMTP id 66so891150wmd.3; Tue, 24 Apr 2018 06:16:03 -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=58f8JM7SkbaRR77voO4w0397HYGn8kEjKhuPPlIqzi8=; b=YgGnVCfWolsETWan12yIhQA3LneyPYA7o0BYhKcq8HiYQMZd1kb8nlIAop/X7yf3SA eOk6AbUo5Y/DhhvQ2e/4KMh8DfmeNL52ssCqVMM97+6EGxsgY7enmdIPXfAegTETfy+i wNbIS6F0F+MLnPdZ1YsD+7ZD4JVox1f1qZVaDz0hK3vKRhng7tDp/Y2h5nPwvvRPd58T x2aJSoNHk8W6IBYPAP5nnKeQROlHEurTULSsgw7N8to8Kd3QFj0erILZ6pYRS90qKZTe mmou7SBzms7eJIA1gDY1vRM+BCrdQKJhkRiJiq9+X1TSbeIDV1Lr2QXD0P5VK5qNQVCP dPxg== 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=58f8JM7SkbaRR77voO4w0397HYGn8kEjKhuPPlIqzi8=; b=RTeWurIpWjzDoYcRy/2OrNBIrfzjqQ2M5OvZ3/FZC8g2E9j88ACvzPFpZwpDL+8wBI /SBqK8r+E1CkCmVgRdOG+FbEGgYr9w7QtsDmESNKPotxUbtUqzRglqrRt9WgQT/4tKGG Tj91CYLF8r+BsJ8bFziDylAf5LJq9PUNOQYpvG3Vo0aqjNjxD+uVjwoIro+y3ERZPo2+ KH7zRhpGH9IPUSNS85Z5gsje91LDv2HfjH9N35t1JPWG2etC28BXgZ0q1EmNDn/9MfKK +rMZlCLdbBEiVe6jyMNN/u4WgQOPi6uWK6xSPQHzoxdgoOTp7pI/UElODlVGwWH1Xu3J GLUA== X-Gm-Message-State: ALQs6tAijUJMWyWEP9vw24BNp2dTvuUhu8102bxPAl1RHaFuN0u67ouG Ue0SMlvQ7hCg7Ae4wGjENVSBFvau93I= X-Received: by 10.167.208.210 with SMTP id u18mr17900333edo.97.1524575762126; Tue, 24 Apr 2018 06:16:02 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id c5sm9595237ede.63.2018.04.24.06.16.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:01 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Dmitry Tarnyagin , netdev@vger.kernel.org Subject: [PATCH] cail-hsi: fix cfhsi_xmit()'s return type Date: Tue, 24 Apr 2018 15:16:00 +0200 Message-Id: <20180424131600.3060-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/net/caif/caif_hsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/caif/caif_hsi.c b/drivers/net/caif/caif_hsi.c index 433a14b9f..a38ee7342 100644 --- a/drivers/net/caif/caif_hsi.c +++ b/drivers/net/caif/caif_hsi.c @@ -1006,7 +1006,7 @@ static void cfhsi_aggregation_tout(struct timer_list *t) cfhsi_start_tx(cfhsi); } -static int cfhsi_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t cfhsi_xmit(struct sk_buff *skb, struct net_device *dev) { struct cfhsi *cfhsi = NULL; int start_xfer = 0; -- 2.17.0