Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp991945img; Mon, 18 Mar 2019 20:29:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9KBLUH3/Dk9+txLtpt8zB2TYUtcRQGt+O0F27lUKkURNU4OrOX8knZgsJWreRt7BcvF9k X-Received: by 2002:a17:902:6b81:: with SMTP id p1mr23623082plk.106.1552966148634; Mon, 18 Mar 2019 20:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552966148; cv=none; d=google.com; s=arc-20160816; b=NLYOJW2ftlFtiPDlbp+0NWok2L7VDUt0uRwqTgJhSjZjNzvgkVhTRR/ilPc9lORl9/ osmY8xY8dfR82Mar1ak4T9kMDtcAtvoZDBOiDZhPG3xjsCHgRalopLKQdn2awt6QjP/T i/OVwM1M4eocaBTx/epfY90YnNDAwshYj5A0xUDzgiXRe0P7t3ThY4AjxMMivzWf3s5o 695NWdEPL+aFkpjQbtC5t0Z/G6d0IUvyzBrb3r679yhRUn7LPjZzFKDn3kg81EzrPr/v SpKSR0amf1kqcYCEZ2Xf8Mjul273FSWvjez8zdyWNv0bIL9LSggC/z8rc1QGM1J+eszJ Jwpw== 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=4uGz0+YUaGv2kdErV9VGt6dk/XyAvxE/PNRxwmvJSl4=; b=T2/JbPylIrGSOE2b0xG6bn6OSqBJ8ywpbF3e2dYVzeSybvhtFJd1Kc1LnsyyC9eqwx Dtp6CVNhvlSrlG6rHJzxK1OU1lZidJScoyQ4oN0zZZR5cEc7AAQgiokHMp51L9lNctu8 rXfxYeSCu5crGuSvFu6TRYuRDNrEATPi/A91NOYRXol+K2XF3BcKl6CArVDaih16fbJR p5csXr+gRfw4EH4zaEVz0laduCLPqoMbeQz4Q3Q+B4Y8AbKT65V9SReBbWoSjVYaDgAH Fjee8xIewJ44uXdfaDEdrw62w3D4zOxDEPQz9hvyOo38F9V8mRsK0YfYIZ6aI7OuSLTB oWLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GunllQ7E; 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 g11si10660008plo.125.2019.03.18.20.28.52; Mon, 18 Mar 2019 20:29:08 -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=GunllQ7E; 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 S1727146AbfCSD2O (ORCPT + 99 others); Mon, 18 Mar 2019 23:28:14 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:44079 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSD2N (ORCPT ); Mon, 18 Mar 2019 23:28:13 -0400 Received: by mail-qt1-f194.google.com with SMTP id w5so12284007qtb.11 for ; Mon, 18 Mar 2019 20:28:13 -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=4uGz0+YUaGv2kdErV9VGt6dk/XyAvxE/PNRxwmvJSl4=; b=GunllQ7E2KCYzEeGnCp8Y/6LedFEmhCEWYIfEYfz1HF31CH9UeiTHfciY1lOGNXyFS Xqf/50wYYoJuNog55efQn8myb7vzTTWQIjI5MvbOnsKV/DYO6pmuWktf6Sdj4iKY4BxS LqnysBFPPC60Sx0EiNTD3rXyD6wIF7g3hgE3kK+5Mu2swKX7LQbYdNacFLOIcTQUugTE GesrVJ1rnQPeO8PkSN1V3pF/Ocvu2s+lD1HkwhfGA8oPTsmnzbwUqZOewxDOukjGJIT7 T0sarnhL2JkErAsLi1uydh9Wvjlf2ksgWdQKwNi9kgX2169LywPiHGx9lrLWa0bN9aqd IpTg== 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=4uGz0+YUaGv2kdErV9VGt6dk/XyAvxE/PNRxwmvJSl4=; b=eA+iLxfAyZt3H6C4+bC6z9WN5a3/tzRgF4R2C9I0ODIkfD3LW9rLsdd9NulqApbYXF 1VHvHGeGJi1/CUEjtRfF9+pK699hVJH67H6RPfeKQNEVLQ7AX5C9XA458hPCzGRAixOi TfmUYLuj2WV/VjxgB4izQwHDcNaTpd6Oe6JlY7uAvtss9al5XQ280ADcx5vwDvpsQ6zA NjYF8tBz/pieWHJjJVd5Y6LIJDoE4zAR678QrQ925EgrmLTuDvfhKGDaZ99zRadg1oWk 7MC17oskbHpBtyxZPVN41N8shS0YNRvDTPv0BZ1v+I1hB+EVFVRta5eH+rqpeIRjXYXr Wr9A== X-Gm-Message-State: APjAAAXiNuNmTzKx0OAmgHvZ0U/C5quvO/kLSAPxwkaESKXMgNT6b1rd RrgIiFl76fR1KU2imey2g7huBshmyqaQw79YQXg= X-Received: by 2002:ac8:27a6:: with SMTP id w35mr194257qtw.157.1552966093088; Mon, 18 Mar 2019 20:28:13 -0700 (PDT) MIME-Version: 1.0 References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-2-duyuyang@gmail.com> <494746a793619dd9b43fb152de811a6e7de77cce.camel@perches.com> In-Reply-To: <494746a793619dd9b43fb152de811a6e7de77cce.camel@perches.com> From: Yuyang Du Date: Tue, 19 Mar 2019 11:28:01 +0800 Message-ID: Subject: Re: [PATCH v2 01/19] locking/lockdep: Change all print_*() return type to void To: Joe Perches Cc: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org, bvanassche@acm.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 Mon, 18 Mar 2019 at 17:45, Joe Perches wrote: > > On Mon, 2019-03-18 at 16:57 +0800, Yuyang Du wrote: > > Since none of the print_*() function's return value is necessary, change > > their return type to void. No functional change. > > > > In cases where an invariable return value is used, this change slightly > > improves readability, i.e.: > [] > > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > [] > > @@ -1430,23 +1430,20 @@ static inline int __bfs_backwards(struct lock_list *src_entry, > [] > > -static void > > -print_circular_lock_scenario(struct held_lock *src, > > - struct held_lock *tgt, > > - struct lock_list *prt) > > +static void print_circular_lock_scenario(struct held_lock *src, > > + struct held_lock *tgt, > > + struct lock_list *prt) > > trivia: > > This style change seems superfluous as many > other existing functions use the previous style. Those "many other" are kind of bizarre already in the context of that file IMHO. So the change went to great lengths in #05 :)