Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1208716imm; Thu, 4 Oct 2018 09:46:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV63TJjkRltnDHc2XRwow9gYbovGzGDF2ifkM3hXzFoQvaZknP60RV+bGCCDO30q9ZT58nCI/ X-Received: by 2002:a63:7419:: with SMTP id p25-v6mr6482715pgc.395.1538671617637; Thu, 04 Oct 2018 09:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538671617; cv=none; d=google.com; s=arc-20160816; b=SonGrUxxIbho4OWuRug+1VujvFC6I/+sAz7PNj85fAEDAqxnYEoPeS502+z4WyNL9T QFYhE8K+GaptYz9iRAmitWGkD5NiIbnVtgSDq1NsEXfyE2q8fHT9f6WNYDgyaZ6Ay11P TWZHzyPO/PmSt69UBfXdeZU5rt+c444t7RfsiMiz41UHt/KKwXZoVC7Mj/wt/JlfKJbC nV/F1p6g8nNMrACjYu5RBO5Ebl0sP6jJBV1mO1D+TwABOcjyxBp4+ebno0kQJDINNZ6P 2IKtbK4aSlmqZpIrgR1YQhhaFBml5pvNwqJiznNGIqnHggZ27oukRTE+BBcs9o2PvTtR Nnfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=dHPaL6PtVzXI324S+eDAn+3ytzw6yJx5chkdntCE0Hk=; b=pcQiqkAwZxbxgaHvR9xwS9h/aiDdAzuj/19j2nEWfyrkPz/PVQNxCwJKBfGK2H093S x4LFL28jZpGHX24bnWdAY9NOWheN68iYMRZvwd+CUZ3T2lnLTgmJB8BbYJxoa6xSX2SX Ug/K82L8XzSm2E2UCJjeI1S2/CeS2vGWZ0Uapr7YrdfcjlNwCp+D1vqiNQy+KfwaCgYb 9eBwLGkUAr6tOU/79oTH9aBk+KFy4eQw87iIicp0OpdL/IBjuOawQPMY8hHM3Qm2vLnv HDNfzqfoJejJbioUgzFxM6fKhdUKRuL/XNSfSpdFAzOxdZUJ8azGuXlEPYd4iIHnU93i I08A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=ks1fY0fi; 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 m20-v6si5401633pgk.579.2018.10.04.09.46.42; Thu, 04 Oct 2018 09:46:57 -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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=ks1fY0fi; 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 S1727775AbeJDXkj (ORCPT + 99 others); Thu, 4 Oct 2018 19:40:39 -0400 Received: from mail-sn1nam02on0062.outbound.protection.outlook.com ([104.47.36.62]:31269 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727415AbeJDXkj (ORCPT ); Thu, 4 Oct 2018 19:40:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dHPaL6PtVzXI324S+eDAn+3ytzw6yJx5chkdntCE0Hk=; b=ks1fY0filDRoICQhLe/yr4v+GB7JMNu7K1tsK+KVFYaCz2WeJFw9/O0Ah5k96Bh4htu9ipYdqUNsdOqWIiKmLX6f9B+tMClTNviTe/c0dVMHrXfqjg44WmCoiSaPNHYDbgc5f32JAs7j3kPPspdqhkFKYKC1QHcmBA2tG/P3uDo= Received: from CY1PR07MB2554.namprd07.prod.outlook.com (10.167.16.21) by CY1PR07MB2347.namprd07.prod.outlook.com (10.166.194.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.21; Thu, 4 Oct 2018 16:46:31 +0000 Received: from CY1PR07MB2554.namprd07.prod.outlook.com ([fe80::d38:17f1:bc0c:5643]) by CY1PR07MB2554.namprd07.prod.outlook.com ([fe80::d38:17f1:bc0c:5643%4]) with mapi id 15.20.1185.026; Thu, 4 Oct 2018 16:46:31 +0000 From: "Tayar, Tomer" To: Nathan Chancellor , "Elior, Ariel" , "David S. Miller" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Nick Desaulniers , Dept-Eng Everest Linux L2 Subject: RE: [PATCH v2] qed: Avoid implicit enum conversion in qed_ooo_submit_tx_buffers Thread-Topic: [PATCH v2] qed: Avoid implicit enum conversion in qed_ooo_submit_tx_buffers Thread-Index: AQHUXAEKHUHyNNXBEE2AFGWeeEnGFKUPSzJg Date: Thu, 4 Oct 2018 16:46:31 +0000 Message-ID: References: <20181004000912.22242-1-natechancellor@gmail.com> <20181004163919.13972-1-natechancellor@gmail.com> In-Reply-To: <20181004163919.13972-1-natechancellor@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tomer.Tayar@cavium.com; x-originating-ip: [31.168.140.228] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR07MB2347;6:eGLlt4+NbE7oZoo6U/TxiHoUBeE1JzXolpQSrNNuKLnswn3JSbH+PTMzSOHTRl9lK9wYMTj8WouA3dszAy0K8Xu05ti8U1aARVS0+PXU5AM3cY2UNE86mno6fAciNKg4SLxMe/MYqCJj3IGrNuhoxgWNNnIFaLosJy/8K4hF4edoyLIuqid/YgEwGzktCvyn+v2aA6ef7ZZ23n/Xmi4AU6G8C0BE+W8qnR2MJI1VNV5byF1Z8mDxe0TDzhWfV6b1DDpNz2qLfi6mzT3B78H39FFKvk9VgEaqnrZgY01gWtLhTPHBEcVAQ1pCleo2XcsZ4WwVy7LjdJhYfbG1Gzj/a5K8aYIwnbYV/GF2rFQ+GW96aOMNV0oH8OGxWvd88iMDok66L8yQWh3m/N1XrpzkV01d9Aoww69wza89+7eZhjYGJyZPp4kJ91yyZw87GHNkAIMkS3Jp9OcIhSJWVL4O0g==;5:poYKYvnKzA80oRf4EYxin7poeSS5h6f2b9pRjGF1WLq8whUKvHjiVAAYsaYkISqsLihxfny2xwJCoX/xDoAANiJB/FGblXIXJK9k7vbx+KaXGjwIC/REL5jOf5cIean1Vj3XtBD/HqJlGlnn9xqk7PKCoKJ68NS8jWmrqfOShAY=;7:MI2Zi1i//m7FrjTsTM723hJ2KyvLaEetfxKpTctbk5LCH8eSyL/HihnQrFrd576Ysya7RmkGcehU306bTnHn715da2r04/YEtTrUoe51TbIl6CdwMhMGSRWxPMaXjSFDf7cZ3VcbtznV0ET3jX319jJ2KXNcjSCDx72XMP9WOc6vTrcowueqriSQUm4q7XOmv2aiT1kYoJKG7mW7GIV9/8ubbpzMZTkzRZcU7mhmrkUm8LUqRHzEVBWaSBzcbM9L x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: 9292ca05-da4e-41c3-1bc9-08d62a18f02c x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:CY1PR07MB2347; x-ms-traffictypediagnostic: CY1PR07MB2347: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820)(85827821059158); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823302088)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:CY1PR07MB2347;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2347; x-forefront-prvs: 0815F8251E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(39860400002)(346002)(376002)(136003)(396003)(366004)(199004)(189003)(68736007)(486006)(14454004)(6116002)(8936002)(2906002)(3846002)(33656002)(71190400001)(6506007)(26005)(229853002)(66066001)(7696005)(256004)(102836004)(5660300001)(110136005)(6246003)(71200400001)(76176011)(54906003)(14444005)(316002)(53936002)(305945005)(7736002)(55016002)(4326008)(39060400002)(107886003)(478600001)(966005)(476003)(9686003)(72206003)(446003)(86362001)(25786009)(6436002)(11346002)(99286004)(2900100001)(74316002)(106356001)(81166006)(8676002)(97736004)(186003)(6306002)(81156014)(105586002)(5250100002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2347;H:CY1PR07MB2554.namprd07.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: +QR4XecLm9t8qmM0PADrkkgFAansRLdB+qAnnNbHd+7a61osuqmqAUkSS0oI28r3G+bKbarNOYU4iOPb9cp/5QEOK5Pm15GpxV19Hs3U+PW7Dc3e5LzdjpGJmqXztKfeY6ZuOqtQ8uMou4wnKvD0zxSLBuD4lkhGnb2RDOxiee4cCcCb5oOM5maTGl90+l2KUAZsgpVduav7sV+10p3TIrWL+XBzXXm2Y3R96yokdGiCBJj+0/WAsMiSND3OsLF4GtbV1bJGR4gqcNQP42Ot9bg2BP86gTQ4rl3sgDCLUzXE8OBxapdl2Ud/r0AQ3YSwODQO+kUkzzORWsOepIirkP6ed3dmNwYogzXDmlRmvss= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9292ca05-da4e-41c3-1bc9-08d62a18f02c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2018 16:46:31.5726 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2347 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor Sent: Thursday, October 04, 2018 7:39 PM > Clang warns when one enumerated type is implicitly converted to another. >=20 > drivers/net/ethernet/qlogic/qed/qed_ll2.c:799:32: warning: implicit > conversion from enumeration type 'enum core_tx_dest' to different > enumeration type 'enum qed_ll2_tx_dest' [-Wenum-conversion] > tx_pkt.tx_dest =3D p_ll2_conn->tx_dest; > ~ ~~~~~~~~~~~~^~~~~~~ > 1 warning generated. >=20 > Fix this by using a switch statement to convert between the enumerated > values since they are not 1 to 1, which matches how the rest of the > driver handles this conversion. >=20 > Link: https://github.com/ClangBuiltLinux/linux/issues/125 > Suggested-by: Tomer Tayar > Signed-off-by: Nathan Chancellor > --- >=20 > v1 -> v2: >=20 > * Use an explicit switch statement to convert between the enumerated > types like the rest of the driver, as suggested by Tomer. Thanks Acked-by: Tomer Tayar