Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2836376pxv; Mon, 12 Jul 2021 03:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPyBDBBSAHhwqtoKlPyhv/4AU+jZbs/jeZjo/tHFPcGs9MLBpA4H3gh5gxkaSgiw94RgXd X-Received: by 2002:a05:6e02:1d12:: with SMTP id i18mr37883422ila.97.1626084536469; Mon, 12 Jul 2021 03:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626084536; cv=none; d=google.com; s=arc-20160816; b=WpHQmkJju2JNgC6IxLznbLYexqEMsgATYVp04xNypuM7YGoRhT0/MwHHTgzHBGgv74 pZ7r+KEeONJXygPQKqGEMn5WiPjmehynq9KcNlxlYFuZTbgB8CSrkZgE4SGFqJW5qq7P t0xLCvB0dlNtm02fRDvPtlEwFsR7+WoVtNnN7Y1wLLN3sovn1asocLQo4UNyITNYx0YW TcwELgwFH5fBYVGbHv1tK9g9wTYLPCD5h69AH9tkb36qGwjLOw4fMvxH/PT1Jt+BTahh 8L2V9MeAdR7iMWvFTxw0yaJvqNVQxjOs2/wP6cw1ofLrDdHkar3pHOm/gSRtix2XM1ad kReQ== 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=UK1Y5g539CKatjuPdctwi+Y6V9Y3jMH6RRf3GAMgDhk=; b=UI9TwPtpW1h9csGv6ejLxNiFzw43PyQ/zYnt32DHyb9STxPnDWgztqOVAn7Uc+oH91 7MEXZYYQ5oOBf798NNB6n2NnxDImR03f4+shXGc/tSdvducnIpSaC7UGuXcShSw1K/lt cCHMEbETAEpQWkrAon6JFrcPizs6NRaPof3rlUgAq4VHM62VsqE67uHZP4z2IjBNMh2c FxfuCDmU3CNel8+1JkqEnMPxJw1vl/r6YlaPz6zRa/B3tjwasztV9filk/FhIq8ZzPZh azChlFyvi3Nze4KejmhGA2RT6kSiT/azth+m3Lfd2cYgWcDtkDqSlZaxX7OLdtnI3z77 9c9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XPq1yB4Q; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si5774459ilc.27.2021.07.12.03.08.45; Mon, 12 Jul 2021 03:08:56 -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=@linaro.org header.s=google header.b=XPq1yB4Q; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347930AbhGLHyC (ORCPT + 99 others); Mon, 12 Jul 2021 03:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344519AbhGLHUh (ORCPT ); Mon, 12 Jul 2021 03:20:37 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41493C07888D for ; Mon, 12 Jul 2021 00:15:01 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id i5so11551929lfe.2 for ; Mon, 12 Jul 2021 00:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UK1Y5g539CKatjuPdctwi+Y6V9Y3jMH6RRf3GAMgDhk=; b=XPq1yB4Q9KnbAlVdrXDOF1w4DOhSizTO991lcc5YQQslOq2iGDkb+ZgeHD0js2E0Nf rM7KGWhmHX8R5ARw7t+SvhYRN+6U+n+CdNk5gXJ0MnztVNp2+MH9gTYEZrY8s05cv+Uw hSalsRRU6VerZxVXHYzsbQjIEikaCcg1lgTrjbDJKuB0KqQjFnm/3N4iBvIM5iSdM3VA Wz8ZFi9GGiUPvstRbGcvbql7fEGVgpCrgZgj/vByfSt2V1Bz3IsEEsaT8KypEn5S5wge +W2Kt8pbA+G0m27mQ9GQGI+GO0FbbN9JLew/XbXyiMWbJ4NNzzRdGHmtw9GA4FcCAun6 zzug== 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=UK1Y5g539CKatjuPdctwi+Y6V9Y3jMH6RRf3GAMgDhk=; b=Ftcofyn83ts79ca6vtF+U/ZezKyxCZvORfG7la8/4HeloOzM8UiARbSwA3QpNS+L9O mKmg7FbDpLjnDS8s8wzCm+BvdYNQ8VKPTO6UQ7BCgBDu9/DjzzwQ0sMF6WYFNkSP0QyH MJQlfiAGmkmvCb+aZ5TE5UeFsurczk0TRh/U3Rwd/zb9hKertyhPxEp26HKfSs2tXDC9 fvwkfRE3a/3N41kSR53ieEkWdofqetBOzMqHliDAwO3S3AQLsA/c9BBClgeBge/GbfHn shmVl7co0DBx+e8Vqk26ZW04uO7Z6HIx6tCyqSV+C0dqeXRHrCgkUTkOaoUCX5pi2M1B LVsg== X-Gm-Message-State: AOAM533iAK9qqTYmaptmjpRZEv9QbUaJKQ8ntnJ7i2WeZ/Ow0IBf2/5W Row6RtmlgEFriwMJBB4uKuGx3QYgNsFM2c1w+lgWTA== X-Received: by 2002:a05:6512:2115:: with SMTP id q21mr9439856lfr.546.1626074099524; Mon, 12 Jul 2021 00:14:59 -0700 (PDT) MIME-Version: 1.0 References: <20210709104320.101568-1-sumit.garg@linaro.org> <20210709104320.101568-3-sumit.garg@linaro.org> In-Reply-To: From: Sumit Garg Date: Mon, 12 Jul 2021 12:44:48 +0530 Message-ID: Subject: Re: [PATCH v4 2/4] kdb: Get rid of redundant kdb_register_flags() To: Doug Anderson 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 On Sat, 10 Jul 2021 at 03:07, Doug Anderson wrote: > > Hi, > > On Fri, Jul 9, 2021 at 3:43 AM Sumit Garg wrote: > > > > Commit e4f291b3f7bb ("kdb: Simplify kdb commands registration") > > allowed registration of pre-allocated kdb commands with pointer to > > struct kdbtab_t. Lets switch other users as well to register pre- > > allocated kdb commands via: > > - Changing prototype for kdb_register() to pass a pointer to struct > > kdbtab_t instead. > > - Embed kdbtab_t structure in kdb_macro_t rather than individual params. > > > > With these changes kdb_register_flags() becomes redundant and hence > > removed. Also, since we have switched all users to register > > pre-allocated commands, "is_dynamic" flag in struct kdbtab_t becomes > > redundant and hence removed as well. > > > > Signed-off-by: Sumit Garg > > Acked-by: Steven Rostedt (VMware) > > Looking at v3 responses [1], seems like you forgot to add again: > > Suggested-by: Daniel Thompson > Ah, it was mistakenly dropped, I will add it again. > This also looks good to me now. > > Reviewed-by: Douglas Anderson Thanks, -Sumit