Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp598170yba; Thu, 18 Apr 2019 06:36:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqysVtFwF7ONisNm0NPnNQgWnbrUaAlWyYXfejO82zZDqv86KhYW+q0LTSBEBPJpR0fdofu+ X-Received: by 2002:a17:902:2ec5:: with SMTP id r63mr42061913plb.139.1555594563925; Thu, 18 Apr 2019 06:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594563; cv=none; d=google.com; s=arc-20160816; b=rVXMGI8nYop69eW+P3BMXYre0Np2yvYkoae+OCoHepPAEuMvZoGs4jZ6xN2BDcykqu OzmxAvHAs7zh7tFLze64scdbosGYmhmFHjjZO/NtwpufyW4bvLUVbNXOaOCPew0HyL5T NpMxPjT2Zys8wZkENSR0UNScPwE2JqvwLNa/trYt9rNrI6ohIz3/SksUIBIZLg54rreu BN/vD9JzEnY7nModJmv032hYWUDTTlsTmouN+cyXsxJDJepZFDOABprnh8D8C6ucXQNY McE4tsU/+Y/kO72liuvNUzsfKCB+rlM3/6Cs+wcBt7qmi45vKy73W726T54Gv0QYmeua vXeQ== 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:message-id:subject:cc:to:from:date; bh=iRg0UlGOBeCVU2joKmRIJiqs+1V+/iQXunVn4f9p/yY=; b=GFhS/v36WuMimr50mNlO0HhGUQbARN6pQV5P9QUhUx9JH6YMwJlwBHuoXf2in3OAMp lNL+SiKzPk85w2uQZADgFB0+omLqCIHSlixzbImiWhHrTri638pekHVlmLYss23mz4qv rWG+fNttWmHOgtsNl46V/oJDNse+WmBfFKOyMhEe+hs0byGIw8d0Mhfk1T5o0CbY8dJn WfLjz1EmPq39MpP1GZAhe+e9GkjW21FsCMXwnc+wOJ7G2XzboM0yNzK+v4US+KLnoGjc 4XDeuVpEjfYwptMgpdLcclDp3o+wD2XsmCwgTxWFDuWDc6ajDMBZ4YW9YSn8P1TDsWC2 vKhA== 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 l12si1781156pgs.184.2019.04.18.06.35.47; Thu, 18 Apr 2019 06:36:03 -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 S2389058AbfDRNeC (ORCPT + 99 others); Thu, 18 Apr 2019 09:34:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:37160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRNeB (ORCPT ); Thu, 18 Apr 2019 09:34:01 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00B2D20652; Thu, 18 Apr 2019 13:33:57 +0000 (UTC) Date: Thu, 18 Apr 2019 09:33:56 -0400 From: Steven Rostedt To: Alexander Potapenko Cc: Thomas Gleixner , LKML , Josh Poimboeuf , x86@kernel.org, Andy Lutomirski , 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 Message-ID: <20190418093356.5d4b7732@gandalf.local.home> In-Reply-To: References: <20190418084119.056416939@linutronix.de> <20190418084254.361284697@linutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Apr 2019 14:11:44 +0200 Alexander Potapenko wrote: > 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 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? > Ok, sorry. I might not be familiar enough with the kernel style guide. It is a legitimate complaint but not for this series. I only complain about hard coded constants when they are added. That "2" was not added by this series. This patch set is a clean up of the stack tracing code, not a clean up of removing hard coded constants, or commenting them. The hard coded "2" was there without a comment before this patch series and Thomas is correct to leave it as is for these changes. This patch series should not modify what was already there which is out of scope for the purpose of these changes. A separate clean up patch to the maintainer of the subsystem (dm bufio in this case) is fine. But it's not Thomas's responsibility. -- Steve