Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp490093yba; Thu, 18 Apr 2019 04:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzsWKPDjRgEAHxreIzW70r7pRvoYD9Azg6KyhM13Sm/2rzSbS7joWhtKH58VaM20nS4AoV X-Received: by 2002:a65:6294:: with SMTP id f20mr5112456pgv.415.1555588602631; Thu, 18 Apr 2019 04:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555588602; cv=none; d=google.com; s=arc-20160816; b=vuA+VUBI2FiQxlwzpkYgUyglWoyh1KmiLFKCtk1JZuqZMfc9ewVjxAwmb05GtJ0xA1 VpYCHyqeKdopghmIkEK+daBixflqVP0okvEJhadEI3G1sabd7j8FJRy8mKwSeNHsni9K kN/T3h9QLwiq5cJESdz439njHO5E9NNXxrThjg1lJtA625wBZohdUbQikYREYFQbkUce X56s1BqqWdD4ND5TaDmNcEpknE+iyGjwHml2RC63+2BpJXMx+5kiA52cfPJXbljmL3t4 HOLgiRyT5g4wltRHimsYBN/nFUWTgSgVixxBN7ATuKaK+V1B1hJ2gDyf/gTxpuD42vmd bFsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=LOgANvyzyMKmFS7vK2SQ+FqWR8dwhKrP+WoREASkiiI=; b=XKXT/xTXDlSpaB9OapeEhTPZ/k9XFcTBoi1G/4IDZxdVEOwWAxh/uLUaec135Svtn1 Kk7tFj1299wFmVEkcY1EAWTlJV8O0yyAc8plsUzabw3T4oKwRG010VeCZ29Pa6ZYZDAg ir8LBp/xjN2Zw3yXWxP7gKLAN+y9C6xBLcVdbXz8kjbDQ7r34euUD7ieYge6PPX6EdJW AGBrc+QvkYAWGUqH16F4jM4Y+EILkCIZcWjocr8RKi0uzC5qlTM3EqgxkPk7VTHlz5uj mGj1YmVu3Hff6+01PaASp2cwtPaIa5fKOOPXl4OqptQmJEgOe/LeodiwYM/uS8Mb1QSd 9AwQ== 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 5si1962486plx.407.2019.04.18.04.56.26; Thu, 18 Apr 2019 04:56:42 -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 S2388880AbfDRLzM (ORCPT + 99 others); Thu, 18 Apr 2019 07:55:12 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:35732 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388535AbfDRLzM (ORCPT ); Thu, 18 Apr 2019 07:55:12 -0400 Received: from pd9ef12d2.dip0.t-ipconnect.de ([217.239.18.210] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hH5ck-00063t-VR; Thu, 18 Apr 2019 13:54:39 +0200 Date: Thu, 18 Apr 2019 13:54:37 +0200 (CEST) From: Thomas Gleixner To: Alexander Potapenko cc: LKML , Josh Poimboeuf , x86@kernel.org, Andy Lutomirski , Steven Rostedt , dm-devel@redhat.com, Mike Snitzer , Alasdair Kergon , Alexey Dobriyan , Andrew Morton , Pekka Enberg , Linux Memory Management List , David Rientjes , Christoph Lameter , Catalin Marinas , Dmitry Vyukov , Andrey Ryabinin , kasan-dev , Mike Rapoport , Akinobu Mita , iommu@lists.linux-foundation.org, Robin Murphy , Christoph Hellwig , Marek Szyprowski , Johannes Thumshirn , David Sterba , Chris Mason , Josef Bacik , linux-btrfs@vger.kernel.org, intel-gfx@lists.freedesktop.org, Joonas Lahtinen , Maarten Lankhorst , dri-devel@lists.freedesktop.org, David Airlie , Jani Nikula , Daniel Vetter , Rodrigo Vivi , linux-arch@vger.kernel.org Subject: Re: [patch V2 14/29] dm bufio: Simplify stack trace retrieval In-Reply-To: Message-ID: References: <20190418084119.056416939@linutronix.de> <20190418084254.361284697@linutronix.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Apr 2019, Alexander Potapenko wrote: > On Thu, Apr 18, 2019 at 11:06 AM Thomas Gleixner wrote: > > - save_stack_trace(&b->stack_trace); > > + b->stack_len = stack_trace_save(b->stack_entries, MAX_STACK, 2); > As noted in one of similar patches before, can we have an inline > comment to indicate what does this "2" stand for? Come on. We have gazillion of functions which take numerical constant arguments. Should we add comments to all of them? Thanks, tglx