Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3195213ybn; Fri, 27 Sep 2019 02:37:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMsfX3ekGZL7rWb3h1POYQPqML0Sq7gpRzND8Sw/OeFQHtd8PMLcEUucP5j70AP670ztmu X-Received: by 2002:a17:906:4d08:: with SMTP id r8mr6919851eju.283.1569577063218; Fri, 27 Sep 2019 02:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569577063; cv=none; d=google.com; s=arc-20160816; b=KVH/L2ic/DmQF+EQc613TbHsAm4U6F0CYyQ1N1OMFz4/24o9e3VMarB52ozePLHM3C EaCy7P+duDEQ5dENzIV+r8AWIz259A/1JsmyovogK8+MUzpKokW200ZCgeAn6qivX3np GVhbz487z34yKTq3rFQEiBGYn+TmjEUloTpmow7y86QHgyYU6cbQj3SSzSy8w7OjAaqN UZ/jZudYacU8vVdM2QiqMt17j5AoZkpM0GlHDirOicA311AUg1HioSpXI26Rrc1qKWWV XIyXLT9RgmVMQ7CSptyNbpQfkB3PPPVn2ONiCfMcDx0if0kifTxnTQhqgKIDUJ8b4UEz kbWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=NubrWdGxwILdsgYPKpZXMtIIghZ8qkysvaem1tsWivY=; b=Kc4dvXNFvdSN/4+hdqndf0O2Se+Yrn2LW8ts+nT+yLu8jzN6OFH3zNfB4Lvmc03rRW eGlm5DEth+E7ifoeyAFcGfKAuqyWwYJjC/GOn8VXgLGrPEN7kxkPB6rcr3QK3ifGE1kN DPKSHvhh7nS0SnUwL0WHWs1666+orNeC42PR0ijLZox4K5xbsbTNKeuBU6uTFyFANkiL 0SohIbqAo+UKPu1edx78CR6a3K/JPYV+B0TLcpJXDMhqsFO4uwIRMIu5lYWffJCkh8GC TSHSDFzI0f2CgVUDP5drFatsaoLxh/d5l0iNX8J4c7JlmmP/OGMAvs2CaC9ym8zUCBzE 9kpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=eg05f9tM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si2577885ejr.29.2019.09.27.02.37.18; Fri, 27 Sep 2019 02:37:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=eg05f9tM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727058AbfI0JhF (ORCPT + 99 others); Fri, 27 Sep 2019 05:37:05 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:33063 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbfI0JhC (ORCPT ); Fri, 27 Sep 2019 05:37:02 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x8R9a5ua001372; Fri, 27 Sep 2019 18:36:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x8R9a5ua001372 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1569576966; bh=NubrWdGxwILdsgYPKpZXMtIIghZ8qkysvaem1tsWivY=; h=From:To:Cc:Subject:Date:From; b=eg05f9tMuAuD/pnsUnutQl1cHe5TH453NlcgA89lXELzQXJ4zxi3qMriodWdwHLQX HDbvTSaLlEAUUlGykgYRX6hzYQudLwSEUxImwpYlruGJUzLDko/SM5Om0HI1JgDeRo YjzdSbQyTLUVMjTIkXr43jFMmN/sOEDJ0iqBd3z+gEni4XgKXCw4/pUelErhX0737B VhlGJUW0m0P8KaYVHrZGjzjW+EnWpReAHq4r7gasF7lV1Ux4c3gMB720cFosda1mDR Stlgnwo2GpYnef7jQhAg0Ubod+x29d/jNsE4GSQrcRuEupUzTfs50mppy9HDEmdqz1 1mOaYQoiHu4rg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Jessica Yu Cc: Matthias Maennich , Greg Kroah-Hartman , Joel Fernandes , Martijn Coenen , Will Deacon , Masahiro Yamada , Michal Marek , Will Deacon , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] module: various bug-fixes and clean-ups for module namespace Date: Fri, 27 Sep 2019 18:35:56 +0900 Message-Id: <20190927093603.9140-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I was hit by some problems caused by the module namespace feature that was merged recently. At least, the breakage of external module builds is a fatal one. I just took a look at the code closer, and I noticed some more issues and improvements. I hope these patches are mostly OK. The 4th patch might have room for argument since it is a trade-off of "cleaner implermentation" vs "code size". Masahiro Yamada (7): modpost: fix broken sym->namespace for external module builds module: swap the order of symbol.namespace module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict module: avoid code duplication in include/linux/export.h kbuild: fix build error of 'make nsdeps' in clean tree nsdeps: fix hashbang of scripts/nsdeps nsdeps: make generated patches independent of locale Makefile | 2 +- include/linux/export.h | 104 ++++++++++++++--------------------------- kernel/module.c | 2 +- scripts/mod/modpost.c | 20 ++++---- scripts/nsdeps | 4 +- 5 files changed, 47 insertions(+), 85 deletions(-) -- 2.17.1