Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3458815ybn; Fri, 27 Sep 2019 06:42:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkyXSAcMIeRKViLkUhsEJXaGEfIGpBH5II97QRXPCvQ2H9zt/51ft8oPVs2Ws43SRSpHph X-Received: by 2002:a17:906:4a51:: with SMTP id a17mr7751215ejv.279.1569591768067; Fri, 27 Sep 2019 06:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569591768; cv=none; d=google.com; s=arc-20160816; b=dVF+G/IrlwWhfr9gtcu0QWOI5RTysPe8BuF5ef7B5M+zyl2rZiX/9wfEJ0eRfPWq8P 3Hf3ygnWY4/sd/jGbcHsrzL3x6aAOEJjAc2TomVM8RFZlXnUxiuUiw+bTA9DfNHH9Y7y GTMmSclqsT3rP2L9pdLa4wgVCmFPj8aS/rGo+uOZkfxub1c714H/cZbJheCvNn8Sk4uz yW4LZG/Mv3AHYX7iieEcZAu7BNHiIuAjUE36Jk4rAvFJ1/DrQDNFSgYcz+XTzMeVBgaJ 3ElFPHYO+/vckLtza0Kry2Y/sIQhqIQ/QhgORYLFInsFrqINd5k6y+wkUfP56Oraq9fU LKkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hgnZlYVxe7nccl/AMGN96sUvuUJBPHkcwyTYZiuZshQ=; b=0G9V8CJhpmiyhMqA9rdn7eNpNJoInvCIZEcSYF7LZH7LSmkwF6DL2nalzLoKNSi2RN Ia3cj72hAQ6VyqBGESLd+ac8ZgWaUYz1j340GRhUbCN6FT/8sAwPyshd9fZaQzCa1Rw8 80nctkkC8wYMeLT68FvvUzOulkzEP9mFIHoWKia9u7VMCb3DbRbeBB0gI0N3m+4YPw9z dB+fd9vWEwPzVRlr3YVPv4ylHmOPJEHaEG7BkWHu14EI54MilVJkyFF+7K1E/dB/dOaY ywlz2YrF8x/etwksZvpzOyYN9riOHzcLTR8AM5P9/O8p9VTIGFH23F1YJnP+WkUOXnFD y+TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Fy5j/qmg"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si1573385eda.222.2019.09.27.06.42.22; Fri, 27 Sep 2019 06:42:48 -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=@google.com header.s=20161025 header.b="Fy5j/qmg"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbfI0NlP (ORCPT + 99 others); Fri, 27 Sep 2019 09:41:15 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53477 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbfI0NlO (ORCPT ); Fri, 27 Sep 2019 09:41:14 -0400 Received: by mail-wm1-f65.google.com with SMTP id i16so6667634wmd.3 for ; Fri, 27 Sep 2019 06:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hgnZlYVxe7nccl/AMGN96sUvuUJBPHkcwyTYZiuZshQ=; b=Fy5j/qmgSJyd5tLd2E0Y0I0s9aR2rJOX18jYABdElAIytSroY2DHEGWmW/j4lQl/7v BV8qyTbP3eT2rDYHKIYH4rUw+7ynj1SZW+f2+c/PtW+B2420sM6AvwYT80Q8f7NbUXSI oss4WK0y9hAGXrGtV5kjOpIDh675S8dOWTH5k/5MiPYMVlIuppQbCfdInRGDwaYTfvPb xUINeYpDP1TqXNgVLsAMW6pIX/k23rdz+Uf6/3bciD7dmL0P0jzF/Ce+KhzoU5vARPRO Ri/fiVoygkeAXTmR/32zEyHI8Dh07iF5haiSg0bMWx3I4uqyNZtkCsnEFihizD8NizDY jaoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hgnZlYVxe7nccl/AMGN96sUvuUJBPHkcwyTYZiuZshQ=; b=pQTVH12XL6hCphMVK4s88nfzsfydNqXEa40Jo10m7TEQubedtYJvODbZEMvHXxMQSL fv3+ZxK0WM2FY9z/8Y3E4Ha6r2LQgjX1tcHsGop0EUFFDONBHqv1qHQbpXGpeoGHjx/+ jIXSEHfMMUKaMiQdETqPPrlz/vAGwyaFbyz+4F+qdOeu0mADVELuCGgXj3NbD4YjPMy6 mxaicvDkzikR6Ap6rYjprhmfYT8hfaNyjzW/uExXHhaVeebCj1qlLLttH6R3PSDx2bYE A6Y7b4nzDTb9WZG2aX/TNh6IXXY0aYHrzg2X/eQOQBNlLlCKuIEqShJsXOU1ZQB+jyuG YSWQ== X-Gm-Message-State: APjAAAWTUOLV0p22O3VTOeT9q5e8JgrBCi2hocHdBknVnzw0tP2fURq7 5UDQa3eARMIx8O79fYWp6mebvQ== X-Received: by 2002:a1c:a8cb:: with SMTP id r194mr4464907wme.156.1569591672626; Fri, 27 Sep 2019 06:41:12 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:e8f7:125b:61e9:733d]) by smtp.gmail.com with ESMTPSA id t18sm6535777wmi.44.2019.09.27.06.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 06:41:11 -0700 (PDT) Date: Fri, 27 Sep 2019 14:41:08 +0100 From: Matthias Maennich To: Masahiro Yamada Cc: Jessica Yu , Greg Kroah-Hartman , Joel Fernandes , Martijn Coenen , Will Deacon , Michal Marek , Will Deacon , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/7] module: various bug-fixes and clean-ups for module namespace Message-ID: <20190927134108.GC187147@google.com> References: <20190927093603.9140-1-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190927093603.9140-1-yamada.masahiro@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 27, 2019 at 06:35:56PM +0900, Masahiro Yamada wrote: > >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". > Thanks Masahiro for taking the time to improve the implementation of the symbol namespaces. These are all good points that you addressed! For [04/07], I can work on this if you do not mind. Cheers, Matthias > >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 >