Received: by 10.192.165.148 with SMTP id m20csp427042imm; Fri, 27 Apr 2018 01:05:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrAw0ZdGoKgzYFrfUW69oYtzsckQLAsGBkk7Np2jukZWaIK46Bw/zG1F/mv+hgfNZmop7ev X-Received: by 2002:a17:902:5ac1:: with SMTP id g1-v6mr1362232plm.43.1524816310314; Fri, 27 Apr 2018 01:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524816310; cv=none; d=google.com; s=arc-20160816; b=s2scH7N9ca4jZRbwCwvpGaxc4hmneTiuc7WU5uCOQI2iu2oQQPAl5CGSnsTJ+bGo3e Y2fYq5Hj55u3wAiQsJPwQ8ieCMWwiMwIfmWrZyhGMGVmYvSziw0+s6r4kzqPkFoUCxnC vv7/QXbrQiGtQznRyfPTbcb1Xn/2E6hrM6uJ6Qw2ODrKwtGbJ0KFYLAaPq8puY0K2O0G 19Mel1JrZCMSqX5iZ6xIU2cwa0cq6cq2cbYyHwIggepGuXl3Tiw9z55qx6XgRZfk9C4U WgP269pSCcgMx4kzJUZaXrRHy6vtGzZtYk7Y9j7va5GFn28ds27SN8RQB9BYop9oqgX2 Pgxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=euNI6XCNjuW2YiFZPhdi8kk+EGBY6Y2Tho2ME8Yf9sY=; b=W8saNtjhF5hjq8YgRcK1Ir7AT7DGEptTSPhNAZQNE5N5XfUBP0RCk0SVL0WWJwCg3V 3ZZ7ibs/Is0JcNXag+fzBkPx/Q9h0WKA06w7ecNKK2d9g1jMbdhAdoFu3R24pCmo+YyK 2WIHpV5DBCI0xur9Fpx3Vuiq2u2+mVanvuzmTmCX7wDKe2cojNtYyIXeM8PV4aHTB69G fxYs5qPZ33Te9fY8oscT0RhwQROn65cywGcNPhc7IdaWR7Nqukx1ADlY64ttnwuV/3/Z WVi0BlrsV7QW+eOuiRTH0VxrZuvnpyH75GynFp1g6E5G0/eS1Jry2dJhLZNnCmjoFV2S MSCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=QB6AQcq5; 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 u128-v6si749765pgc.247.2018.04.27.01.04.55; Fri, 27 Apr 2018 01:05:10 -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=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=QB6AQcq5; 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 S1757630AbeD0IDv (ORCPT + 99 others); Fri, 27 Apr 2018 04:03:51 -0400 Received: from mail-bl2nam02on0075.outbound.protection.outlook.com ([104.47.38.75]:61808 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757538AbeD0IDp (ORCPT ); Fri, 27 Apr 2018 04:03:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=euNI6XCNjuW2YiFZPhdi8kk+EGBY6Y2Tho2ME8Yf9sY=; b=QB6AQcq5w2bK/oSrBebL/Pl489WSi7kS2g5Ff3WLiS9rvg1Zb4P6u1X5FVvWL/vICPXfstWAoT4xQfYQHs+/x1R7e7sO3LOO0e7c0voJ1z8ayts/9NQz2/5UOjNR9NCrsBMfeMlIM+b27AFYFCvWkc3KX36n7eDbraUtBXD5vpQ= Received: from BN6PR02CA0096.namprd02.prod.outlook.com (2603:10b6:405:60::37) by BLUPR02MB1668.namprd02.prod.outlook.com (2a01:111:e400:525f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.18; Fri, 27 Apr 2018 08:03:22 +0000 Received: from BL2NAM02FT039.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by BN6PR02CA0096.outlook.office365.com (2603:10b6:405:60::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Fri, 27 Apr 2018 08:03:22 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; pengutronix.de; dkim=none (message not signed) header.d=none;pengutronix.de; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT039.mail.protection.outlook.com (10.152.77.152) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.696.11 via Frontend Transport; Fri, 27 Apr 2018 08:03:21 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1fByLh-0004UW-AV; Fri, 27 Apr 2018 01:03:21 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fByLc-0000qM-7Y; Fri, 27 Apr 2018 01:03:16 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w3R838qZ005628; Fri, 27 Apr 2018 01:03:08 -0700 Received: from [172.30.17.111] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fByLU-0000oP-4F; Fri, 27 Apr 2018 01:03:08 -0700 Subject: Re: [PATCH 3/3] can: xilinx: fix xcan_start_xmit()'s return type To: Marc Kleine-Budde , Michal Simek , Luc Van Oostenryck CC: Wolfgang Grandegger , Maxime Ripard , Chen-Yu Tsai , "open list:CAN NETWORK DRIVERS" , "open list:NETWORKING DRIVERS" , open list , "moderated list:ARM/Allwinner sunXi SoC support" References: <20180426211339.30821-1-luc.vanoostenryck@gmail.com> <20180426211339.30821-4-luc.vanoostenryck@gmail.com> <79ea4ab6-a12a-21ad-b586-6a1dad176c0a@xilinx.com> <02e9be66-1345-2af7-c343-9f94d71e1d10@pengutronix.de> From: Michal Simek Message-ID: <2026db65-01e5-1cd3-0c11-144ae2ae3d97@xilinx.com> Date: Fri, 27 Apr 2018 10:03:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <02e9be66-1345-2af7-c343-9f94d71e1d10@pengutronix.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(39860400002)(39380400002)(376002)(396003)(2980300002)(438002)(189003)(199004)(8936002)(39060400002)(6246003)(316002)(8676002)(2486003)(54906003)(23676004)(110136005)(106002)(186003)(426003)(76176011)(229853002)(446003)(11346002)(2616005)(36386004)(2906002)(86362001)(26005)(31686004)(478600001)(575784001)(81156014)(63266004)(58126008)(81166006)(356003)(50466002)(59450400001)(44832011)(53546011)(64126003)(31696002)(65826007)(126002)(476003)(486006)(77096007)(93886005)(36756003)(305945005)(5660300001)(230700001)(4326008)(336012)(9786002)(6666003)(106466001)(47776003)(65806001)(65956001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR02MB1668;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT039;1:qqThlRTEsCIIojFAF1c3Z1yav6TREUQMiSlIRdjeJTBE3wlXUsqmfRsH312IdVA4ZofEXqQcnWk9ZaReS4nybpMiw0u/uAHxwYYV6ESISo+9XjqPWO5FOXtEBG7oDzxc X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060);SRVR:BLUPR02MB1668; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1668;3:zxQ/4rfyIAk5CEk93hSzMBw9wlFo9pOhKrYP9w3VXhTg/XnddwfMqKJHKif84EpsPVK3kmCiDmZo80IiQqgRtB/QQHgT6w0rfFpeLyA2xCV2g9YLrMmeJXtLx0QdyPrArK0rQAQrI7mERfkXL4vwrZyUsGC5VwDlgUH26quXIXCnWepWwsq6QvAOiMdyxlkV25xtZk/G+/R3PgWJz6lVJIdgqRWfkU4o6kiQhugQBmQXVzjyjA2l6S79ZFHl553VtK41IOSE3yckKUXUXoWHiwu/mUa0lDrkAnzU9WEOa8fMDXdXwtdqat3EJR8ezvVxmis4w2w8EmXv1Q4xXAW689YYygqVt8CKaV9oyCzibTo=;25:gev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jIr1COdjgb0oZ+uYA3Z+yWuiVwtwhl/AtxwhaZuy+akJGabQDLrI00y6z6mYXjvCSzKBzEJEYr2bjHWRuN/Qgjw/Xc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93004095)(3231232)(944501410)(52105095)(3002001)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BLUPR02MB1668;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1668; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1668;4:okjOUShn+MLupZbMXdncEsKuLjoVHl3s/xiKspDau/kD6ngXVJ1sgOMh5JFeGjNs70/dQksdmSQuzpfzXsDM5p1ceEcsVOQBQhrvrMdQJlUJhoZ8ugk+nDuIWFbLrlmnnxcgNDxVoDZcnL5O4XMvxr4vJ45HxIoNHMsMX5zXo8exaqVyExwmsSAyUTEzdU6dy1drs231pk3YF5dpAwgQUx4uEnAXyhnj7w2SnEvWt4R8rNpvit/JxkqLVu/3LoLHrOmFBUc/gNG0tRf7r3dyT40G648sVZ+4utlSSxLablePcUbcTwDPfUHB8mLn8ENtGeSPXNuGicRFdTmh9hhSuziTCq2o0epKRo2nNWNYw0Y= X-Forefront-PRVS: 0655F9F006 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjAyTUIxNjY4OzIzOm8zdkZpNHB3MFlLd1RWYkpEc1h0ZzJtSjMz?= =?utf-8?B?K0pYTjBOTzZqdEpjeHJSdGJHdy9ja0dpdDlnZ213TzZiRzB4SlQwYXBVVFJh?= =?utf-8?B?SSs4OTk1UWx5NzhyZXhUT1pya2g3blovVm9YTXBQNkx5YU9RNG1TMVBNK245?= =?utf-8?B?WkNJN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ba7mHgMQf2w5jT/Qj7TBC7VzoPo3kJ3HHF0G7sjNeViO/qy9Bm5STT8k9hLu7r/3CFJs2K1Hg6hPasJnBQ9rbhOWg+HVvUi7xACyi5J8phBCaXIhLx+tptuERDQnRHzM+AUo6KksRMdT4k12Rr X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1668;6:0bFI9t3zPQAla0Zn9pQ7uiyzUVDhFGb3WJmpCJcflpZQ8j+GypSuNPl73orBXuRVics1nhnhffSnXoHUc2yxxZUz1J4IlFtPeTlucqf3ktyejjeHiidPpxMrtus5FJUDEVlLuMn45GuNKF65bzgZChfWhXhYhHjaUgUyA/b6KXnSjgOCvYnhPtVSLVvWWVmLLJfHpeUiwpAkQCVfNdVv2rRIUdJkG5bptPeygEuVZZv2O6fpKCtmYzIJIxojTPVf2T13vosZccqDpJIXjIGPIsvHONT+2h1wrDBCsKGSLQGNCfYFqP74OLEtk4Ps3BdFFA0aphzK6tb5mQOx/4Reu9eqOnEWa25vjtME5sIAr/uVJTsnAmO+KvkxppZ7hoPcdGOoLjm4e8Ts17YIQWkiqHIojyVkuJLEdHbMpsMxttDNttxG+yYoybCOMN34d79296FBFpkUvoCI8+FIOch4XQ==;5:8kDiWaqU6lkgKAmJR39wX9X9XRWg5gbEZUBjub/q/2r28TeGAJ9HTINSQPw0IOoAoKzKdMa3nulJXzw9zdOGyKnkj1HlapE7K6sJzFRWelfHPBJsySVo4a9BoNl9wNDUmJvh/D9MwYeUhdX1NUjhG5MvSBeSi1uilxEjd7IF5/Y=;24:Ptl9BcLKrgnC89TikodmYzF+zFClCcEDe9nIzsILM7B4k/KzSi6/PmRuYUeQJzGHpnTznWF/tf03anqdzFsDVYZENxuPgreAvTtpSS4l3S4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1668;7:DD4zjZVp6dJVQCxGY5FgIzsLwPDzJGK4E9uGoW4/IEScP2ghkQJfNz34AX0W8e4tfwbeXmNvTMh17G8fjgl94T1b9fyW2YUEHmSgTBwpHO7bdSrIi/fycXb+1sU6sGmemNJfNjJam+HdPb9bw8vQaOCdFAe3wM3V+ddPkmsjTO3Z44cyjaEHKx06OyjZUnrTjYMDkT1HtSZvqBLAwEiYLZjHOo3NEK6lTHDkyZpfTGaNnQ3uJn2Gl4biHIHYqLe7 X-MS-Office365-Filtering-Correlation-Id: dd90e723-aba6-481d-37f4-08d5ac155881 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2018 08:03:21.9291 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd90e723-aba6-481d-37f4-08d5ac155881 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB1668 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.4.2018 09:55, Marc Kleine-Budde wrote: > On 04/27/2018 09:49 AM, Michal Simek wrote: >> On 26.4.2018 23:13, 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 >>> --- >>> drivers/net/can/xilinx_can.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c >>> index 89aec07c2..a19648606 100644 >>> --- a/drivers/net/can/xilinx_can.c >>> +++ b/drivers/net/can/xilinx_can.c >>> @@ -386,7 +386,7 @@ static int xcan_do_set_mode(struct net_device *ndev, enum can_mode mode) >>> * >>> * Return: 0 on success and failure value on error >>> */ >>> -static int xcan_start_xmit(struct sk_buff *skb, struct net_device *ndev) >>> +static netdev_tx_t xcan_start_xmit(struct sk_buff *skb, struct net_device *ndev) >>> { >>> struct xcan_priv *priv = netdev_priv(ndev); >>> struct net_device_stats *stats = &ndev->stats; >>> >> >> It was applied already but there should be also kernel-doc update too to >> use enum values instead of 0. > > Like this: > >> diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c >> index f07ce4945356..d0ad1473f689 100644 >> --- a/drivers/net/can/xilinx_can.c >> +++ b/drivers/net/can/xilinx_can.c >> @@ -398,7 +398,7 @@ static int xcan_do_set_mode(struct net_device *ndev, enum can_mode mode) >> * function uses the next available free txbuff and populates their fields to >> * start the transmission. >> * >> - * Return: 0 on success and failure value on error >> + * Return: NETDEV_TX_OK on success and NETDEV_TX_BUSY when the tx queue is full >> */ >> static netdev_tx_t xcan_start_xmit(struct sk_buff *skb, struct net_device *ndev) >> { > > I can squash in that change. looks good to me. Acked-by: Michal Simek Thanks, Michal