Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp653813pxb; Tue, 2 Feb 2021 14:28:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjPrVbNMdsELq1RiM4TGKefmGM/sMV6gv08s8GIduLveQa1coUyxwm7A2BDEUO6h1VHaa3 X-Received: by 2002:a05:6402:190a:: with SMTP id e10mr283889edz.110.1612304936864; Tue, 02 Feb 2021 14:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612304936; cv=none; d=google.com; s=arc-20160816; b=GUsO7R4nZv6IGfC+38g2C5JpHsY5gPPw+G9ouKty0ykrHSD5W1nSdLJem7NOyh2kGX QI4dvKtsNlc7XdBARUeBWUZLRVhcV5m27P+PlNGwhlKDYL9WLXA3mefg3DUBk2BUhyP9 RJOJ42HCqUnbVTm/XzRX77Ge3Vi3wlXwb+Zga9U4oLT3y74pUldFryQ5XlFBDWdWqEH9 AxGfEeWW4sLzNZWrpFc9kLgczuaxW1JZODwTwuYuxblp9TwPG031iho2j83INg/M/oPu a5LJCM3ogmfqb13qD0FKWwYuk7+aqPJOBzJ9vDbtpSJSIi71WrocQ1sMiuxKr69n5wk1 poSQ== 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=59H/RX/aCpZDci3/j2ROapoK3LntvgnOkKqeLSBExoU=; b=HZeiyO6tBIYck+TyM14ByCvO5nnxLYylzkP+vKx7GN944EY9F0PMMuayCqB8ZrMrFc kYCK04zsvfIXP6fkRAKvHuFG5qAByvmiSQMGf0uIlNqE/quNtR0gqB1sjfjxJjFf1ZkZ P8qfKYJL9560xKlH42L/yOtsIgzH6spOrJ8DvXqeA7pvIxJXKghgMpQO5ejIS/nhue3q 4X01m8BaGHipgEwDYs5G5Qq//q0f7ZSP8ivpJzXQF63MNvQ9VtQUUBXnRm+kKX7WYb8b ZfERul3I24m4SaUVRhZy2ou5vUwXR1wULgDkakLCPf9NO4+nW9cH1kJ9Lea5w9aUuD9j sYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BY/9D9Ww"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si122628ejz.227.2021.02.02.14.28.25; Tue, 02 Feb 2021 14:28:56 -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=@kernel.org header.s=k20201202 header.b="BY/9D9Ww"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234779AbhBBOkc (ORCPT + 99 others); Tue, 2 Feb 2021 09:40:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:56660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234507AbhBBOhw (ORCPT ); Tue, 2 Feb 2021 09:37:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EA0E64DD8; Tue, 2 Feb 2021 14:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612276631; bh=59H/RX/aCpZDci3/j2ROapoK3LntvgnOkKqeLSBExoU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BY/9D9WwHzXHV3rnrsxuU0DcQz++ZS4+zEjOPjc9/OVHJHNkD9pRrAGxWG86yct89 spsDRQsLsmBukU8bUtWzDGqSf1UHtMXlOsyar1BYxqiKJGZUHOsFdPkf11uSIFH9Qr IUNDnpAXy7GDi69hndOCbrrQE4yQIfVKdma3R4CjrfITUh+D+4avYXaNLvWGTR4wDn 3SaOQkpanaLTh8gQv97wPm9/HzQpzKi/b2O8G8duzYuArEHa4Td8c/jklXhu2NcE9e B8E7acIz+20H5HXDUSnWEx2f5jizrmOSJ11Exuk00iCVeOGUDBySpAYWwd2oTQKxuj AITUddLLhFuPw== Date: Tue, 2 Feb 2021 15:37:04 +0100 From: Jessica Yu To: Christoph Hellwig Cc: Frederic Barrat , Andrew Donnellan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , 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: Re: module loader dead code removal and cleanups v3 Message-ID: References: <20210202121334.1361503-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210202121334.1361503-1-hch@lst.de> X-OS: Linux gunter 5.10.9-1-default x86_64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Christoph Hellwig [02/02/21 13:13 +0100]: >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 Thanks Christoph for cleaning up all that aged cruft, and thanks everyone for the reviews. I was curious about EXPORT_SYMBOL_GPL_FUTURE and EXPORT_UNUSED_SYMBOL variants, and found that most of that stuff was introduced between 2006 - 2008. All the of the unused symbols were removed and gpl future symbols were converted to gpl quite a long time ago, and I don't believe these export types have been used ever since. So I think it's safe to retire those export types now. The patchset looks good so far. After Miroslav's comments are addressed, I'll wait an extra day or two in case there are more comments before queueing them onto modules-next. I can take the first two patches as well provided the acks are there (I think patch 2 is missing Daniel Vetter's ack from v1 of the series, but I'll add that back in). Thanks, Jessica