Received: by 10.192.165.148 with SMTP id m20csp4868142imm; Tue, 24 Apr 2018 09:38:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4998dgI6aq0B37C42Va9a8s1TLYkRn28OhY6G7ceAmqLWepLrhCyQyf9hn/6JUtMQQ6pnFn X-Received: by 10.99.50.134 with SMTP id y128mr21419104pgy.419.1524587935916; Tue, 24 Apr 2018 09:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587935; cv=none; d=google.com; s=arc-20160816; b=DNxEoe+aV6N/t1X+jRizmpIjQilloF+KWo8Fpj2VN+yz9xHkZL/KO0cZ2gH6YTDlF+ rkt7hAe10D0dz1CXhFjnLtfee9IYgChDTu8YXjs2q8a7y7F1yVG00+uqgda+fwNJEglr w00O59T6uZuqqvXhsM2Fv0LJjbBb57NvFfDNZg3mj2kphyAt5vjUwHQggSDkSk6u23lP IzD9zR/R0Q55bnUPKcl+Tej+Po8U4iLRwSz+MbdLDPS0SZBcYBXgqIEHGhJQ76Z1Wy0d EjNj8Yq++srZAADF5eoHiJbrItQbLMFCrxVeWk8ce+Dh5jPQbX4+7ES4AvAXkmYFYon2 eFEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=5zsKVb4yZkxkwE9Dr10wzL6QXHWGcbLSqkUVk73vGJw=; b=QggLWynD89KekcxblPzl4hNK8c0BQZnTHKp6jK4ll2GNnajygly+3Rq0CgTZQhXdwK 0fZZnU93e0ObaHCtHEaQGKm+XsxaJMi3GQtWhMiEKMrR76kwx/J+OfojrPkVUy7LQQXc bmGMNpVSBD3bKq908C1qE+SlxKh6J9plbreVofvz3QuQq6ajZHbsFClYvi/KRG2/LcDb xDMhlQ5eELuyp0yusT3Gl+BJQJfIb8lkPz4Q08Jjn1Hrgj1H2Kxzo6sKnhRWj1C5Ll5p DT3DgMyQ1drfap9EEalRdXy/u1M6mKRdHP7JY/vqLm47QfvBs7LMXEOh7NOSFzc0Fu7O cSDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=kHFNeDFx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si12057978pgz.62.2018.04.24.09.38.41; Tue, 24 Apr 2018 09:38:55 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=kHFNeDFx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535AbeDXQg7 (ORCPT + 99 others); Tue, 24 Apr 2018 12:36:59 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:41851 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeDXQgy (ORCPT ); Tue, 24 Apr 2018 12:36:54 -0400 Received: by mail-lf0-f66.google.com with SMTP id o123-v6so18686826lfe.8 for ; Tue, 24 Apr 2018 09:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5zsKVb4yZkxkwE9Dr10wzL6QXHWGcbLSqkUVk73vGJw=; b=kHFNeDFxo1achwrR0U81oeFXhFDBXLtCxC1yCRKG0+8NqeVN2Wq03qScoyyLPwTtzH xQ0WG7H3EdDHDb/bKIN/w9kktZhal/o/WiLyz9GGyDLjKaA4rQmsHIldBbvF6/Wd3Bjc zo0xHbEHD4hncwUxd0RuVfk4uDrxfFkuqf5rjK0EZC+z+KCz0oeoyyJ00Ki2m2S6YQD4 VJ7Vu+epG2/YDFb5arb59kGc4c/hdc+9Vbsc4W6zaJXXmaas04fa+0lJqJlpRu5j7L+N AACBC6b7aRVpnngoMlJAyYxsI2jE/EiV/zZPqFs4OUonT+n8jlHxUwFv1BoapGoc7AiQ +5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5zsKVb4yZkxkwE9Dr10wzL6QXHWGcbLSqkUVk73vGJw=; b=tWgT7DnNlYHb08uyurrFFFJpfkXITbQGS80cX/iVDOMDnmIbDaHP/YHhbYQSoejh8I ddFj+lv1FrFNftAfa3FqrSnvM2DKx2EqccrlCa8Ev99rnEGkFajUpwmXq063NDhJiQSL aW8vjuIa5sJvJwo/rGRCiV1ScyIUt/29vxDFZQTKNrPQn1At546mWM9thCK5vtre5wZQ SHhJzzvwmrnbg0S0aDeiT+aPNec/iLLRlcRs1YdK+5T5XWN+J9lPfVXI5tDrZcKms/4U +L5/y/xi0nBlCrpMsUcOFaoUXV48loY0jAGj298u3R7A3QoKj157qS67jUofRrjr+fQJ 4mbA== X-Gm-Message-State: ALQs6tCXaT2ApwjNJ8+Xqu3nLg3BOWnLYJfslbOBhGi0UR2ORmYD6MOj 2SUcpDoFeZrYZvXtlIwxPO0yAw== X-Received: by 10.46.104.8 with SMTP id c8mr18486526lja.20.1524587813552; Tue, 24 Apr 2018 09:36:53 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.86.33]) by smtp.gmail.com with ESMTPSA id k5sm2872325ljk.20.2018.04.24.09.36.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 09:36:52 -0700 (PDT) Subject: Re: [PATCH] net: sh-eth: fix sh_eth_start_xmit()'s return type To: Luc Van Oostenryck , linux-kernel@vger.kernel.org Cc: "David S. Miller" , Geert Uytterhoeven , Thomas Petazzoni , Laurent Pinchart , Simon Horman , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org References: <20180424131720.4357-1-luc.vanoostenryck@gmail.com> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <18573d77-d874-7864-90f4-cd4454024c7f@cogentembedded.com> Date: Tue, 24 Apr 2018 19:36:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180424131720.4357-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 04/24/2018 04:17 PM, 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 Acked-by: Sergei Shtylyov [...] > diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c > index b6b90a631..0875a169f 100644 > --- a/drivers/net/ethernet/renesas/sh_eth.c > +++ b/drivers/net/ethernet/renesas/sh_eth.c > @@ -2454,7 +2454,7 @@ static void sh_eth_tx_timeout(struct net_device *ndev) > } > > /* Packet transmit function */ > -static int sh_eth_start_xmit(struct sk_buff *skb, struct net_device *ndev) > +static netdev_tx_t sh_eth_start_xmit(struct sk_buff *skb, struct net_device *ndev) But aren't you violating 80-column limit? [...] MBR, Sergei