Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp102614img; Tue, 19 Mar 2019 19:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDiWk1sclNQ5KHaoX5uvWvsa4O/M3ZoT8pG2BDVYCi0l+n2vQdZu3CqNUbGq4/J/BE3TT0 X-Received: by 2002:a17:902:b181:: with SMTP id s1mr5258942plr.321.1553047473356; Tue, 19 Mar 2019 19:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553047473; cv=none; d=google.com; s=arc-20160816; b=pV554Kqoaw/zQ5bPs184yxA+3q6zp9eiaEeBs3RhRHRm6J2Zt548+6mh4KPT/O2zvy xv36r5j8PWdPVHX6Ba5RGfh88K9tDAHVWfjGjOlIm9NKs6uR4d54Hn5dGwPzRk7Z/LY4 N7It4w3Hy9EqKP+ASjBANuJvzAJOj1jy+hnA/aNXrMQOQDQnm9tvUNQVNasb6O3ZGWs/ uPrNw4XAv/Bp35Tbhdwl2ZyZkSHYl0nNM3wKhpweSIk7ePAnHs/RYjrWE3EJDbTfbJ29 CEIs1yURYA/zMBXl1m9XnmRuGaHtAJpxnOW8s+CKdwxDIwBm+lKEJu9FI471C/SA5rs9 HJBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dy+jMGYRiXfngc84bG5ClaHuiAX+PAoEVMhiyw2k2rk=; b=DYJoqwfdgIQg0ycGW+kja2Lq3drx3hV9xcORFXELZj4tFN7QL7ddstS/3FExNEzhuR 02ayL+yaa5G3JFARO3QWQacelZHLs77dqRnl305qltw0gWFg5KEaYmPwDfVBmKL0C6Xk HhzT2Mh6qyK5fU0O0B2dd8V8COal/FM+j7/8tCaNdFPgAWHK2p7nAxrebwtJhi/I8G/0 BPb+aYbEosMWyJTXxjY1Wz/EHvADV16t1th30egYDSyuU1faX9gP/LxJF+XA3bXfEzcd Hz846Wz+4clEMpA3IrSM6oD3EdaT6lh123Qszol2+xlWGzifaT81bYEZnR+zNeYrmYVF Y/GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDLpFhHM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si467188pgt.234.2019.03.19.19.04.16; Tue, 19 Mar 2019 19:04:33 -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=@gmail.com header.s=20161025 header.b=BDLpFhHM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727283AbfCTCCU (ORCPT + 99 others); Tue, 19 Mar 2019 22:02:20 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:43192 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbfCTCCU (ORCPT ); Tue, 19 Mar 2019 22:02:20 -0400 Received: by mail-qk1-f195.google.com with SMTP id c20so8431026qkc.10 for ; Tue, 19 Mar 2019 19:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dy+jMGYRiXfngc84bG5ClaHuiAX+PAoEVMhiyw2k2rk=; b=BDLpFhHM2K+aOMgLRaBP3ux0fxo+n2D8dZnWQtTBgXBXJ1MATodbKQTctylT7WBPb+ 4hhomE27WuFaMsmqBLdYns1YDzJHLpvfTSS2zhjrOnx7E/Xh8aCMooZcofiSW4G3Ahds wj5KF9JaZ9bd2uHAuh3teiZuGeB/ZwGrruaOrHt83tmgWStzkdXkKndMLyQLt9IraKs5 w+AoebdW18xYVDYe/oTvKsP2dFpQOrgLZNMKIFaYaAiY2WO8Vvy7Y8grFPZU7M9TqG2w dgGy02I0waeWgMOz1JTJNTwRJ+WSyA1XCHSu3BZ+xtHPo8HLHU1IMDUwqDh5Nix8fEap Fpnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dy+jMGYRiXfngc84bG5ClaHuiAX+PAoEVMhiyw2k2rk=; b=hVE9hgGPP1HfwRQ+sXrKr864+Kp/5nMyZyDB2GtHFs8Na7ZD872LpVxfgiR6BghxMt LSypUn6XgRoX+TDv6KwCD4DhFk+2hlZTPuYKp1GmC5d8TxMxH00nsjs03hA+th9QdBwl ZA5dcbn9PupI6CBc6CFZZ1uK1auVKCA4x9pixNiRi57PEpOYp6O+adJdx+/FbvQEpSwf yC32xB1sBeb1CaHuBsrP5hSvaSG13SlZjsttZJ8IwjnKVZjDxsYP3H6qoF2g83kt7P9I oXXjFPN5dKTi7AKcz+BycCjaE1fHo25M5tr/voyxrSGXMbzO3InDBDM2Br5PJD/0Myty lcuQ== X-Gm-Message-State: APjAAAUxLJew1d43Yzx807UHr40q8/uX1jZE4ZZveLeukVKeipKPbP5t /5wFLUcjTO/wUqtROYdfT5soii1jyCG6PBlU1UY= X-Received: by 2002:a05:620a:133b:: with SMTP id p27mr4424829qkj.173.1553047339011; Tue, 19 Mar 2019 19:02:19 -0700 (PDT) MIME-Version: 1.0 References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-20-duyuyang@gmail.com> <1553012967.152266.48.camel@acm.org> In-Reply-To: <1553012967.152266.48.camel@acm.org> From: Yuyang Du Date: Wed, 20 Mar 2019 10:02:07 +0800 Message-ID: Subject: Re: [PATCH v2 19/19] locking/lockdep: Change if to else-if when checking bfs errors To: Bart Van Assche Cc: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org, ming.lei@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the review. On Wed, 20 Mar 2019 at 00:29, Bart Van Assche wrote: > > On Mon, 2019-03-18 at 16:57 +0800, Yuyang Du wrote: > > - if (ret < 0) { > > + if (unlikely(ret < 0)) { > > print_bfs_bug(ret); > > return 0; > > } > > - if (ret == 1) > > + else if (ret == 1) > > return ret; > > 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: > > "else is not generally useful after a break or return" I didn't. And, these changes were done in a row; my not checking each of them was careless. Thanks, Yuyang