Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp39209ybn; Thu, 3 Oct 2019 00:59:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqz88dbsNHWA84VYx7rOBeVWaWlrQXMjvDPU/VQ9roUqFM8R4beKXMR6Nt1QUurdIefC2R5Q X-Received: by 2002:a17:906:c47:: with SMTP id t7mr6533810ejf.133.1570089594833; Thu, 03 Oct 2019 00:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570089594; cv=none; d=google.com; s=arc-20160816; b=eiJSDZIcotMKf2qUKgQDNesVvCbL5M7XJAzuLupkvAsgVOR/3QnfN3SPwk3jkrennv xo6MExYfvDkWwi+iHiRKBoec3jVeVpZeopeGJICJ6QfDMVsUClubP1Uc9OUtfU8uEGVj QsScH6NLNAka30UNSVOf8jfS1/z13g4P7cLym9qzgwV8/hqY9AAQVVSY+4fW1BQqvWEy o++goGRMqYGTtq4O31lLSJO8W1jsRBRKMeUN6+6fv4ga/xdXX/rO4pX0AUH1Q+Si9Xfp ldqm/UzizihplFhDVAtq7QHAiUu+lHTKXonBO1M0vLPOZeB5T0+VsYU0N+NtOySO/hzd +iDA== 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=TZoLwyjxs1rXiGeMqo09vs0+qyomHTfJ9kkNpI3atWE=; b=VeP2EZKAT3HZ+Zk+1g+aklVGGQRBjV5jn/b8mdo8ZhbSVN+5cmq8xEWL5sXGPZhytR XVJwZaStxgjIUwywtkN/s2tqOYFXyl5UY8EVVSaqDZzp5INe+Dn/W11JguNInkus89wj 7Ao5obOzsq/gfzNKIQmqWvkb5hqoCmavhLIHdb10LIUHl/Hj3bBrNp75YKta2b50SYgO EBFfBculZZqI6s40BWKj8QnS0+q360lE3GmOCrhrdblvZe/hK6Y6ySlWJiHOmJ5ZCFtY Hg6GeK2FFSazZNxpmez4A27YhPfYPYbMc+csMULa2YEoS2T12DnX6Nh5RHrUOfTdTRkI +CWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QTOhXzxR; 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 h53si1031428edh.147.2019.10.03.00.59.30; Thu, 03 Oct 2019 00:59:54 -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=QTOhXzxR; 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 S1728356AbfJCH7R (ORCPT + 99 others); Thu, 3 Oct 2019 03:59:17 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:59233 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728180AbfJCH7R (ORCPT ); Thu, 3 Oct 2019 03:59:17 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x937wTkS007720; Thu, 3 Oct 2019 16:58:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x937wTkS007720 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570089510; bh=TZoLwyjxs1rXiGeMqo09vs0+qyomHTfJ9kkNpI3atWE=; h=From:To:Cc:Subject:Date:From; b=QTOhXzxRFqojlugFQQXkgfK4eY6knGqfGmtO+3jaw+JSuwQDEa2SKu21G8D3y0BIH 1MIfmAu3r31cxSB2CZ+D/O+6hxCr6km6uWH+pZRyWdpZcDJlpuTSLjhJIJSZC+2pab tM0cLk5fkB57hHNG7OmMqrHVPlhiEBsOnxC80vLEEElwzX+CMs/3K/6+aEi+eT9H3h WiqSmw9j1bGYjXZB6hHgjwQPZ6qfbccFOeT/WejV6VIL9+ZRuCzG9tIwkM9DBCIGtn aK6BVO2MOQHM56OtL6krvb31yCSJSKvk7/Cf8HV2j0lm/vcId9zmc2kh+pzKWQlnV6 P5F0MA4MZ9VdA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Jessica Yu Cc: Matthias Maennich , Greg Kroah-Hartman , Shaun Ruffell , linux-kbuild@vger.kernel.org, Masahiro Yamada , Martijn Coenen , Michal Marek , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] module: various bug-fixes and clean-ups for module namespace Date: Thu, 3 Oct 2019 16:58:20 +0900 Message-Id: <20191003075826.7478-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 (some are nit-picking). V2: - I dropped "module: avoid code duplication in include/linux/export.h" because Matthias offered to refactor the code by himself. - V1 missed the problem when a symbol is preloaded before sym_add_exported() is called. I fixed it too. Masahiro Yamada (6): module: swap the order of symbol.namespace modpost: fix broken sym->namespace for external module builds module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict 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 | 10 +++++----- scripts/mod/modpost.c | 29 +++++++++++++++-------------- scripts/nsdeps | 4 ++-- 4 files changed, 23 insertions(+), 22 deletions(-) -- 2.17.1