Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1204467pxb; Thu, 28 Jan 2021 10:20:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqQp11Qy4/U6dzrQihBFdhThWxn8h6JBlXnnpsY2MU7xYEYS20XlRr58Pp5v8uysgi6H3I X-Received: by 2002:a50:c8c3:: with SMTP id k3mr968706edh.302.1611858045555; Thu, 28 Jan 2021 10:20:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611858045; cv=none; d=google.com; s=arc-20160816; b=Mo05KWLIxdsSVLEHcONip8wSNo70gpC+w+QIpUTqOlw5FZqG4NdB63XZfWe0tZFk2T 5Aj7t3scoRXmXDtVIm3IbslXZQqJwISQIu1wl8F+R8YWx/cFgjFPQ8RCCtbRAd/TiN/f TRcJEVoBxw8TW7pr2za1s6GbTDkJppnJrXykahXxHpxVXtbFGAQYBOaKaV1HbgWaNpIi etSL4ulVp4ttFKtcFzpbtU+v+amMPoE/rCsoIqGOenKIihydy/AHAJ9/4gMesZpJzjE4 HLgnoELh9rs5NadwkBu23qFNRUVO/Cpck78Msb2/Ur1OWqiNx3Vi8cHo0+cIqrcbOahW RBzA== 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=7s5dD/3siooJ6nsDrgQUKG6OOTocrmy+kkM/wYIzMpc=; b=VyTSfbFUP6XlkNlZOkMmyoHmzkS0+4kbrh7/xW31WTGumvmcLRl6RSYg2iLXlG/ln0 /1vBBdX7SFIBoJx184nX4+lWQ0HaAUo8FJjo6gwxPPEh9RvkVduEPIHdo+h0AT3uTJAz DT+TDUkd0cq1k9uMAENmjvuZyo92TldTeQn39PaCHientccw7y0JkPw+ECC2JIHpucKa R8tv+OKP21VTTIZiEqf7jixJqBzL5HyP2mXndrOEAmCuiVUvIjLZ7qo7oyTXCH4oML89 Up72Ob3NY+G5GXyZuprMZfoT0I9+pS55ZD/wpB3xKzwGuK6o4i74MYF26szcJQRXv1UF pmTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=iqY1YkZh; 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 x10si3041484ejj.235.2021.01.28.10.20.21; Thu, 28 Jan 2021 10:20:45 -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=iqY1YkZh; 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 S231364AbhA1SSy (ORCPT + 99 others); Thu, 28 Jan 2021 13:18:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbhA1SPw (ORCPT ); Thu, 28 Jan 2021 13:15:52 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1DB2C061756; Thu, 28 Jan 2021 10:15:04 -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=7s5dD/3siooJ6nsDrgQUKG6OOTocrmy+kkM/wYIzMpc=; b=iqY1YkZhUVUBceYZp90531D8xU ZKg4JwNC+GLLwqAbNZA2rDL2oOqW9LDy/mNx7ttNdwk3ksr1oMYETuKMCln0h0VUfdxtBMttHh0x0 5+uUYyyM7n+4VkMxTF9lfnhHn/y96OKGLLG0ulbN7rxlOce4T4wYSTy4/sBkeVNI6KNgWOZZiP9/W LZLrtCdREv2wRQ8tM3SQM6NaI1DYOzhJc8ewPKTWOSO82sgKNR3yqkXV4E2u7aI5qE7heyacTyvwO tWV9YWth5K239OX2a9Mqc+2+ussOlN3yXBOUrAX0k/nm9QlLULsE0vTRtN35Z8BHHPTHPXpHjb8Be yt7k5vKQ==; Received: from [2001:4bb8:198:6bf4:e052:196b:7e32:37d9] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l5BoE-008nqb-2X; Thu, 28 Jan 2021 18:14:27 +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 v2 Date: Thu, 28 Jan 2021 19:14:08 +0100 Message-Id: <20210128181421.2279-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 v1: - move struct symsearch to module.c - rework drm to not call find_module at all - llow 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: arch/arm/configs/bcm2835_defconfig | 1 arch/arm/configs/mxs_defconfig | 1 arch/mips/configs/nlm_xlp_defconfig | 1 arch/mips/configs/nlm_xlr_defconfig | 1 arch/parisc/configs/generic-32bit_defconfig | 1 arch/parisc/configs/generic-64bit_defconfig | 1 arch/powerpc/configs/ppc6xx_defconfig | 1 arch/powerpc/platforms/powernv/pci-cxl.c | 22 - arch/s390/configs/debug_defconfig | 1 arch/s390/configs/defconfig | 1 arch/sh/configs/edosk7760_defconfig | 1 arch/sh/configs/sdk7780_defconfig | 1 arch/x86/configs/i386_defconfig | 1 arch/x86/configs/x86_64_defconfig | 1 arch/x86/tools/relocs.c | 4 drivers/gpu/drm/drm_crtc_helper_internal.h | 10 drivers/gpu/drm/drm_fb_helper.c | 21 - drivers/gpu/drm/drm_kms_helper_common.c | 25 +- include/asm-generic/vmlinux.lds.h | 42 --- include/linux/export.h | 9 include/linux/kallsyms.h | 17 - include/linux/module.h | 48 ---- init/Kconfig | 17 - kernel/kallsyms.c | 8 kernel/livepatch/core.c | 11 kernel/module.c | 310 +++++++++------------------- kernel/trace/trace_kprobe.c | 4 lib/bug.c | 3 scripts/checkpatch.pl | 6 scripts/mod/modpost.c | 50 ---- scripts/mod/modpost.h | 3 scripts/module.lds.S | 6 tools/include/linux/export.h | 3 33 files changed, 142 insertions(+), 490 deletions(-)