Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4234120imm; Tue, 25 Sep 2018 13:47:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV621H5YAE5GN2nugAUJJx43azxRg04Z4Nv2zpm1uHK9uR41Rb129SLzDMre3yo2rTxBlTxUx X-Received: by 2002:a63:80c6:: with SMTP id j189-v6mr2665610pgd.40.1537908440743; Tue, 25 Sep 2018 13:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537908440; cv=none; d=google.com; s=arc-20160816; b=ZE3Ymrh/VAPEjIyOopYkGNnOavVT9S5i2+o+QjXKNe0KGSQKnZiP1Ckgzd8W60Ex4e 27gsWGjENW2aG5NB454BB/mKcY/o1+9oC4cqfeQxpT3BV6b3+D5ilKvW1F4oekOlgisM 63nC/QmZccf6vnFYEXBxA3DWJHPoDhBWYMsyxjmfW5cfoHKwLjQQPzNOXqav4T4Zrd66 DsCmMv+lbvC6gDcXTciiHUOcy8/YHvA7OKMXQbWM1q1x+SuJY9uZerXnOwvwa7CxncKX +/y+NRrXlZHHOt0/D16zO/U/yBEDnCcXiFq3aKhaUxUn7OhgVrjIcXMZ77hNgsNjApFF jc6A== 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=fVcoobDrh4j8s4N20wDROGgmsRaRFegmQx2BcHth9Sc=; b=UUdiM+ssnodbuIpSmBQq4m5Ov1EPwzyNGoYIhYf9NUHYmL6zz00EMvtUHNY/jaRUQd 3i8GgSP0FYxOGoqKYWeu/MAEj/YTbq+tpI5lZQuyI37TRnHOeNsB5gbQYkIlJb5jRm0C OdvllXvCJT5rSGjeYBlYw/actU2Tm6JjSqqlpHH0SEPX0hCS05AqA1mQKqE0M23ueALD gJkqB3eHXLT82rCUMPI2oFZolxVb5w0N4PVjSWVblrNujIEAO0ZAZO1aJhlqZKStA1Nq Jb+JmnfWdhvJHjIKLxzLqK04UtcETFj+UNX1WfGGAs0D1gThXN7sAiNnBokgY0yx+yyz KFGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ok9w7NUc; 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 m10-v6si3028661pfe.133.2018.09.25.13.47.03; Tue, 25 Sep 2018 13:47:20 -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=Ok9w7NUc; 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 S1726385AbeIZC4L (ORCPT + 99 others); Tue, 25 Sep 2018 22:56:11 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43403 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbeIZC4L (ORCPT ); Tue, 25 Sep 2018 22:56:11 -0400 Received: by mail-pg1-f193.google.com with SMTP id q19-v6so11548438pgn.10 for ; Tue, 25 Sep 2018 13:46:49 -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=fVcoobDrh4j8s4N20wDROGgmsRaRFegmQx2BcHth9Sc=; b=Ok9w7NUcFD26d7xuJ3Im0NK7jNmAgXK2RrvE9GYami49kHg9D1ineXQ1P6YCCo8rji +AE7V8aGzXTAreu7nOWB4dK7sbcXKSDhSbpxCrLf69eiWoGqXQSvnSvg7b01p0sTSS15 UggcqMNYnTrlbHB1hpLxCUPJuJhImvDangsnYm/XmMyzcFtSbzy5QuUAsEyZVgk6Xjcc 8RLZWwitwDZMmYgnBSLCCqwi5vD1gxRe7wlkLGF4z32HgD7XefjqR4QIiD9/Zux2ZKWv s5AVyz0UNsMfWzCbtsnCkAEaPeWIEGqzpvPJdSDoSLbyUuy73sXeXanqOTgu88u3Lehq qmbA== 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=fVcoobDrh4j8s4N20wDROGgmsRaRFegmQx2BcHth9Sc=; b=lTC7CQXHA2s9Y6f8JMfAbK62ydKfyVIIt7nWWkWegEpf/5C1Nwx5MfhW6XwSJ+SCwH dpNyFYrt2+wi7U7LTp1M8pRZvxYtuHr0QX+sGJERs9dsEkldlDY8DYi70dY9BO34d+Ht t+YyZejKRGBugPl1kItnQ6KrvHxH407O0oYhFzuKXLqxW1+R5MNMJiJlaOC4Ap8V/Zfj ThhPuQaVHiaiqsd7UAvmbHHKGhprAkOOXr8ny87TjBX8MdR+rFcmPDQ0JkW/H0RzKsmM 1KC9YHJ5qRLv7I0LKeTV9BgIUAPlA7RfiVSOh0WO38aQUY49G8e0efksuQHaHflEl4KC kPAQ== X-Gm-Message-State: ABuFfojWieOXEo8C95WgIapo2rS9Le94CfRP/Lke+ovHZvj6m4aYdOMv opgwBougF79V2Jgsl6rtqmkrsA== X-Received: by 2002:a63:a54f:: with SMTP id r15-v6mr2583492pgu.336.1537908408726; Tue, 25 Sep 2018 13:46:48 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id w13-v6sm3571761pgs.89.2018.09.25.13.46.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 13:46:48 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1g4uEJ-0006KF-JN; Tue, 25 Sep 2018 14:46:47 -0600 Date: Tue, 25 Sep 2018 14:46:47 -0600 From: Jason Gunthorpe To: Nathan Chancellor Cc: Steve Wise , Doug Ledford , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH] iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs Message-ID: <20180925204647.GB24279@ziepe.ca> References: <20180924192903.16796-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180924192903.16796-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 Mon, Sep 24, 2018 at 12:29:03PM -0700, Nathan Chancellor wrote: > Clang warns when one enumerated type is implicitly converted to another. > > drivers/infiniband/hw/cxgb4/qp.c:287:8: warning: implicit conversion > from enumeration type 'enum t4_bar2_qtype' to different enumeration type > 'enum cxgb4_bar2_qtype' [-Wenum-conversion] > T4_BAR2_QTYPE_EGRESS, > ^~~~~~~~~~~~~~~~~~~~ > > c4iw_bar2_addrs expects a value from enum cxgb4_bar2_qtype so use the > corresponding values from that type so Clang is satisfied without > changing the meaning of the code. > > T4_BAR2_QTYPE_EGRESS = CXGB4_BAR2_QTYPE_EGRESS = 0 > T4_BAR2_QTYPE_INGRESS = CXGB4_BAR2_QTYPE_INGRESS = 1 > > Reported-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > Acked-by: Steve Wise > --- > drivers/infiniband/hw/cxgb4/cq.c | 2 +- > drivers/infiniband/hw/cxgb4/qp.c | 7 ++++--- > 2 files changed, 5 insertions(+), 4 deletions(-) Applied to for-next Thanks, Jason