Received: by 10.192.165.148 with SMTP id m20csp4669160imm; Tue, 24 Apr 2018 06:39:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqExEV13nPifpFdq9WtGFEGuO6hA4DnQxk9++oYgYLMMSQMR8JUkOJkQr+PyEI0u2RkPPFV X-Received: by 10.98.232.1 with SMTP id c1mr1503360pfi.184.1524577145120; Tue, 24 Apr 2018 06:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577145; cv=none; d=google.com; s=arc-20160816; b=x1kB+x8GeLhtfj282gPD6f78OTtYK63mGuFDXitz/oVNhbGUl6GnyGuwrboy0tbrvg BQtyXnR/nzHBiuvrBaYeZe54niRvZSj2jrM3mD5ciHQNl1NgxDR9JBR0O2bi4nhVZMJM Fir0DjFJbAVJ2HYfNHRMpW4IFaEOs0QtK4j6bSs0mvISqdM6ve/CuHomt43hKc4AfBM4 E/6h5xt7UbHdPevSJLjaorUty5CpAg8NmBGXi10gJ29/GNDrFibQRit7qwF+6kyA9QQA 60JAX4vLlWcnb5SyD2P9hVVGVRUyT0yPAWYTgZtclvQrHRN+T2rHpFKKjwl58RmOcZ+i Vn5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=PGtf5nWMqyfYjce9ydqMAwkzZ7+r8fgVJJzY3bhKaTQ=; b=migrthNRTe176VkqGi9MhSGIknWkVzgt0YAdoOvKE5S+44PE7cvNWKdnht3mDLUlL+ j11/XjmHRLL8SmXPxxXTPRuemCQsBsdXTwL1rIji52CYNmwpDhJaHjeVHH/zsMQCw6BN 1BjDTMma5v0dn7qXrdDh9HhgQ2OKLhKQoJRTkjuriqKGhJpUwlzfgsntpDghGI7ZGqd5 FraKki7L1KemVH0ijGkYD4soofaZwd4uaI0wJMysPhlsOz+qciQd2xGv5jmdy90CpAEF 8ZiM7Pcz8i1hod6mYfeBfQ8pXX6nSZxEZ9LtDJ2sBcldfuftM0kR2V92be0hlOpKacGD Kbbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=rK1/RXwH; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si13136231pfb.111.2018.04.24.06.38.50; Tue, 24 Apr 2018 06:39:05 -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=@oracle.com header.s=corp-2017-10-26 header.b=rK1/RXwH; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934646AbeDXNhL (ORCPT + 99 others); Tue, 24 Apr 2018 09:37:11 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41126 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934178AbeDXNhF (ORCPT ); Tue, 24 Apr 2018 09:37:05 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3ODVGc1161798; Tue, 24 Apr 2018 13:37:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=PGtf5nWMqyfYjce9ydqMAwkzZ7+r8fgVJJzY3bhKaTQ=; b=rK1/RXwHjoWy6rDhx9xu//J83lA1NlCipp+OAQ+ozXuhC6mgV0eC/oKFGoM3MgkYzmUD fvtSwXGzlno9TEUjBN8EV0EwnyLAArZkzo1ODOUXzWLe2hdF8crKqP8UmJII+iUkw3pO h5zSTZJg5pmFOktgVufvNiIcoWh5eygQDP5afqqzZy1hzfPQQkVCGbvGeb4e6TanwHoa sDgxaVoCgglhiIy/R+PIj4+QNg4wye1n+4XBr6ht1CKBvVj7x0jVO0AIE90/uyhPET0v Z1aLqnfe0zQ3meiE6OWEnL4nxlIbeT35Dxek6uqwg1z7c8HZzxRRsZDXny3heI5dqbHF lA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hfvrbt5ca-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 13:37:00 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3ODaxol016415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 13:36:59 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3ODawn4008581; Tue, 24 Apr 2018 13:36:58 GMT Received: from yuvallap (/10.175.44.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 24 Apr 2018 06:36:58 -0700 Date: Tue, 24 Apr 2018 16:36:53 +0300 From: Yuval Shaia To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org Subject: Re: [PATCH] net: ks8851: fix ks_start_xmit()'s return type Message-ID: <20180424133653.GB6766@yuvallap> References: <20180424131705.4155-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424131705.4155-1-luc.vanoostenryck@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8872 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=828 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804240131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 03:17:02PM +0200, Luc Van Oostenryck wrote: > 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 Reviewed-by: Yuval Shaia > --- > drivers/net/ethernet/micrel/ks8851_mll.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c > index f3e9dd47b..a732fdeb5 100644 > --- a/drivers/net/ethernet/micrel/ks8851_mll.c > +++ b/drivers/net/ethernet/micrel/ks8851_mll.c > @@ -1020,7 +1020,7 @@ static void ks_write_qmu(struct ks_net *ks, u8 *pdata, u16 len) > * spin_lock_irqsave is required because tx and rx should be mutual exclusive. > * So while tx is in-progress, prevent IRQ interrupt from happenning. > */ > -static int ks_start_xmit(struct sk_buff *skb, struct net_device *netdev) > +static netdev_tx_t ks_start_xmit(struct sk_buff *skb, struct net_device *netdev) > { > int retv = NETDEV_TX_OK; > struct ks_net *ks = netdev_priv(netdev); > -- > 2.17.0 >