Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp942732imm; Fri, 28 Sep 2018 09:15:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV61niO8oQ1L8G7ElCug5EEzkhAUgvMhzhfC8ASy72A7kd6ydllgMLuEp4x8BEgyJGCsHodhu X-Received: by 2002:a62:56d9:: with SMTP id h86-v6mr17652217pfj.229.1538151303044; Fri, 28 Sep 2018 09:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538151303; cv=none; d=google.com; s=arc-20160816; b=dfwdPxMuQ2qSgxAjnxV2DEdZYcAN+hhb5EOt7hyp6COV5PJsPlWITv0McqDDdABdhq C3s6UDmS3jaMDoGM1qTMPiT4On9tvwoLCn4ljGrxODHDC7LEKDiyXUJlqRI6jtzxSLCj 6Jpbaw4Ymxph2QhQCDL/HR31f+65dNSFsfIkxbPlnhs9J7CRPXX+OpZyVyDc/gzu2Phb Dm1LlS7IvbSgg046HH7XXly806bwsdHPSlYXKYu7cVS79Q/8e+NrlXx/Coucp8RVhUng 0hQibZfDObyN0o/1AHPAXnZxgleaogCGQ7q0Qpb0DpmvT0KqwSQ+xdajyunRJd14Ky+Q DhtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yJE5Ja5b2motHavY8mzCUnPnLz2FrTaFRT2dVaQHB6I=; b=D+2Ixmitsx2njebk3Dafc1oTZcByysDnPvW1C0sUVJEAVqB+NMo4heVbaQepQeNJlu y7As03G6PzOQYjDESbsh0+2uoNmAou3k2+tS5+avgmEwN/RGnqnh6vgmbfz8zcBoveVh X+0rkBUdzfZw6UH4VcBhv6R2QlXTnc2/ElEPF+bjzojAsZTT5aTY5dAvOrQpQN+4lmCS HUqG7j9Ar1UVFrQIyLyHyKwlLPxfuFN8M+/PFg/Gpjmn+xD9AuX9MkreaajMDVyLqqwI tPEUFz0ZTLKZkV6aVeI+ph+HvbLgOObqyCexxXoP1Hsl7fkt6u37UkNBwDcV7jMZ11vO eLFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="eS/Nkquo"; 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 v8-v6si5120304pff.248.2018.09.28.09.14.47; Fri, 28 Sep 2018 09:15:03 -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=@ziepe.ca header.s=google header.b="eS/Nkquo"; 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 S1729164AbeI1WjE (ORCPT + 99 others); Fri, 28 Sep 2018 18:39:04 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33314 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727361AbeI1WjD (ORCPT ); Fri, 28 Sep 2018 18:39:03 -0400 Received: by mail-pg1-f194.google.com with SMTP id y18-v6so4833669pge.0 for ; Fri, 28 Sep 2018 09:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yJE5Ja5b2motHavY8mzCUnPnLz2FrTaFRT2dVaQHB6I=; b=eS/Nkquo4CORFfa0uS22MOPhdZDy/dg9ORAZDcfZkgWrBEkEsKVhif4rSm8TVHSRIb 7Z+UAPu6J/EcNPHb7oXPrQU7NQVDDGs4F59iC0tJ/GFS1HmqxYNxxEWCCGk5RsiVEYb3 bIyOUukPOv8gEevyIihA5aGoRtfYowcIO5M3wuv5jBFsHIdgwSeE6C8d0x+zGnJDJmzH gfUjXfpnIiQgvQg1BhJlfwDK6QkdZMyzQ3gp6DGrWZzPeKjZkyJMOvLaHE3cdn3nzbmk dOLqTlJekfUPy/avcLuail/wqOGS4XSzeWVsEIdmgxgVD9A7Mg3YMMsKmXnBq0vW/yTh jOqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yJE5Ja5b2motHavY8mzCUnPnLz2FrTaFRT2dVaQHB6I=; b=r803f7i9fe49T9i120F27c4K1mRte6mBr00X08ufIWwf6amy99faP8SKwOpiVQxrPY wB2QI2eCHubr0I1gMPcSnIpdOI/q9LacWcEtjALD2ctH+T+PTVNF93pOS29lsTVEl/CK BEBjCf0Bvjm7PIwPOAmvhnqmUXrdFRKzqQgweUU9lf/p0i0CW0c/+B2ChbA02yBg8/ND +QPt6L5WPIhv7NLxiIGvbrW8udXVtONEl7N3Cf9W/9NkM6z3muh+rBLKXQ2G1eLBQkWB HePmI0W9ZOPXGZWz6PECyRAFjYrOlhVFhWfCIAptubBgdN0nEazT0+YrdUXP3t0Yyo8E PfaQ== X-Gm-Message-State: ABuFfojV3LAFUSXvJgZRDHsKUDvmjrYIuMnTUjhKp9DJDqnq3QyxNP8z PlxoepVrKWqTrCKiHADPdgOFrg== X-Received: by 2002:a65:41c6:: with SMTP id b6-v6mr2383657pgq.421.1538151274932; Fri, 28 Sep 2018 09:14:34 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id u77-v6sm11841710pfj.40.2018.09.28.09.14.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Sep 2018 09:14:34 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1g5vPV-0006Oa-KT; Fri, 28 Sep 2018 10:14:33 -0600 Date: Fri, 28 Sep 2018 10:14:33 -0600 From: Jason Gunthorpe To: Nathan Chancellor Cc: Michal Kalderon , Ariel Elior , Doug Ledford , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH v2] RDMA/qedr: Remove enumerated type qed_roce_ll2_tx_dest Message-ID: <20180928161433.GC24524@ziepe.ca> References: <20180927011820.13608-1-natechancellor@gmail.com> <20180927205557.32026-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180927205557.32026-1-natechancellor@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 27, 2018 at 01:55:58PM -0700, Nathan Chancellor wrote: > Clang warns when one enumerated type is explicitly converted to another. > > drivers/infiniband/hw/qedr/qedr_roce_cm.c:198:28: warning: implicit > conversion from enumeration type 'enum qed_roce_ll2_tx_dest' to > different enumeration type 'enum qed_ll2_tx_dest' [-Wenum-conversion] > ll2_tx_pkt.tx_dest = pkt->tx_dest; > ~ ~~~~~^~~~~~~ > 1 warning generated. > > Turns out that QED_ROCE_LL2_TX_DEST_NW and QED_ROCE_LL2_TX_DEST_LB are > only used once in the whole tree and QED_ROCE_LL2_TX_DEST_MAX is used > nowhere. Remove them and use the equivalent values from qed_ll2_tx_dest > in their place. > > Reported-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > Reviewed-by: Nick Desaulniers > Acked-by: Michal Kalderon > --- > > v1 -> v2: > > * Rather than using an explicit cast, just convert the uses to the > appropriate values and delete the duplicated enum. Applied to for-next, thanks Jason