Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp508475yba; Thu, 18 Apr 2019 05:13:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKDFOlrXoaZVvjOAhrlXPsB/esuZL/rZuclhrXxe1pAn0HpglykdYVwyDv3XHomiTG0gQV X-Received: by 2002:a65:420b:: with SMTP id c11mr88726858pgq.24.1555589610904; Thu, 18 Apr 2019 05:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555589610; cv=none; d=google.com; s=arc-20160816; b=tC+Dk/PHp6Wq9wF9RexjX06dndPJlycKpaNd4Xcsk3cVqQx7Pl9oVlbJVF4UjkiZr/ mqChn3teoq+cfzfhAEHG/0ExcWUJ/8H4pnGBgSJAO275yNpP62sMGRxZQSR0x6T8NDIg XfaVp2NdEFZlFmaCDmvU8g8YQOJf1WBudxsX63WkteAfC2KuLbhalFyQne/IyRmhhMGo lJhIAXNwfTEUekFY9Qm6wgJmVaVWfAXL3w/PyYhZiUl9bCPge3kUt/LH2Czk9GcW0OJw w+NJOTWng4hKeBto2CcgKx8qK6eWxr8NLBZJbwtlGdNV1gVlujR2VGVwxSjOLPQC8Oow Xicw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iSgCAvUEGOmkA7yqq7QK6OCH2CFcFcPt+JEh4ZctSK0=; b=tuk/8bxo81+VaR3rRQQwqvzTAR3qHJM0uJlIPJdh1F7ilS6bz9Cvsfll7wXR+1x7RH NwGiIwoxvNE6FqcWzocBBfPHttMa0J8EDVE+xHz4kfQ0JeQOPjgAnpAYnFtKc4TMavy3 hym4/7gG3Q/gFA/2psQkKCBzF4BnzIKzTntEPDT2A/s6SleGOBy5eSD9MnaIMt77qA6q pjXNxpN9xGtAokFap6vb/iCoiTj4el/Cm45cGPiLZvkqpsolQ6RvhFgxxhYXes45jN1x 8YJARspYnb7ht7cvsv1Yi2py7ktSByByL4wcjYWuSfJbeuxwn6bh3kE9rNhxkkHf4Ukv ya+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QYox3mHS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si1757245pgd.110.2019.04.18.05.13.14; Thu, 18 Apr 2019 05:13:30 -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=@google.com header.s=20161025 header.b=QYox3mHS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388946AbfDRML5 (ORCPT + 99 others); Thu, 18 Apr 2019 08:11:57 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:40355 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388936AbfDRML4 (ORCPT ); Thu, 18 Apr 2019 08:11:56 -0400 Received: by mail-vs1-f65.google.com with SMTP id f22so1019893vso.7 for ; Thu, 18 Apr 2019 05:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iSgCAvUEGOmkA7yqq7QK6OCH2CFcFcPt+JEh4ZctSK0=; b=QYox3mHSqW80j2A3IIiagUUBm09mZj02WRCKir6HBQx5T+b+hhAzGHQFOTwlONKbj+ JJgyR/WQHwg8Cc7ukRkbYZ/f59+ReLAwpKS1zTzZMgMWjQjpa+NvSVrh8A8T3ceV7bLY uoXOMjV66AX9yM+yes+lXGolAtYtmsYKfcrPtWTFFr/7rqv9SEvseUou0t+cwv7s/iye TvT67Ae1wW9IHuwbcM5KGneuy8s3xRcKd0xOYCDyYWSzCvqtrVSm9//cPZFi/yYSzHlT 1EQatPDgbrTsuxjhpE9ZcaOv8iSwAziw9Dkkkdizs+FhJMHfeZvWV03ILGIJlDd0RIEk lVyA== 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:content-transfer-encoding; bh=iSgCAvUEGOmkA7yqq7QK6OCH2CFcFcPt+JEh4ZctSK0=; b=n8+t2iL92OusGTlzWnzotwJreMmzgXPHB/7bs44uxn/3hLLYKpBnf7PuN7GY0dGgqw qIVPq4/cvIWQNW1DOklswKimNWDjlKow6xqE4h/HmQC9khFGjgWkodri5SPeCsmw+OPC y6bRnPorIwJQPPmOalUsj9rTmvbGGwIK+OeTqEKI1y5O2utXuPQyrKi9I6bd7qKxMAIc iCgEt156vNumQ2iILFqljhHFN+/JLtxuBfk5f0+kkzrjuRI31dwnTUMrwQ0i5AQTNMVQ ik+L0mmq8AASmRTIGQrw+kWwyxJJbYSI9d8U/oRSV9QISEOvbGJCAEpU87kxOKb5aWEH n1yg== X-Gm-Message-State: APjAAAV3UwxJW3teurMnTUBafuEU/klYirGyX/TrWTPKgM304WgBnOWL ilR529cWzlAvrDiITgMWmgQ1j48lLbIEpaIog/wIJg== X-Received: by 2002:a67:e30a:: with SMTP id j10mr51098919vsf.103.1555589515631; Thu, 18 Apr 2019 05:11:55 -0700 (PDT) MIME-Version: 1.0 References: <20190418084119.056416939@linutronix.de> <20190418084254.361284697@linutronix.de> In-Reply-To: From: Alexander Potapenko Date: Thu, 18 Apr 2019 14:11:44 +0200 Message-ID: Subject: Re: [patch V2 14/29] dm bufio: Simplify stack trace retrieval To: Thomas Gleixner 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 1:54 PM Thomas Gleixner wrote: > > On Thu, 18 Apr 2019, Alexander Potapenko wrote: > > On Thu, Apr 18, 2019 at 11:06 AM Thomas Gleixner w= rote: > > > - save_stack_trace(&b->stack_trace); > > > + b->stack_len =3D 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? Ok, sorry. I might not be familiar enough with the kernel style guide. > Thanks, > > tglx --=20 Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Stra=C3=9Fe, 33 80636 M=C3=BCnchen Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg