Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp246505pxb; Tue, 2 Feb 2021 04:16:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJ+dsgZNvmzfhrsI++7nPexpHm2gfeLFqLNO1WEEDG5ay53b7j8uFDM311ZWIEbdOUSCF6 X-Received: by 2002:a50:ec06:: with SMTP id g6mr14483575edr.12.1612268185101; Tue, 02 Feb 2021 04:16:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612268185; cv=none; d=google.com; s=arc-20160816; b=R9PpCoYFllGKHx2Tsv5h3Tpp9xuswkAHEIai5m0tbXnLXWfN32VVCZhtC6zBge6ANa 0nKzht8Ep4ypyNxFOPvhP8+bcI+a7/Ul53G6DCrchSn5//Ym/f7Gi6Z40SLm6r+XIDXr tu5fJzSZI4llmUrxscVkUhw6RIOVThUFFg7eRBPhxOTghSoqMNp7gShkb48JgJDdc79P W+xs1+oMuGO8WF05qiXzhB+lYmkI2q5AuqVaXk6LVQ8NeJ+HWXNs4KbY12+mKwJW8rwr 9cQuEDjx7th3exu9ti3ZIiMPIBjbP2szXZNX54zC08+knMF4KAEjV2a7oekebd/OnuA7 Olwg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=x0ild1pWjAVS3WJxvq5XS64FoqpcDSC4Uujd61u50FE=; b=w2thGKgcYCrBCeP5AMlo0WLl1nUVfqju4t0Z58BrhgzafY5jjMdj+fy7t+tbC4sHpk rjgDl72gsbOuQ6TLp91XXsiBilj4W9jouGv8LfN4kpKHaYiaTenUMef8gCtJmPQDurdU cLiHpIqqr6VBB4IhksTrP2oV2TJERu8aj/oxlJe4PK7/i1MCvh7PVM2kBMTLiFzbMdWR v3ih4hY5vRdVSabSy21AjNxNZLFsps+oNDG1G3SrTWmgbCKCF3DxAjoxInzFOPfT433C c7n3dqWHRdSrP1M5sDwBGjHaZvEsX7jOpgDfeo8HJKJt0++H1ceW62kcqi9PFvd8UVFc tg5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="srM/EzIf"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si6214496edh.225.2021.02.02.04.16.00; Tue, 02 Feb 2021 04:16:25 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b="srM/EzIf"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231256AbhBBMOy (ORCPT + 99 others); Tue, 2 Feb 2021 07:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbhBBMOl (ORCPT ); Tue, 2 Feb 2021 07:14:41 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97303C061786; Tue, 2 Feb 2021 04:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=x0ild1pWjAVS3WJxvq5XS64FoqpcDSC4Uujd61u50FE=; b=srM/EzIfbz/5riWYH6qumnb+zn j+mvi5gYrNB+AOYu3bH2i/2M1fx63vsCsf2YIiEVvlyENL+ojTgqwGXMJUGdqwp4OEMWQ4aObiZ3H B+0koplMVj7VdqGLo6QxINw2K1pPISxF+kTMN0mNirghPTmZYC8RLKeCQ/OCR8Ff7Rqv5Be4TQVuK M5qKT5l3HuJyH04i8EHBxJh98XWMNEPc+qGqhCjgDNrLd36g6Ug04LWZyNF/qW+Hj7Vqx9COZL6rr jFQnwP7EDOpAKJHGVY2nr8FtSMZvZlG3rLoxmOxEMmdSrfWNwf6Xks/iXNj+HglObnNEjoXvCOzCs PaXZle4w==; Received: from [2001:4bb8:198:6bf4:7f38:755e:a6e0:73e9] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l6uYq-00FAKY-Ez; Tue, 02 Feb 2021 12:13:37 +0000 From: Christoph Hellwig To: Frederic Barrat , Andrew Donnellan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jessica Yu , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, dri-devel@lists.freedesktop.org, live-patching@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: module loader dead code removal and cleanups v3 Date: Tue, 2 Feb 2021 13:13:21 +0100 Message-Id: <20210202121334.1361503-1-hch@lst.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series removes support for long term unused export types and cleans up various loose ends in the module loader. Changes since v2: - clean up klp_find_object_symbol a bit - remove the now unused module_assert_mutex helper Changes since v1: - move struct symsearch to module.c - rework drm to not call find_module at all - allow RCU-sched locking for find_module - keep find_module as a public API instead of module_loaded - update a few comments and commit logs Diffstat: