Received: by 10.192.165.148 with SMTP id m20csp359204imm; Wed, 25 Apr 2018 00:12:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/a3xp7/D61ydy4qvtwxPLwAMIOwESpSXIykDJZqR7Kq35wBRvYc7Pi2VlirEdDs9PPWg4J X-Received: by 2002:a17:902:1e2:: with SMTP id b89-v6mr28576414plb.389.1524640339779; Wed, 25 Apr 2018 00:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524640339; cv=none; d=google.com; s=arc-20160816; b=Uw7axnFrH6WTdK4DPOIy4Q0KJGGn2myRLpVFNDJ/AK8nTJtjmcW9CFbc5yoTWTmbuC TqdjkTr6K1ZN5EI9o6l/PDSog2MU7GKKERgIfHEBEXhmNwNHcrgi0bU1lHdemb2uJnM+ lBlsS2XipFqNqdOCDAftQX6e8fUH2EN2NCDZpQuvliJIO/LtcW54EVh5iAiw9jTbxWSv 9yaUpqjFCI07uLyZ1vGrf+4Z5BccU7HkFIs46h/aNVc7Ba38nB7Xa0UP4bRB1gpfzFgK 0ihxpNrY9o0XEFCsvNK0EjxVZobhJ620XR+6pDiPgG2XE9Ce8ez7BPA8fViIe0jkR5Id tYCA== 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=HE6c67dk2HkFQjfrsaAXR2tBCFRddWnIKGeazkBXKHY=; b=Bx7pMn+l0ZQKs+3UxohPYZDQXUl41zaHiGcsL2E14MznROdACXkaiU+WEolpW+fRrX HmHb0XOqCpx3neGUQUlH6iEOJqTt0HKN0srVloudjR09nTK3U3q0WHs+qIOprVG264hu KIws4jRxIcWWDTSaca2s96umN2UhVEGYqYNST9iRu/j+JGTdJCXb+POxDqxZonwJNLJ/ Fy3XL2SOU1G/cMwzqqF4+GTtspMlaY/rQlReAlWpoKRH1tqVTcxrlYwUK12NJt4IcvLN 9n6lK7eFyB1YtvP5jVIPbF+ATEV5nsQShiJsk9G4s5+akd9FrxlC/jWkclJVu67T07v7 1zWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=nLGQCQ1C; 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 p1si15188390pfp.72.2018.04.25.00.12.05; Wed, 25 Apr 2018 00:12: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=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=nLGQCQ1C; 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 S1751434AbeDYHLA (ORCPT + 99 others); Wed, 25 Apr 2018 03:11:00 -0400 Received: from mail-sn1nam01on0042.outbound.protection.outlook.com ([104.47.32.42]:25323 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750929AbeDYHK4 (ORCPT ); Wed, 25 Apr 2018 03:10:56 -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=HE6c67dk2HkFQjfrsaAXR2tBCFRddWnIKGeazkBXKHY=; b=nLGQCQ1C+GnSos3FZ0XJt6/C/j6rshUcoDvsX69qTqAqXfnVkpMPWNGGjlpNKVbq0xlevwKWirsiIyms5QhOAHmw7W/sRnH/ZS6aQnNzqFrrd1GUGWVM9O+VEmH2QJrR6kkbYsGhW+VCFOR9utAaCQQQ2p2XxZjcLv/DQ0xWaI4= Received: from BLUPR0201CA0022.namprd02.prod.outlook.com (2a01:111:e400:52e7::32) by CY1PR0201MB0681.namprd02.prod.outlook.com (2a01:111:e400:4c26::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Wed, 25 Apr 2018 07:10:53 +0000 Received: from SN1NAM02FT007.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::207) by BLUPR0201CA0022.outlook.office365.com (2a01:111:e400:52e7::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.13 via Frontend Transport; Wed, 25 Apr 2018 07:10:52 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by SN1NAM02FT007.mail.protection.outlook.com (10.152.72.88) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.696.11 via Frontend Transport; Wed, 25 Apr 2018 07:10:52 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:50446 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1fBEZn-0005MM-RJ; Wed, 25 Apr 2018 00:10:51 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fBEZi-0004bq-OK; Wed, 25 Apr 2018 00:10:46 -0700 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w3P7Ad3i027317; Wed, 25 Apr 2018 00:10:40 -0700 Received: from [172.30.17.111] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fBEZb-0004ak-Mo; Wed, 25 Apr 2018 00:10:39 -0700 Subject: Re: [PATCH] can: xilinx: fix xcan_start_xmit()'s return type To: Luc Van Oostenryck , CC: Wolfgang Grandegger , Marc Kleine-Budde , Michal Simek , , , References: <20180424131614.3357-1-luc.vanoostenryck@gmail.com> From: Michal Simek Message-ID: Date: Wed, 25 Apr 2018 09:10:37 +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: <20180424131614.3357-1-luc.vanoostenryck@gmail.com> 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.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(396003)(376002)(39860400002)(39380400002)(2980300002)(438002)(199004)(189003)(110136005)(64126003)(81156014)(229853002)(2616005)(8936002)(8676002)(59450400001)(356003)(54906003)(5660300001)(58126008)(316002)(53546011)(2486003)(230700001)(31686004)(77096007)(446003)(76176011)(63266004)(65806001)(26005)(81166006)(476003)(4326008)(6246003)(23676004)(65826007)(106002)(36386004)(36756003)(186003)(50466002)(39060400002)(86362001)(106466001)(426003)(11346002)(9786002)(486006)(31696002)(44832011)(126002)(305945005)(47776003)(65956001)(336012)(2906002)(478600001)(107986001)(2101003)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0201MB0681;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT007;1:GLaiDCmImxXgFT/ri0+Dylg5AXBbN2zjlyK/kYkcHGEDDcghjw3eqe4Bew6vYl/+f0E+LMIlww6UnNSY6ZQzsMM/+WKkpPgOQ7rza4AQ6XTx3UDSXaO55aa7cYRPKGBh X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060);SRVR:CY1PR0201MB0681; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0681;3:cHyYmlgv6+CJGc9dUB3upcEKL93eL13Nq5zRxThObS08Aw9ODbOEdHdbHA4F6JkA/dyX9ZFHZkcpFNDVnnV+Z9uRUYUlViSgqDBpzbNb4A0vhh1a1Xj3tJ61HmNnZsSo2bpsrjRwXq2xFLje1mPoDhvnCMhhYrAXnnIPyYID9qYtBwRF62QDbFbrjjnDHLp+FVpPD66fqCmGyxp/KhZYnHtw0zWT27EAXT26jcrZ21UAxqAP9RAsM3hQEFKFJuHfju6hgncQEVHKh7jE2N2UBqKaVMEY2KvAHy1MOWZn6aoYVmM0SNaYKUuv0bMhRJRc6V0/kQXHerF4Z0Oj7/RMzpYRy5mVoinX4lVn/m4zqFA=;25:AB7Yjm2DFLgxgSUlCLyKsWsliqCPdFYy6vIdVhzxX7Gik/x5/AAmbAuBsqbRvzI0L1D45eZCp2NRjQjDB/dn+v32PiL5RLr3fGJeXQMAJQ3eNy3E1dVENYs3LT0AFcksvzK6uJssvINh+RkCyVHEqAaTucTdozykXpxcSwuRS2XY0gmlg5+0tVDVirTdjazQ8782w2RGJL7/IjY/xQDNGBtwRvftqAuTWAD/7/UNG7OeJDbBzIBPSZyc5g/hELHpqzsdNLmGFKbdV0B/i+DZP8Myjb38npQ+F3K1PajdmwnKzh1bSRgo3uyxiMui1rLiOYy9rgoFCN27p2abXuc6Wg== X-MS-TrafficTypeDiagnostic: CY1PR0201MB0681: X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0681;31:UD14/fpLmWsk6gCMY9k2UxtgRWXbhOIYAf95KCziBaLu8xQZAw3ssZa6NdTbCyrdAPi/nOkHUkCtCYDuTqVkILNKv0Zu/lVXlnr/OJtRwUuSFUVu5RlMI2vsjTg/W7Xc1PXlskErkkIWf3KOLMM6xJu7ASt+7MHbwsyjJK1wa8qhPEJf6QYPOAzGAh63wN0fyWcDva2pyGQg8L8bd/X0ouYQulEcgRxq3G096YhowuA=;20:zwWfvutywmlDke4j5BiL/RMgMj4e/f5kpXJ+VmTI4zhNJhMhRyA0p9i0WMoVjIJIYCIlIfpcvvZLDBSeAF6VbP2dXUKZmams7i5JUGNj+g41mIJWIneXVESh1wflTPGas5LfafYHtksNyA4jX9Z6/o24VDTbpLDahPsALLUHDnLP7c0EWvNUK9RmLXlPEbc1hHNPR+vKe6RDIwuxgKu5MP3vnFu0/aLBbWHV+66rgPUxZzjPbjX1vLjZg3ybRrCRxVD0ImuWDHHKskYoYtBnTEbmBTHIOe0KxiPJ4XwlIeJy8Wd+mVYwKipzzWMz19goKeHuseHxD12XVxYLxLX5KTwBKKKptl79OW2t3KkQHvxqORt1ptyYTZy10vT+tGM/DEo7KN/xNbPalpMNbeQUz/eBSHs3eDf0KKJIAm2w+d4AhnhWc8XJWKUUO56rTjkWjj+4EedrGy0CiDhUs3cFPH6rdJB1p6L8advKiivoA5OaqCtEraHXbCMWFI6RXx+t X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231232)(944501410)(52105095)(93006095)(93004095)(6055026)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:CY1PR0201MB0681;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0201MB0681; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0681;4:O1pDbJ5XE1bktzzGcZbrOhz8o/LtQQrOUHKUldmLkS1FGqEKzgRkPhG31ce532UcuZO7YW2/DW3w797cdN2cUJFpyGKyLDA2mAGq4RkPwL37ilObU+9+gorxtjLr2vH7GK4tNVrxvX0GDEMy4+XaB1FsE+ViVuKY9POAaXfhABbib+11YVgXJ6mm9Z9CkoeJmH39ERt2pbZaVii/lcVR2nPCpBLpzB6JpIGeqVRi+D9DgA/w17ORZYZisUv3aRMADyqqcovXIwP03j6Tk02sLcRHhGiaKzIVFKJqnsAMNLQSididHrkmPOfMjXiLFlKf X-Forefront-PRVS: 06530126A4 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyMDFNQjA2ODE7MjM6YlpVako1ckV2VU1zOHROKy8rdUloUFRa?= =?utf-8?B?RjhSQkROdTRKSFZhbWcyNWt0TGs4NmJMdFVCazc5eGVhTWtFdm42UXlKRmVy?= =?utf-8?B?YVp5ckZuSlNqaWtxS2VIN1cvVzBsRitXMHhzWGNjYlY4YXpqS2llQ2NybVlF?= =?utf-8?B?enFpRlNvT012aGNrMlRqK3NKMDVyVkx0Z0o1WjBoQ0o5Uk52bDZhZHdqNU9p?= =?utf-8?B?cHlRRnpKSXFSb2RBMzV3K3oxREx1UXcvVUVYZklvRVcranRtUDVYK1FoYmhn?= =?utf-8?B?d2U0SUl1TFZNWXJuRUxwSWVHNi9zWHlIRHFZdlk0Rnh1UXh2cnU0d0ZVaUJS?= =?utf-8?B?OXdHQ2tRMjlDSDRGYnlZZVBXOUVGV3k1OE4zOXRsZ2JkM2t1MS8rRVNsRGY5?= =?utf-8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hGTD6dA0EbldA1axufNL1bOrjemTtmcF5fC2mL1rPSq5CjnnXVv7ehh821BiU7a+YMrCCs1Sj7b+mQZRJQSYjACCYza0Suaa0iz0M1RLyd+4EB2kvkmjkEQ4qNu8W7ZCBYL4D9VqgaimRRvC0KGYbuCOjYpscDuRzAI50WbobWz8cBsR8BUWbiQp79Zhanl0ztmBOgjQEnfQ6JZxaSbayZ4yiMzffUwCndQJbRcIwDQrBhjzzzJMibzZCZcTi+D6Py20VycXTakTIvy0bOBbZ/E/qxl6E5PS7idsC1/XJ4CK/mXfQAVyHBkaae9Lq1r6Ddh/6D/tLyGY6oIJEpwZjBENm5eNwpLs1nnAAg==;5:2eAqJl7fvnuU2K0oFGL2auFUA1+zi0IXZrFq1W5ZCj3Y/sqgpynUfNSjQQXi9WoO9pWwB9+JCgq4KRGwFVrfjhmIs2xn3AGCAL8pCxSLeohD+zRcwSdzaHXq+UXq1ay7E3qTmTfIR7OUOEXH9HTldBB1OnBwyEUsv0DIjZGma04=;24:dHxMAeOAOtHavVhEDDISqHuDKidnPBD0tMfo5wbM2F8MMZh/0+cFoYK0S0MVftUCJ08CeVOJmL/RE5N4dp/loa3Vjvq6gydm5risqy3V1jM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0681;7:YBqLosNN7RzHnjZ79O4u682z6mRn5R0pBB/nTC0hO8RF8SvpDOmNlFy+3e9MEmWe1Z4N8uiF8vwGIp5RPsy14Elk2Hm/VWxpPmSNKN4bmAa/gzSAgVNPCOpIAMNjd4+Io4TlQcUROUqzKZDXX4kws1JoYarRGCN2TqRN24LoLnl6x2njcATamxXKVPb0rMFy0Gym+ge9GjR5u6HL1/UKlODOQyxNX9P5aeiyHNmKqrmpfDBZ0zRUnrzYFhZAhPus X-MS-Office365-Filtering-Correlation-Id: 1cf382eb-e73d-4821-712c-08d5aa7bae6c X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 07:10:52.4022 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1cf382eb-e73d-4821-712c-08d5aa7bae6c 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.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB0681 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.4.2018 15:16, 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; > Can you please also align kernel-doc format above? I see that the whole function is already returning proper enum values. Thanks, Michal