From patchwork Thu Oct 3 07:58:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 175055 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1855121ill; Thu, 3 Oct 2019 00:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqykWHVotZttt6QpsjBd0CzSgxXn+dCuUWTT+OqXkaYkTZpk+ghKfetxvnxPs0PSbyTMXcFW X-Received: by 2002:aa7:cdd6:: with SMTP id h22mr8193521edw.132.1570089564966; Thu, 03 Oct 2019 00:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570089564; cv=none; d=google.com; s=arc-20160816; b=S8B19PSexTpo533yP6XVUGt1SbRj7M2tHC3Eazy5FxQ5l6jREtcDWoWtviYLDteXgx AcJ592X6x57LEbQMPl8AssIpTgIbc9/RhV9XhXW4Pk6Od30hUzExXZ8HmJpdsYbyKHh0 TdPc5oE5LfLeVLK763WLssSliSpxqzcR3SRLcPbqwzWVLARDjFPSdpMmrV1EiM4umYHU ZqRLnEcS+Ux6v3bQm1E0MIVFYclvbyAPs7zMDOt9Rp5DZq4BK7QjDRDq0m96S5aeTEZt uXth5p6sGFUt8TUj+ClC6vbR525cVbwY3vKdFPpS1RUj8ip2xUZg2+G+xN/xlpK2hEyS Se3w== 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 j21si920670edr.376.2019.10.03.00.59.24; Thu, 03 Oct 2019 00:59:24 -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 S1728431AbfJCH7R (ORCPT + 27 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