Received: by 10.192.165.148 with SMTP id m20csp4682064imm; Tue, 24 Apr 2018 06:51:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrGoRp+g8tRhvMWYIkaKvaUv4nLf7tKUZVlalKq1BZzTsLNzhDQwvx5ya+Ss+dR2wd2g8eX X-Received: by 2002:a17:902:bd84:: with SMTP id q4-v6mr613196pls.254.1524577879699; Tue, 24 Apr 2018 06:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577879; cv=none; d=google.com; s=arc-20160816; b=VArr36NPdNI+TxQPXRsSUwQLNDC+Ra1CFUCs5KrAz+iYSi7DJ85pPy1gjR+bX4pA0z evMNhj7dgFFTa9t/6Ld2nq2cCY85QhkcjY+sR3PDfmWxIBTcAOnB2vtN73P1vM7buMur 5c2hJrZtq+cfCkL8oc/RoaLiUY9pBkQFyhjqtNNytgSOcicXPYQWSyFSfQh/kIUAnIFz VaalZf1xpqu6FmiVTTGzhauChnmH6s/fZtOMH8gQuXayQnx0BIhpd0/dlRwG0vrrXJuJ xEUQEqgW46yKMeNx0AsUnD4Pb17yZnH87JeVNPiSaaiNyiNR+ox4WuelY4RJ1I9Jv2PF GaIA== 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=B/bajsnDTZy8WuPPJ+HuRht41CtqzBr8kjkfwOpYlSM=; b=EiNy9iL2uYgAJ2ps0kAat8CI+XrF/syo2l/kt2tiDjm1YsJ0teM61rkVTqOaGuGPfO 02ROxdQICNh9dX+tJGQa+6pvv1bukJpxAdzGYIXfLhIIeT7aagNrkhJJBhhcecM9tnkF 0UHw56eKoz7eeFNwpZ+xCZxPgaeWmFW+Kvbk7IJHgrMWv3JoYRbn+wgPfXaur8vHQ7Ny 4n4E9BFxbT1FTvsupUymD4Vbb0sZ79IYVCTUQ96643nJSYBYCZnFTw+QljSUCHvRwQcp ysBjDLyGFI4FyZ+7N+/tz5uTf4lRYHuk51aKsvRmHy9GlsIs8QhHCAid+/gmrrnMCHLj qv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A5clAJ6n; 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 k12si11866444pgc.182.2018.04.24.06.51.05; Tue, 24 Apr 2018 06:51:19 -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=A5clAJ6n; 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 S933663AbeDXNQS (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:18 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:56100 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933551AbeDXNQH (ORCPT ); Tue, 24 Apr 2018 09:16:07 -0400 Received: by mail-wm0-f66.google.com with SMTP id a8so900018wmg.5; Tue, 24 Apr 2018 06:16:07 -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=B/bajsnDTZy8WuPPJ+HuRht41CtqzBr8kjkfwOpYlSM=; b=A5clAJ6nu7vHJ5hLbL0uXXA39d+vuj3BC/FL7rEF3oVNgV8i170RLhSn41wsOII1QW i7PQvnEvGXcmXzGALTwX7VEKdad2ySTEFrPz7eBSPMzFYNAqKiASyQdUgMHBN0k2cI6H tqfYYfMIQWAUm8ncbWpGH3T25UECzV4NNBGSJczct9QqbQ6olj921cAACjHA/WFEbxeX 5XeG8Cj2SzBJDAjSrkYALB9OI0bcmJkOT+ZqdN35B/wK4KyEoVbxaLHGWVOyLCYa1a+E u+qJqrd6Pzl9IIPmJp64FhGtq515jJzImUBZHHSKB73GqXu/1to0DMto4Cdpq2ZfBLt5 YKyw== 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=B/bajsnDTZy8WuPPJ+HuRht41CtqzBr8kjkfwOpYlSM=; b=MdIQgt/4Ul1KEUAN/R/SKUwSSKVkVnIJ6aEpYuel2KlyL0XOBg+sicvLAXVttGJtiI lE3VqnkxzHbtDCEJ+HG+/cMvwvS2FmtDhVyZpWiruBYPFIgbLzOGmjE3wUOI4ZcECzfE VgTQ3JTORND2LuKs0DrnNkbQAUoymMylzsOtqKBXVc0d8vOypVV+btKwmuq5RRCLzKnS POws6gCUT4NeTUDUQToAgUScjkCLjWTHxFnDqjfcsSTumgOYNeWvosMcvoZ5Xigtf8Bo EG9q3lre+zIW/vrys8eC4loeiz44Xks3up/F9eqnDk8HiSUJAuooL/BSckCC+Y+Sqxbu c9WA== X-Gm-Message-State: ALQs6tAl3YG/uI9OayrSAMjfZ4c4GoypjrJxaeLg7e478oOiE4gnLs7b c7OPnCBvIbGXh6VktOmY5jNGEx5KeDU= X-Received: by 10.80.137.9 with SMTP id e9mr27661435ede.213.1524575766349; Tue, 24 Apr 2018 06:16:06 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id i8sm9167354edj.3.2018.04.24.06.16.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:05 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Dmitry Tarnyagin , netdev@vger.kernel.org Subject: [PATCH] caif: fix cfspi_xmit()'s return type Date: Tue, 24 Apr 2018 15:16:04 +0200 Message-Id: <20180424131605.3159-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_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c index d28a1398c..ab19b6667 100644 --- a/drivers/net/caif/caif_spi.c +++ b/drivers/net/caif/caif_spi.c @@ -486,7 +486,7 @@ static void cfspi_xfer_done_cb(struct cfspi_ifc *ifc) complete(&cfspi->comp); } -static int cfspi_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t cfspi_xmit(struct sk_buff *skb, struct net_device *dev) { struct cfspi *cfspi = NULL; unsigned long flags; -- 2.17.0