Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3499854pxp; Tue, 8 Mar 2022 16:02:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsDIcuQsGHd1swqMPDs9yFLFukVQdtQkS7/E0zxMMg+MPd/BL/FAMotd+x287UF/o5jCkq X-Received: by 2002:a17:902:8e88:b0:14f:b460:ec02 with SMTP id bg8-20020a1709028e8800b0014fb460ec02mr20507973plb.35.1646784154959; Tue, 08 Mar 2022 16:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646784154; cv=none; d=google.com; s=arc-20160816; b=E4082XVZWwgEZ7uZAwmXvSzKnOUB2kpLPDm5u0JFBotPJI4T5DT3t0muIN1Nq99ZSy GEbIKm7NERqk7kiEBuLhQOA+PhZ+Idf+KJCyMp8AD7FFvDw7FFeEY6YLmTroQjSceM+r dg/5ShVG1/xf7QLyXpWSVPJXJ96JH1JcmWuHoNITAlLB6Svo9swF55MtTerVI7HypbUq bJFoJC/ERZ0s05P05W5EDOxRJj+fnDKTjmNcRu5yWBOBEkgsd8VzNPoTL01DbRhdmbhY Ylylbfo6oOlqahapSAzVXwTWUDXdkcDv+lefRAB7h4nCfij3PPvXAqlCS1KERYrFAv5o Vagg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R1HEPCyruPf1eLWtXxVEMzx/0uUk6Tce0FMKc7iO5fU=; b=h3uM3zigu6ht/6cNgoHL96BZ1LaWefCk8fo9T/t00U280gnqfqddwoeSTnYRQ1xJP2 c1njl6C2qtAhByiE7W020xXWD8chz3Lf1ORq28vV7AP/cjaYSoNVoXQogihFlcy5nxSo jjEF+M5Irw15uQbb8LpLvXB1XPsLvh2VzGYdyyj7+Ww8Z4qYSB0iTKrOSWy8Pnocld2X yYVDc2e1Vzjhwmkg8dkDAuSOTMWJQ4rrqlt3EGBnbciJ/1HgXUQplTHGa/I6NqnYLxPm asUAxv6TJNKPpKGvn7rTBFN92RFCYLiyhK5wp4kg5oFfzBM46m2t48DPigW0d7lj2Vur ADpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UqTiWj8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k13-20020a056a00134d00b004f7550f7f55si306120pfu.225.2022.03.08.16.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UqTiWj8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA102DD458; Tue, 8 Mar 2022 15:36:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346003AbiCHKxL (ORCPT + 99 others); Tue, 8 Mar 2022 05:53:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346071AbiCHKxE (ORCPT ); Tue, 8 Mar 2022 05:53:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 493004349F for ; Tue, 8 Mar 2022 02:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646736727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R1HEPCyruPf1eLWtXxVEMzx/0uUk6Tce0FMKc7iO5fU=; b=UqTiWj8hmQpGez59utLYRo9OlMTiYfcROvJPa7EXGgcKgSdjH2sqNQ1WruGICA3UeQAzw8 n4ME6kKHSM4AQIbPWfNPxlN1mHNQ3pFS2I0EMz4A/LkTLAF23uARukRuTaFp87EktTozsZ N1aD7TmvFFbW03D+6ryeX+WEbDX5iQY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-308-v3JRpUyZM7aMHfOjXmAGjQ-1; Tue, 08 Mar 2022 05:52:06 -0500 X-MC-Unique: v3JRpUyZM7aMHfOjXmAGjQ-1 Received: by mail-wm1-f70.google.com with SMTP id l13-20020a7bcf0d000000b0038982c6bf8fso936061wmg.7 for ; Tue, 08 Mar 2022 02:52:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R1HEPCyruPf1eLWtXxVEMzx/0uUk6Tce0FMKc7iO5fU=; b=X8+gPaFONG8F7cxGne4i8r8rVF19MfeKR/9Y3o/NwTW18hyDe+5/kz35agamYAphg4 2sTz15yYLBLyQAJPODPFDyQxUDHH5hkph+3J7HZ8ari/xGGcIU59tgu0nbT+GFjG5xuR kGQ1wKEIH3IVhXJMQlBPog8FzcuzQm5xUw60z3ok+IKDa0Z2RijlczlNwiUD+G/BtkTU IzcDddxFMV67d1fBPpmeWx9KnXE1cK4P5PxNcVj8ladPt2zE+k4RrVyvfygc10NOA5/x RxC/tUB8MuLWpjXxnsqd4ZrVMhUymJT/gh+Sxgk2a3OYfH4/mepGhkFAaVgxRVFpKNud 6OuA== X-Gm-Message-State: AOAM532w+Az0xOyfxHGTJ462ELsydoWvnsdununSCDaLBSeBgY961/j8 1VzCSNg67paYK2ewpLxMcbucmjM+EwS9Ts4YrXPy3Nu7EddjS5Vsm584NU0G5TiIaeg5TdWwshK a2UTHQTuDFBK5f32R3qnzXCQ= X-Received: by 2002:a05:600c:4ed2:b0:381:8c80:4774 with SMTP id g18-20020a05600c4ed200b003818c804774mr2915868wmq.4.1646736725147; Tue, 08 Mar 2022 02:52:05 -0800 (PST) X-Received: by 2002:a05:600c:4ed2:b0:381:8c80:4774 with SMTP id g18-20020a05600c4ed200b003818c804774mr2915841wmq.4.1646736724921; Tue, 08 Mar 2022 02:52:04 -0800 (PST) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id n7-20020a05600c3b8700b00389a6241669sm2104230wms.33.2022.03.08.02.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 02:52:04 -0800 (PST) From: Aaron Tomlin To: mcgrof@kernel.org, christophe.leroy@csgroup.eu, daniel.thompson@linaro.org, hch@infradead.org Cc: 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: [PATCH] kdb: Remove redundant module related references Date: Tue, 8 Mar 2022 10:52:03 +0000 Message-Id: <20220308105203.2981099-1-atomlin@redhat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220307174741.2889588-1-atomlin@redhat.com> References: <20220307174741.2889588-1-atomlin@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Luis, Christoph, Daniel, Is this patch ok or would you rather another iteration of the series? Either way is fine for me. Thanks. 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