Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3637119ybi; Tue, 18 Jun 2019 04:13:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7AIauXaH15ULgh2oMWs8RB2ez4JHTWVHZOXwyMg+khZbo4C3jafXkHPWU/dN7VVM59dvF X-Received: by 2002:a63:c10d:: with SMTP id w13mr2147868pgf.28.1560856391332; Tue, 18 Jun 2019 04:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560856391; cv=none; d=google.com; s=arc-20160816; b=Qt0XotSg8ilIodxumisH/hoPg4ET7iiRZh17ytCvRVoeLMjay1T/G2xKG6VmvOKJ4P M7sCZoTUurdKrlEdMLaV8pIIAcRQdQoTxTepnt6j+vONOinW1rtUFhaHceE1LTRY2dSm 8zSqzx0N3Z2Tcx+2jVCMRVD5xdWuGrlQ9V2Fd+q10Y07BD0w25jEAQAlCjEhn+Av9Qhn yc9WMgrbYHrmfmYocab9BmV9n/bCBLbjA8OgJn3I3kQppMyocLI6GHeo16+kKXbISAGP 2Hs5y5Toiu+gb/6o/ArVgadggV7U+eOfcjH3AQ/jzM2EzcImSox+dlKNO9HHMqUXuih4 AAgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s94Smz4ILSPLKQb0dWr5lKSmygWRGKrTRCyNYAXgFgA=; b=C/5cQRbH2WO7Po601fbYkN7vuUNyrhlm646cc43iH5xpCqlY5mCUVZlD6uPQsDUcJn 2/tDK+T5UEHfEFcaGwQxwB2qwO6Z435TdkT5m8d44Zy6lflqN0vsg/UpH4uB+dAPbRYe TfaJSmNuZmGnCA+DBHfjPibOxLRq4cxAkTeX4FqA7yilLMN7t1K4wsgJ+J9kIKiiEZ7N 46uTgqA+to2F4S5o2dNhtx0jYzFUTBgLTdVeyt4K9BOb+KqwPAaWVJbp0e0vI3X4ZKrC fGvgpcaiI0WEv5i5oPbz7Qc0pQqbfN09LGtqVQ5+WioTY7fbZ3Egm0g7LVWXEOlK7cBT PdvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WP5N1PnZ; 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 q8si12327248pll.205.2019.06.18.04.12.55; Tue, 18 Jun 2019 04:13:11 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WP5N1PnZ; 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 S1729589AbfFRLMq (ORCPT + 99 others); Tue, 18 Jun 2019 07:12:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39992 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729110AbfFRLMq (ORCPT ); Tue, 18 Jun 2019 07:12:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s94Smz4ILSPLKQb0dWr5lKSmygWRGKrTRCyNYAXgFgA=; b=WP5N1PnZMdsD8QTP4RDxLIBSO 6ACG2cLMqmZ8i93ufBzWcjluZajAZlGVDZSkq4t+q7EvXygp1fM/3z5zhRlE+To5UyTS6X9hplNEL GwtNHUrRVQv2+493ukY/kd0uftJSk3KZ06GZFC/MoF/W0DGeY9pprxyKgewyGEI0CUvzin07NnocB Ml6Qi8diPEkjfDzbH7rislKEmYusWHokC7W2s5bH4z5joi1eSEF/u2GXRnyQY0jm+6FfgZZHOYlVw AlPSOLhAaLTXBYUkY3hYHEr/2H2pct/Y5dCjg/q8PXr5f4bhogfoEWMsnyfnIsGdWY750mrL6YkfJ U15PK0PHA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hdC2D-0004gX-8P; Tue, 18 Jun 2019 11:12:17 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6584C20A3C471; Tue, 18 Jun 2019 13:12:15 +0200 (CEST) Date: Tue, 18 Jun 2019 13:12:15 +0200 From: Peter Zijlstra To: John Ogness Cc: linux-kernel@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky Subject: Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation Message-ID: <20190618111215.GO3436@hirez.programming.kicks-ass.net> References: <20190607162349.18199-1-john.ogness@linutronix.de> <20190607162349.18199-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607162349.18199-2-john.ogness@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2019 at 06:29:48PM +0206, John Ogness wrote: > +/** > + * struct prb_descr - A descriptor representing an entry in the ringbuffer. > + * @seq: The sequence number of the entry. > + * @id: The descriptor id. > + * The location of the descriptor within the descriptor array can be > + * determined from this value. > + * @data: The logical position of the data for this entry. > + * The location of the beginning of the data within the data array > + * can be determined from this value. > + * @data_next: The logical position of the data next to this entry. > + * This is used to determine the length of the data as well as > + * identify where the next data begins. > + * @next: The id of the next (newer) descriptor in the linked list. > + * A value of EOL means it is the last descriptor in the list. > + * For the entire patch; can you please vertically align those descriptions? This is unreadable. Also, add some whitespace, to aid with reading, something like do: * struct prb_descr - A descriptor representing an entry in the ringbuffer. * * @seq: The sequence number of the entry. * * @id: The descriptor id. * The location of the descriptor within the descriptor * array can be determined from this value. * * @data: The logical position of the data for this entry. The * location of the beginning of the data within the data * array can be determined from this value. * * @data_next: The logical position of the data next to this entry. * This is used to determine the length of the data as well as * identify where the next data begins. * * @next: The id of the next (newer) descriptor in the linked list. * A value of EOL means it is the last descriptor in the * list.