Received: by 10.192.165.148 with SMTP id m20csp390016imm; Wed, 25 Apr 2018 00:51:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TYC6QZLqWygcBPsXkmGOEVbVPSc/o1ry4HFz7+cJZJEqzcRqsfKPRwx4cNrYGKB9542Hr X-Received: by 2002:a17:902:3001:: with SMTP id u1-v6mr28178637plb.164.1524642701399; Wed, 25 Apr 2018 00:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524642701; cv=none; d=google.com; s=arc-20160816; b=oocGwCWFmTT+voWEDe2gv+a7U2AvRXfj6xuQTRFVqxweNjKHgnsr6KrS5PSaF/l0X2 hDUlGjcsDF8QypKib3aAqBGZiNlUhlIV4rC0oT+3GqVGKfPLL166uRUA9TxbBN1aGRzq gl+elrnK/gsw0wkKGwfi4XWwVM39XNLC9OQX6cu3z0nhjx3DL8JOSjuRjclGwPO0Jlrt 6fVeySmCOLcKcatBaclrkFfWmGhQQTyENNoy/F0MWKiZV2VCe4VbRv9j07Jh2b4yToIo VlQpYufas8O8YlooT2kPTxtCW5O9YoW7VN46y12ZiUI7azQJIWW1w+pEERo1iv61CHR3 XJyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=/DUjRcy10cRp8NCCwxWH57eSF6i29dqbUzCEjNrMEMQ=; b=GB+PShrym5Fd9rvw5rsCJ143t+FrNLzUhsuYUwbj3OscmIl9cbEMoyy0EZ2UJjyf69 l9x6og53/8HCHqJCYJnXjZlD5YVhizMgczHlWcw/h+SycTfJF9IQcW66b39d/b7fx59N sTWwkff1WFIozHuQs0p+XhBDv0d2RrF8SWmikJGYOTafbDuisSpiL5iOk0CXSRoWTKNp 7beadWoAQ5b7Bswng58jD/OBryK63Y4B44eyvgYZkZayULi2CCRJRDCO3m98J0IBGGRP /HpjEiZ94Zk2B7cdEY649OprWMS8CJE2/0VMZT98X7OyRYLfqfte1A7S8zet80aT9476 GBYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quantenna.com header.s=selector2 header.b=zbNn+jR9; 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 202si159260pfx.61.2018.04.25.00.51.26; Wed, 25 Apr 2018 00:51:41 -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=@quantenna.com header.s=selector2 header.b=zbNn+jR9; 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 S1751413AbeDYHuN (ORCPT + 99 others); Wed, 25 Apr 2018 03:50:13 -0400 Received: from mail-by2nam03on0040.outbound.protection.outlook.com ([104.47.42.40]:27232 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750882AbeDYHuJ (ORCPT ); Wed, 25 Apr 2018 03:50:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/DUjRcy10cRp8NCCwxWH57eSF6i29dqbUzCEjNrMEMQ=; b=zbNn+jR9HxhR2Rfwt+5MZ3j9OlVajXI8vU607XVk4N8gr12iqIdf9NrHcvWwpbe4QZa6jTPlBkeo+DPFndj8llCFoUZ9nQuuzyQN5dPghfxmBkCMvGufCiSgct+MLth9X53KZ2my43vPBnPUSyeLEyh6PBjQ1eYntAtECH+GoEk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars (195.182.157.78) by BY2PR05MB1927.namprd05.prod.outlook.com (2a01:111:e400:58f7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.11; Wed, 25 Apr 2018 07:50:04 +0000 Date: Wed, 25 Apr 2018 10:49:54 +0300 From: Sergey Matyukevich To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , Kees Cook , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] qtnfmac: fix qtnf_netdev_hard_start_xmit()'s return type Message-ID: <20180425074953.hnfwnfsjuwtbjp3o@bars> Mail-Followup-To: Luc Van Oostenryck , linux-kernel@vger.kernel.org, Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , Kees Cook , linux-wireless@vger.kernel.org, netdev@vger.kernel.org References: <20180424131810.4963-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424131810.4963-1-luc.vanoostenryck@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: PR2P264CA0024.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::36) To BY2PR05MB1927.namprd05.prod.outlook.com (2a01:111:e400:58f7::13) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BY2PR05MB1927; X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;3:yCKAw7BWjUAmyFRD8ftBt/G2t+4/dyx9cDCoLY/QUgg4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6Vki14UhLCo3AcaTcjh3WqMAJ53p9sOJ0v8sq7euC/65IeZaOWrP2oHLBAdOcBtkoK3kMA45SMZDSQWBOMS+zexRXV9zs72fYKyhPgLfO9ILXfpMGi52Fo3l0x+HZajYycCsZDH+C4x35H9yOeayNDtJSb+7XtiMc/9aoq46QQms3Ao7UqXvJy2c6C7iJKqKGystXJQtijKY1VLBDQysl7f1RXbz2s//RtRP5VgSBWcmG2rKIzNiVyB92OxrhRCkrH5Y3/QSYzqDFBbutNxzm8rj63PKmMxByc6Ti5j;4:WDPdk5WLpiG3y0nMxQWLUCHz4jMeXzA3hBfxkIj9fqywpm/EO47kbl/SemdH+HysD7ek0IcaO/cOugriRHhVg8q9QdR6Djnq4zJa+iYR6R2NGJzLabhB6PU8xFFB0RtPVguOOmVeUZE7SCYBSBOoOII8+tPhgLPHTw9d3DbtoHH/IK8eAFCBObpL+mzXBXwSxWUPDH7vR5bTP/X9fjYCD3zR/6wgifpnUtCZbjYYEutQ+5t19YMcVubxLv17IyAc3Mjm31yUaJla/uqOVwjeRWUdxZeNK4vz5+AXVfoXGdU6Yw1PUgJ9ACokDgrHFVNw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231232)(944501410)(52105095)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:BY2PR05MB1927;BCL:0;PCL:0;RULEID:;SRVR:BY2PR05MB1927; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(396003)(366004)(376002)(39840400004)(39380400002)(189003)(199004)(51914003)(33896004)(6246003)(76176011)(7736002)(8936002)(305945005)(105586002)(6496006)(6666003)(6916009)(5660300001)(52116002)(16526019)(186003)(26005)(59450400001)(50466002)(386003)(97736004)(66066001)(47776003)(106356001)(33716001)(446003)(478600001)(23726003)(486006)(476003)(11346002)(68736007)(25786009)(45080400002)(1076002)(58126008)(86362001)(4326008)(956004)(2906002)(6116002)(3846002)(9686003)(229853002)(55016002)(8676002)(316002)(81166006)(39060400002)(81156014)(16586007)(53936002)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR05MB1927;H:bars;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR05MB1927;23:ALmXzhexEK3s0AHig5TkoUdQCtgv3xCR6HCtAhVZX?= =?us-ascii?Q?gXDklf81R5W+aYTP8S7uvUVPjC48zs2A7RqSpUxY49lZGwtBh1fqbCHAqe5D?= =?us-ascii?Q?ElSWiuw55IonYORxwWfw897r8+A8RKjXEmLGERWK9mU9ZtC5qcW+AauROEFA?= =?us-ascii?Q?+par98yuOFRFR5Z6NobAKU4OcEMTpE3t7J4Szg/nF4eLGHWKG6tsMD6DwrtN?= =?us-ascii?Q?DPY+9ticN+FxtYZ1PlIw1eHoyfqRS2QbPm/3WuG3wofoK5AXyxaGHO0rlres?= =?us-ascii?Q?HpgSLAJuQ9bF1C2kT6saQRIT2v6p2nxMqBJimA5RYINcHdF3gKsyH55ER6B+?= =?us-ascii?Q?YwDDfVfHB/3Wy97cxN8bWxzPou7qe1mYD3GKSV2UCrYWuveqpuVQYrU9lqp1?= =?us-ascii?Q?VMh8O6XGT1YjEuIzkYBHDNmLW7vKML0B8AnphzYNXqP/5o2BFVHXOaKmWn/2?= =?us-ascii?Q?8eYQHME5RsSQB62JHN7dpGtvQyRkN9SXOGnY6pY/MQRkHIG8NFjr4utjfTXK?= =?us-ascii?Q?LHmyNmsfvIhRucEqNIJumywOTSD/8F4J34A9Ty7imQX0ck3BZCBwCY2AAa/C?= =?us-ascii?Q?8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33QpUuYtyEXnozAUhL9LndDnewv+k8kYtOr+I1umhXij2tBc7LCbFAHYZX+26Y10BUPC5E+OxUg9bfniUw9Tx0fr7V8peYklYOl6FSWMjbL+SzK X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;6:FxFgQYSlcOa4rAjpadlOr5VDn6F4Vr2vMXY2VWgmfQdpeTduZaAM+8/44g76EMKNfWHnoQy2q0iYrQoyE8I0dj8AMLZOR4peQtFoLM6h0mAe1bQ6elQmYniiifY53DZhm0Yi4XrqP/dc2UV87+mVlGaETuwjyKW7iYUi1CjyE42VaBjfmgIFqtHfgJnWk8//6xZbuLjtMKXPmC3iqhgFkeMIzyh6fBV8z0+bCtdlI3k6luBx4eiH51jt5rkV2WTHMfexIV0NPtuwRDhRln3BFsHq65kcTWNUqwnIdy97yI+xv+AzoLXPzaK5u2U0tF3p2OvPJ517g+XYvSNfR0/s7zTkrEEmGKHtYDXsz2MMPio3petG18xhUzXg0kAPynXxNuJbg/YRWw7+Z7wMkSBuAolOt8UhAI9wTlvtwAqHpXG/lIY93HYNakc0HCq7xJF9ygTnA5PW+8+CpGl1Lxjzpg==;5:SIW4Fijqpu7zJjTUy2l9uKNKoLotYpjeS0Rtvpy1iTkQNR7o+1mLoEujzjMiUvRO1IMyzmJ520CQEDeWH0yC5lQplyedsGvpzHvAPcVdIbZ0OLtmKZi2o2sT6HKLlYJ9EJfmvQtf8kIM1vlcYtPntbOHLiocwB6NHe3TzMdAGxQ=;24:2U6LglYzP4S4+Mge3KGal49ULAaysdKbZlPsGlSQtzvFk31qWIJ2CshrnHid5h9za4bm82vWjufL9Y+fYv/N825ZUE7XtJNc4nq/9vjxSFc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;7:5Es5tGLJI1TmN7w6JB4G5Lg0elSbIxKHKuiQWIRJrSgWYOSCEOg03DpZfB5BrxvnPLPQOEBRbC0qoE0idLDqUpRdanQS/aBUrDYxfuFRIYCkJmkcNcHjF+i9sJKlPzQ8y/T0u/uuadhS45Jtcpf6wMh6JOqnvNlPDP7DllUvvrr4kM4FcrqLlKScCcvGO4jJDiUn61tHFDiFbrrj8l5r5mxX3APcrIPka1qkO7DRz/yVs0GtNUCe+0M+kyTV1bdC X-MS-Office365-Filtering-Correlation-Id: 80ad49e5-152b-4866-5142-08d5aa8129b1 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 07:50:04.4781 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80ad49e5-152b-4866-5142-08d5aa8129b1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR05MB1927 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luc and all, > 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/wireless/quantenna/qtnfmac/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/quantenna/qtnfmac/core.c b/drivers/net/wireless/quantenna/qtnfmac/core.c > index cf26c15a8..b3bfb4faa 100644 > --- a/drivers/net/wireless/quantenna/qtnfmac/core.c > +++ b/drivers/net/wireless/quantenna/qtnfmac/core.c > @@ -76,7 +76,7 @@ static int qtnf_netdev_close(struct net_device *ndev) > > /* Netdev handler for data transmission. > */ > -static int > +static netdev_tx_t > qtnf_netdev_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) > { > struct qtnf_vif *vif; Previous ACK from Igor slipped through the cracks due to outlook/exchange issues. So here is another one. Reviewed-by: Sergey Matyukevich Thanks for the fix ! Regards, Sergey