Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1528099img; Tue, 19 Mar 2019 09:30:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZW2bI0zBRUw3jkK2c1INWieWSmJEy+3WP54R0JSnd+Vg57G21r+3ETXpAjf8YSmMYvllQ X-Received: by 2002:a63:5460:: with SMTP id e32mr2648963pgm.401.1553013023528; Tue, 19 Mar 2019 09:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553013023; cv=none; d=google.com; s=arc-20160816; b=LMTk8nJqEgcX6iEDNFiyuvXTir6p7I7c6MpiUpKzPx8/VDV5Z5G1lsCDUjOMsLH4/e 63lTtZJIk2Oje2PbaRmATa8w/3LuR4Z2R0S7yB4hpmiV0uf1+ISn/vXSoKaLxqEyKz+n kvZLbOL1gJupmMBmHDMdn7EB0wR2ZecTMps1qkMuHiWmao+uSYgPMlNNPcIIfx9EqJtT irNjEviWV/GazG+KlRYjnkytp4NIC2Fc4K8UCty7dzHci8CIm0CnDz7wuY/0PMQyQ9o8 AKNp/pU5ElIqIbHjetBYV6G1vhGYKnDeebk5rqBERL2Lj7Tzkwk/hu+nJCgqwJg7OuLb gkmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=LPies90VT1NVL24926JTgMhRAjh15ELsRkRi/Gfyqzo=; b=jRmf5aXqSLAqjLQjgIztwcCGjKZBfZ08AYGJ1UmQpOtSwH8Dlu9mDlrL5Axm+e8qXz zA2+ixrQ7g85XrGx26IUwiGcgwBSzCG4WeAp14ySqlr08r2DKR/E3/IsAtADYuJ1eTxW VSxJ68jzGOLYsbmI6NBRDrW60MNDGpUmz3jNEY7/bvPB8gzjA2ZFBRrWHYD9/Tap2kO/ /4Ft0NQ3/BXmi/s1iUJ5ahs+jUWlU/uiJTYo3PqPWp5MN62EbmaMSk5PEexNU51zToQ5 fX4dUWjCdl9n5Cau+ETTmOB3JuD8SWZvPrlgmRSM47vEm3k/WB+ckn3UqzAxQ5gJrG5H J93A== ARC-Authentication-Results: i=1; mx.google.com; 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 17si11803173pgu.262.2019.03.19.09.30.07; Tue, 19 Mar 2019 09:30:23 -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; 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 S1727213AbfCSQ3a (ORCPT + 99 others); Tue, 19 Mar 2019 12:29:30 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39554 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbfCSQ3a (ORCPT ); Tue, 19 Mar 2019 12:29:30 -0400 Received: by mail-pf1-f193.google.com with SMTP id i17so4299735pfo.6 for ; Tue, 19 Mar 2019 09:29:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=LPies90VT1NVL24926JTgMhRAjh15ELsRkRi/Gfyqzo=; b=uKn7vEOAFufQIImu2aNLXUqzKprAgfKQtV/HepFlGw0AvuCVC+f9oAqNGAlYPEiET5 cjZiuTz93iOE2tctnAYp/Shrmqq9fmG1Eh33KlR7eiAH2FNkZc2xmALPZI9vfs4/XB8E PCiZxzQJwNY+K2Oe1+h4Nxg/IiTtmC/UQhx1l8S4itVnvUWmH6n73kVFWIEFZWlVJqEI 3HSte9iSaz04kD4+1as7Io4Ff74yOJyE411xKGbWDppDcI9L+R/qub4LCU1tVODLkFmu rbFWuvD23nd9NX1EqIlOh881XvcZ6Q3SBCAFhhrJl4ReT4cWAwVrWgzFXqYkrdt/CytH /Bgg== X-Gm-Message-State: APjAAAXuVYXJWMMBIo8Kmzc7eXvbONgCqzi3D4pulg6BqJhahyzcb0+9 +5RvhAfnA2wboAQnt18y0fQ= X-Received: by 2002:a63:5817:: with SMTP id m23mr24045521pgb.166.1553012969385; Tue, 19 Mar 2019 09:29:29 -0700 (PDT) Received: from ?IPv6:2620:15c:2cd:203:5cdc:422c:7b28:ebb5? ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id j4sm20850588pfn.132.2019.03.19.09.29.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 09:29:28 -0700 (PDT) Message-ID: <1553012967.152266.48.camel@acm.org> Subject: Re: [PATCH v2 19/19] locking/lockdep: Change if to else-if when checking bfs errors From: Bart Van Assche To: Yuyang Du , peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: ming.lei@redhat.com, linux-kernel@vger.kernel.org Date: Tue, 19 Mar 2019 09:29:27 -0700 In-Reply-To: <20190318085733.3143-20-duyuyang@gmail.com> References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-20-duyuyang@gmail.com> Content-Type: text/plain; charset="UTF-7" X-Mailer: Evolution 3.26.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-03-18 at 16:57 +-0800, Yuyang Du wrote: +AD4 - if (ret +ADw 0) +AHs +AD4 +- if (unlikely(ret +ADw 0)) +AHs +AD4 print+AF8-bfs+AF8-bug(ret)+ADs +AD4 return 0+ADs +AD4 +AH0 +AD4 - if (ret +AD0APQ 1) +AD4 +- else if (ret +AD0APQ 1) +AD4 return ret+ADs Have you verified this patch series with checkpatch? Checkpatch should have reported that you are changing code that conforms to the coding style into code that does not conform to the kernel coding style. Checkpatch should have reported the following: +ACI-else is not generally useful after a break or return+ACI Thanks, Bart.