Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp561343pxp; Wed, 9 Mar 2022 08:12:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCo8+UzFQXktt4jWvQNkk2dXzssejEY9kt5Er4sUsl62puv+ywTawJ9/XdIdFtF83GAVl5 X-Received: by 2002:a17:906:1c57:b0:69f:2625:3f67 with SMTP id l23-20020a1709061c5700b0069f26253f67mr450796ejg.632.1646842333058; Wed, 09 Mar 2022 08:12:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646842332; cv=none; d=google.com; s=arc-20160816; b=nYeMDrz+8wvL7qgE5P59LHSUKQEb+M+TC5NaXyxIFyfmWGtSyQ8tQfJTtUiSxrGNIp Vyx2u+teH4+v2gMcIUV/Z/2xoMtwOjzUQpo2nKQ1jELvFKhhpQ58o9NCCQp/FV99kZoE vpK5gsqDr2OuLckaVOmpCk1G2T/5lt4o+sxYnx1TS1HuXA2gzpcMb27HSdlX0+0ahxO7 FGK+HToEP19SAl8NQuo/TFUTiU3/ZTIfRvjr3oly+qux/HENCT5j7wAVB4R4JbHjaNYa K+lgeJ4D7f91XiAkYbRdxQkSEXdOpjnpLr8L68DCU8J9REiQxdNafI/gNg3j6drXNist tdDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9w9heVzYpPiBmqEaFqwp9yWy0Bb8VtkbdNSOrKleDC4=; b=kgWKcARVtalR+NPwSGbTQubNcKLIWA2WMMk6L5FSmY1UqC8lhGLUIX7yvNHV+0PGbQ 8fDFM0TrCA2bmaDfQq0YfbBB/SFIAgYFaPUvCSpxIFJ3j2/UR0SzGFDoC7R936pz3Pyi 3viibzOR8tD8lVdXBRhTh8XLmcMSwVbYHAo8bFIZqH4uOIIBgdwYoluD5e4kzgTosMrP uByc4LSusladnuKdGhdvrEi0nk0EMH1G9KoaQArsFrOylhx6Yc8z1HqTGcGD4IUOpW9Q znF9oWmQeZ5dReh5AaUAuEvXbD/TAQ1xOR9aKhAFidV0QqK5OAS1ItDGptVfPkswTmQ9 k1sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WU8/ctVy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dy2-20020a05640231e200b0041632885b82si1512265edb.100.2022.03.09.08.11.50; Wed, 09 Mar 2022 08:12:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WU8/ctVy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232648AbiCIMHq (ORCPT + 99 others); Wed, 9 Mar 2022 07:07:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232651AbiCIMHo (ORCPT ); Wed, 9 Mar 2022 07:07:44 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A256717226B for ; Wed, 9 Mar 2022 04:06:44 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id p184-20020a1c29c1000000b0037f76d8b484so1309004wmp.5 for ; Wed, 09 Mar 2022 04:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9w9heVzYpPiBmqEaFqwp9yWy0Bb8VtkbdNSOrKleDC4=; b=WU8/ctVytyo6JLjL0TPYGiMIW3yR/a69nfFPLigxs0DchMWqgsFFzNLOkrjQ+MN7Dz HlxA0/z9+xDNMZRxRWyHpox9nBcb9EucGH14I46eHwRkQIsWByXvu8nH8sDVReeZQJd1 g3kdz8A4RBK6+6PgeS0YFo1WZcsQlXKtXG8AgYKTy+nEA/LC2XNiPh1nSkqvQW5NOH+A PwVuFRrkajG/CbeW1WIlXb2El1B8QIUkgHm8LwbYbqyrraFkq3AlK476+xsSDQPlDkEw 8y+UVPnuFUWFHpvKD72xfxyzgQ0cefCW2BquOsC2uCcFAbDHacNFbTt6HsQP4twLZg62 9Odw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9w9heVzYpPiBmqEaFqwp9yWy0Bb8VtkbdNSOrKleDC4=; b=zibbM40A6uN3YvTyKXEQZN5G4wcr/Vv8zZhxaiNTVgr/zWqGMuUXlUJSXjZ/ViaqwV nwVPK6bRjwlr7xpXwaLrYEZKTh4wUZ5Ay3hUQWIH5VKq4JPL6PCN8LJDPXfxtIkJRWpU ngyYwsCR5/2NmC6m7FcZuk3WgkeyWoG2KE/uGZhWyYD16lsn44mMWK4Um1h2f5stKaiP HAgbTpbJ6damvMqwZ/j2iAcBnHWoiNZ0pnnRwyUDmqOzNC9WrHBKXY9WEupfUXS7IB+J KXsnDRNHX8Z92zLwQxC7GJI3xFlhVPChXMTXxWM3/3hrwA4hS3N95vKNOVKutbOAuBC/ V7XA== X-Gm-Message-State: AOAM5328OzuSYtd4qGt+9rBJhzGn3gwgc1KLsW2P3tPScAnYIgQ8caTF 7T8FO1EGqcc8KgtVqc0VVOdEeg== X-Received: by 2002:a05:600c:54a:b0:389:90f7:1b15 with SMTP id k10-20020a05600c054a00b0038990f71b15mr3086747wmc.156.1646827602961; Wed, 09 Mar 2022 04:06:42 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id m3-20020a5d6a03000000b001f06621641fsm1457519wru.96.2022.03.09.04.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 04:06:42 -0800 (PST) Date: Wed, 9 Mar 2022 12:06:40 +0000 From: Daniel Thompson To: Aaron Tomlin Cc: mcgrof@kernel.org, christophe.leroy@csgroup.eu, hch@infradead.org, cl@linux.com, mbenes@suse.cz, akpm@linux-foundation.org, jeyu@kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, void@manifault.com, atomlin@atomlin.com, allen.lkml@gmail.com, joe@perches.com, msuchanek@suse.de, oleksandr@natalenko.name, jason.wessel@windriver.com, pmladek@suse.com Subject: Re: [PATCH] kdb: Remove redundant module related references Message-ID: <20220309120640.uumh46n2l37jaddf@maple.lan> References: <20220307174741.2889588-1-atomlin@redhat.com> <20220308105203.2981099-1-atomlin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220308105203.2981099-1-atomlin@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 08, 2022 at 10:52:03AM +0000, Aaron Tomlin wrote: > Hi Luis, Christoph, Daniel, > > Is this patch ok or would you rather another iteration of the series? > Either way is fine for me. Thanks. Another iteration makes more sense to me. The removal of kdb_modules is semantically part of your module clean up patch set and should certainly be included in it. The removal of the spurious #include's in other kdb files is a good change but it is fully independent of the module rework. AFAICT those fixes are good with or without your changes. This suggests these changes can be separate from the main patch set. Daniel. > > > No functional change. > > There is no need to include linux/module.h. > This patch addresses the above. Furthermore, we remove the list of known > loaded modules i.e. stored in 'kdb_modules', since it is now redundant. > > Fixes: 260681b3763f ("module: Move kdb module related code out of main kdb code") > Signed-off-by: Aaron Tomlin > --- > kernel/debug/kdb/kdb_io.c | 1 - > kernel/debug/kdb/kdb_keyboard.c | 1 - > kernel/debug/kdb/kdb_private.h | 4 ---- > kernel/debug/kdb/kdb_support.c | 1 - > 4 files changed, 7 deletions(-) > > diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c > index 6735ac36b718..67d3c48a1522 100644 > --- a/kernel/debug/kdb/kdb_io.c > +++ b/kernel/debug/kdb/kdb_io.c > @@ -9,7 +9,6 @@ > * Copyright (c) 2009 Wind River Systems, Inc. All Rights Reserved. > */ > > -#include > #include > #include > #include > diff --git a/kernel/debug/kdb/kdb_keyboard.c b/kernel/debug/kdb/kdb_keyboard.c > index f877a0a0d7cf..f87c750d3eb3 100644 > --- a/kernel/debug/kdb/kdb_keyboard.c > +++ b/kernel/debug/kdb/kdb_keyboard.c > @@ -11,7 +11,6 @@ > #include > #include > #include > -#include > #include > > /* Keyboard Controller Registers on normal PCs. */ > diff --git a/kernel/debug/kdb/kdb_private.h b/kernel/debug/kdb/kdb_private.h > index 0d2f9feea0a4..1f8c519a5f81 100644 > --- a/kernel/debug/kdb/kdb_private.h > +++ b/kernel/debug/kdb/kdb_private.h > @@ -226,10 +226,6 @@ extern void kdb_kbd_cleanup_state(void); > #define kdb_kbd_cleanup_state() > #endif /* ! CONFIG_KDB_KEYBOARD */ > > -#ifdef CONFIG_MODULES > -extern struct list_head *kdb_modules; > -#endif /* CONFIG_MODULES */ > - > extern char kdb_prompt_str[]; > > #define KDB_WORD_SIZE ((int)sizeof(unsigned long)) > diff --git a/kernel/debug/kdb/kdb_support.c b/kernel/debug/kdb/kdb_support.c > index df2bface866e..08229ffb6b5e 100644 > --- a/kernel/debug/kdb/kdb_support.c > +++ b/kernel/debug/kdb/kdb_support.c > @@ -17,7 +17,6 @@ > #include > #include > #include > -#include > #include > #include > #include > -- > 2.34.1 >