Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp999468pxv; Fri, 9 Jul 2021 14:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGNsMm1AEM0SOwNivONh7M66RhUK0S4i/T7a40eJIB/H9K0Y7UG96pt7kXmzWYawvkAJUb X-Received: by 2002:a02:85a5:: with SMTP id d34mr3101424jai.132.1625866678701; Fri, 09 Jul 2021 14:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625866678; cv=none; d=google.com; s=arc-20160816; b=g1H0ZKcmjmT7c3JTPs28l8HifKnCnVWppEFr+tKB8khRm+1X2lH+5TdQFKRYlaiaG2 umOdyiGs+YGgxS0zkWIiMD17CmB+8PUYSHVxPmJUdxlE/UDDDl9CQerqDnr1s5/jSN7V sg6m2uO1CFhgrLOPZkKtJOyiaXulKtVnFyBYujU9PFEdzQzC/442M8l+ilhUNPVKJ6fI vgnqg8ho9JXjrRjrgaiQiYq08Xo2CxOFvsyO/7OhGKI4zUj/m48JVuoADWtCtwm2wh96 K+8LRcXGhA9PVKZl5U5bAvlTeohh/emfcmpQOJnAa3csNUVYPGWRk93FemB4GzkU4dse q1vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KeilyD9ahaj/44sq03A2+xgWY8Z3b90Fi9ryhOZxPFU=; b=IfQxHD2h/MBx+OiOT2bOSmu9zOidtUyVy3aDYbOkmsdi3sDT+979YAGC5dpmzSgXRK L5I4DJVmYfFHDxd+/9TWbg8ohtm9KQQy1qXvW5Pt6hd96S4N0Qs01naNGvsthovQTGBY Z+Sm0/iYQmAdnQENUSsDUljZ5NK+kg5VTzp1a3buB6+uNCfXPzOtYy/Yf/p9R9qH2LFS SB5D/VzGISUU/MOkpqswr4DRDz7TCBCZznDwdUSoihum+E2fjGTHa5jnTuBL9OGkOpxT wgYq4M+vOVcsleybMEGt/VRdMv3ZQQevgx9Xz/HmOkrlKCdJ3v56XxTMOWO+G+i3Pqd8 QgFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JQPh9cmQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si7984696ild.65.2021.07.09.14.37.43; Fri, 09 Jul 2021 14:37:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JQPh9cmQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbhGIVj6 (ORCPT + 99 others); Fri, 9 Jul 2021 17:39:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhGIVj6 (ORCPT ); Fri, 9 Jul 2021 17:39:58 -0400 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3359FC0613DD for ; Fri, 9 Jul 2021 14:37:14 -0700 (PDT) Received: by mail-qv1-xf33.google.com with SMTP id i4so4771920qvq.10 for ; Fri, 09 Jul 2021 14:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KeilyD9ahaj/44sq03A2+xgWY8Z3b90Fi9ryhOZxPFU=; b=JQPh9cmQKdNIfHt+KKTETwk436zmgqj4jJMcmqZ8De0QsgicOU2RuauXHCdeF7jCmT hNThVxkXssH6KEkMYzJ7NaFTEYwcs83m0yKmtacXwkHurs71olQNsFt8rkXoHyRCXkwK dl/f2eqnEog1an+QDFoYu8JATSLT5wLymywuc= 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=KeilyD9ahaj/44sq03A2+xgWY8Z3b90Fi9ryhOZxPFU=; b=sDK3jRzLHKQr3Q9+O/Bfh12ALlX6sf1R88PdtW9bevWIICVl1MxApyOwYoK6O3GDiS q/C6mjHRBgeDcQnoK7+z9Pgt3r7hnzLXsQkpdv5wJFg0n7IA10OIJ6jaZYhdB04wue7S LYPxtmT9JBmxgz61rGNjmD/TMkO2UpRb0CCJ8+Bm0Owh7860cjFON+5wngFWjGcn4ojV vYEebsWkLyUtJuoJd/Ol3gdDPowp1Pt00pJ5HIoMgBK2+c5VbE0qoZQWCPxZbFnQWEv9 Ou7Lu5kmZTvWngNv+bID8yBAerrwmkbVjDFlMOGum1+j613mL9uutceU7HIODG2MFYQD QUOg== X-Gm-Message-State: AOAM533+VVq1VwzemMWpwGGI3MGZIZT6zxh4mD8f2CTiH37cDQ367ZML pVKw339cojhMbELsDM08AAEoOTAE9awf+w== X-Received: by 2002:a05:6214:509b:: with SMTP id kk27mr38513978qvb.56.1625866633011; Fri, 09 Jul 2021 14:37:13 -0700 (PDT) Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com. [209.85.219.173]) by smtp.gmail.com with ESMTPSA id p187sm3124876qkd.101.2021.07.09.14.37.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jul 2021 14:37:11 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id p22so16664728yba.7 for ; Fri, 09 Jul 2021 14:37:11 -0700 (PDT) X-Received: by 2002:a25:8082:: with SMTP id n2mr48821389ybk.79.1625866631195; Fri, 09 Jul 2021 14:37:11 -0700 (PDT) MIME-Version: 1.0 References: <20210709104320.101568-1-sumit.garg@linaro.org> <20210709104320.101568-2-sumit.garg@linaro.org> In-Reply-To: <20210709104320.101568-2-sumit.garg@linaro.org> From: Doug Anderson Date: Fri, 9 Jul 2021 14:36:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/4] kdb: Rename struct defcmd_set to struct kdb_macro_t To: Sumit Garg Cc: kgdb-bugreport@lists.sourceforge.net, Daniel Thompson , Jason Wessel , Steven Rostedt , Ingo Molnar , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jul 9, 2021 at 3:43 AM Sumit Garg wrote: > > as that sounds more appropriate given its purpose. nit: Personally I prefer this to be a whole sentence that isn't just a continuation of the patch subject. > Signed-off-by: Sumit Garg > --- > kernel/debug/kdb/kdb_main.c | 38 ++++++++++++++++++------------------- > 1 file changed, 19 insertions(+), 19 deletions(-) > > diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c > index d8ee5647b732..d4897fbc9d2e 100644 > --- a/kernel/debug/kdb/kdb_main.c > +++ b/kernel/debug/kdb/kdb_main.c > @@ -654,7 +654,7 @@ static void kdb_cmderror(int diag) > * Returns: > * zero for success, a kdb diagnostic if error > */ > -struct defcmd_set { > +struct kdb_macro_t { Why the "_t" at the end? To me that implies that this is a typedef, so you'd declare a variable of this as: kdb_macro_t my_macro; ...instead of: struct kdb_macro_t my_macro; Not that I'm suggesting adding a typedef for this structure. It seems kernel convention is not to do typedefs for structures unless there's a strong reason to. Rather, I'm just suggesting removing the "_t" from the end. > @@ -671,7 +671,7 @@ static int kdb_exec_defcmd(int argc, const char **argv); > > static int kdb_defcmd2(const char *cmdstr, const char *argv0) > { > - struct defcmd_set *s = defcmd_set + defcmd_set_count - 1; > + struct kdb_macro_t *s = kdb_macro + kdb_macro_count - 1; I guess the variable "s" was short for "set". Should it change to "m" ? Here and in other places below. > @@ -727,13 +727,13 @@ static int kdb_defcmd(int argc, const char **argv) > kdb_printf("Command only available during kdb_init()\n"); > return KDB_NOTIMP; > } > - defcmd_set = kmalloc_array(defcmd_set_count + 1, sizeof(*defcmd_set), > + kdb_macro = kmalloc_array(kdb_macro_count + 1, sizeof(*kdb_macro), > GFP_KDB); nit: the indentation is now off for the GFP_KDB since you changed the length of the previous line. Sorry for not noticing those things in the previous version. I guess having this part of the change split out really did make it easier to review! ;-) Those are all pretty much just nits, so if they're fixed feel free to add my Reviewed-by tag.