Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp554065ybi; Fri, 7 Jun 2019 12:33:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGdlkH0I22TN2ma0w89HlURPeb3aaxrd3pmJ9NwuOlvp3h7UJdFNJ21dOFtb2T6fnMQ0Mk X-Received: by 2002:a17:90a:9f93:: with SMTP id o19mr7745455pjp.70.1559936019218; Fri, 07 Jun 2019 12:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559936019; cv=none; d=google.com; s=arc-20160816; b=LZr2F6NNqya8wEBfKUDqXkkpIfxL5SI4fl54kwKv7oxgQFZ4uyyPboiyM3GR+smUr7 VJL570YFa1LHTYm6OTrTvdHSfswzm4QOdJKtnfFAXQsNm9iYfd3x/9cw70Ao8Gi79SdN X3jw3DQE8fpZpmJioXCzjWLXr4/r4mBv7QSS8fWfwgaWF5kwYbri1bBB65zySbgmUtqR VggtpJ9vw6gf+saKot1BPjpwKYYaRiV5pUDjIJEy/KMZoKkR3fcjoRHcA9q2SehCxbiK lEd12qhMmgsRzER+4TO8ry5J8/7SyPM/TNrMaNsfvT5zG1UxrMHSAq6GhUYFLG3gfKef dJKA== 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=5MddV+Sg45RFyPQPwq6EPVm3wo3sSDcpYJ17hnXLFXU=; b=WQAN/ReGlnzvhH32taOyXP9GPBKunuSj+UDDKWDjRYY0R7Ee/mKkMoh8QU/71RT/Zl NSoBDp+IqXK+v0OkgEp9qMH4luYFxgvYFWvPwpTLdjMwhFYEiqBkq3w1yoi3FuY9jsJ6 LCo+Fezvai4nI6HPpCeAXgzApxPjNUM20E3fqD+qloN/X1oy/MuHk6eLNry2C9gFMtQP 3049N/HKu047XNV8QFEqNNesFF8gGkDxxeYPT4xb3vansFfsZYMFYYEj3csAhvnmGUah tC/2/NA3c4p3ysDSVpnYyzAofl/jqrePgqVC3qtQXJF6P5HjqZqxyr7VwPppTMecj6+h dSSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=dosAQ2Nn; 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 e90si3009808plb.309.2019.06.07.12.33.22; Fri, 07 Jun 2019 12:33:39 -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=dosAQ2Nn; 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 S1731108AbfFGR5c (ORCPT + 99 others); Fri, 7 Jun 2019 13:57:32 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38820 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731052AbfFGR5b (ORCPT ); Fri, 7 Jun 2019 13:57:31 -0400 Received: by mail-qt1-f195.google.com with SMTP id n11so1176303qtl.5 for ; Fri, 07 Jun 2019 10:57:31 -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=5MddV+Sg45RFyPQPwq6EPVm3wo3sSDcpYJ17hnXLFXU=; b=dosAQ2Nn0ydTmNOgvwFg2l+msfvRcAS1U5jrslXA9t4l6S08L+U1MG5oxZ2FqUa23+ Kaf6kSeuQh7xc3qFnNyZtsUz67X5rbCIVZcfaDn0VDdpzvFwgWSbwkV0B+jNAstC1my2 0LUJy5bvOU9ehS6dRjgtWFiq1MybK4xEgdwWtgVwqr6KWf1ahvQ5ZutRw0cbsfzb2hBo usV1pW8EeyEk2wC6IQ5s1qvYEXhP+KHVkIBVGyxgo3hkOeeJKMRLxDs9b1NkatMC2bCT DUwG96H4WkaqFfH5e86F0PwtPrMNb41hU3OtZ/7qYqgzvjXPrxKk/EZKuEJkIqhG6I0r JyMw== 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=5MddV+Sg45RFyPQPwq6EPVm3wo3sSDcpYJ17hnXLFXU=; b=pcQ5qUi21z4lUSB0b6YF1JSuFNTWxDL/RgXcmtQIUgE/vsTNzwGjOT1QxN6AUPfWiL DGeWtPK6Yu718su8BWfmtmdI/ANZFOg1j39CshPVeeG1XMQl6RgfcYytrPt+LMKUzaEZ rTZq0u1ZKeNDWkeUrLncIe88JtqZW5/z4fFfxdTEiGhBdIQWrNH5yEFY+XWSt0+XH91f PjzNh+ciSCMzDQyKUBk82YxlrViNBpllJS5UBaoV3zoWhbThwkrl5WhKJmRUOiqeomDf LPEaDRQA272LUbgOb3P+dCCf8K2RAfh4h/9PkIFmbciG+nPU3YXbIzYiYDCyzcBwwzGN e7sg== X-Gm-Message-State: APjAAAXlhFP2JBsSGSBMFgMAn12Fr7QG+t3FyFAUo/6NTgF+urrvknTd iBIPQj2knBRKyMUM1NyHTxRMIQ== X-Received: by 2002:ac8:43d8:: with SMTP id w24mr47116757qtn.25.1559930250734; Fri, 07 Jun 2019 10:57:30 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id v72sm702497qkb.0.2019.06.07.10.57.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 10:57:30 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hZJ7J-0006WW-Pg; Fri, 07 Jun 2019 14:57:29 -0300 Date: Fri, 7 Jun 2019 14:57:29 -0300 From: Jason Gunthorpe To: Colin King Cc: Lijun Ou , Wei Hu , Doug Ledford , linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2][next] RDMA/hns: fix inverted logic of readl read and shift Message-ID: <20190607175729.GA25014@ziepe.ca> References: <20190531092101.28772-1-colin.king@canonical.com> <20190531092101.28772-2-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190531092101.28772-2-colin.king@canonical.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 Fri, May 31, 2019 at 10:21:01AM +0100, Colin King wrote: > From: Colin Ian King > > A previous change incorrectly changed the inverted logic and logically > negated the readl rather than the shifted readl result. Fix this by > adding in missing parentheses around the expression that needs to be > logically negated. > > Addresses-Coverity: ("Logically dead code") > Fixes: 669cefb654cb ("RDMA/hns: Remove jiffies operation in disable interrupt context") > Signed-off-by: Colin Ian King > --- > drivers/infiniband/hw/hns/hns_roce_hem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-next, thanks Jason