<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in nsdeps</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>62aa6f2e - scripts/nsdeps: get &apos;make nsdeps&apos; working again</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#62aa6f2e</link>
        <description>scripts/nsdeps: get &apos;make nsdeps&apos; working againSince commit cdd30ebb1b9f (&quot;module: Convert symbol namespace to stringliteral&quot;), when MODULE_IMPORT_NS() is missing, &apos;make nsdeps&apos; insertspointless code:    MODULE_IMPORT_NS(&quot;ns&quot;);Here, &quot;ns&quot; is not a namespace, but the variable in the semantic patch.It must not be quoted. Instead, a string literal must be passed toCoccinelle.Fixes: cdd30ebb1b9f (&quot;module: Convert symbol namespace to string literal&quot;)Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Tue, 03 Dec 2024 10:21:05 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>bad6beb2 - kbuild: remove extmod_prefix, MODORDER, MODULES_NSDEPS variables</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#bad6beb2</link>
        <description>kbuild: remove extmod_prefix, MODORDER, MODULES_NSDEPS variablesWith the previous changes, $(extmod_prefix), $(MODORDER), and$(MODULES_NSDEPS) are constant. (empty, modules.order, andmodules.nsdeps, respectively).Remove these variables and hard-code their values.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;nicolas@fjasle.eu&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Sun, 10 Nov 2024 01:34:34 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>13b25489 - kbuild: change working directory to external module directory with M=</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#13b25489</link>
        <description>kbuild: change working directory to external module directory with M=Currently, Kbuild always operates in the output directory of the kernel,even when building external modules. This increases the risk of externalmodule Makefiles attempting to write to the kernel directory.This commit switches the working directory to the external moduledirectory, allowing the removal of the $(KBUILD_EXTMOD)/ prefix fromsome build artifacts.The command for building external modules maintains backwardcompatibility, but Makefiles that rely on working in the kerneldirectory may break. In such cases, $(objtree) and $(srctree) shouldbe used to refer to the output and source directories of the kernel.The appearance of the build log will change as follows:[Before]  $ make -C /path/to/my/linux M=/path/to/my/externel/module  make: Entering directory &apos;/path/to/my/linux&apos;    CC [M]  /path/to/my/externel/module/helloworld.o    MODPOST /path/to/my/externel/module/Module.symvers    CC [M]  /path/to/my/externel/module/helloworld.mod.o    CC [M]  /path/to/my/externel/module/.module-common.o    LD [M]  /path/to/my/externel/module/helloworld.ko  make: Leaving directory &apos;/path/to/my/linux&apos;[After]  $ make -C /path/to/my/linux M=/path/to/my/externel/module  make: Entering directory &apos;/path/to/my/linux&apos;  make[1]: Entering directory &apos;/path/to/my/externel/module&apos;    CC [M]  helloworld.o    MODPOST Module.symvers    CC [M]  helloworld.mod.o    CC [M]  .module-common.o    LD [M]  helloworld.ko  make[1]: Leaving directory &apos;/path/to/my/externel/module&apos;  make: Leaving directory &apos;/path/to/my/linux&apos;Printing &quot;Entering directory&quot; twice is cumbersome. This will beaddressed later.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Reviewed-by: Nicolas Schier &lt;n.schier@avm.de&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Sun, 10 Nov 2024 01:34:33 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>49c3ca34 - scripts/nsdeps: adjust to the format change of *.mod files</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#49c3ca34</link>
        <description>scripts/nsdeps: adjust to the format change of *.mod filesCommit 22f26f21774f (&quot;kbuild: get rid of duplication in *.mod files&quot;)changed the format of *.mod files to put one object per line, but missedto adjust scripts/nsdeps.Fixes: 22f26f21774f (&quot;kbuild: get rid of duplication in *.mod files&quot;)Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Tue, 07 Jun 2022 15:18:40 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>77a88274 - kbuild: replace LANG=C with LC_ALL=C</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#77a88274</link>
        <description>kbuild: replace LANG=C with LC_ALL=CLANG gives a weak default to each LC_* in case it is not explicitlydefined. LC_ALL, if set, overrides all other LC_* variables.  LANG  &lt;  LC_CTYPE, LC_COLLATE, LC_MONETARY, LC_NUMERIC, ...  &lt;  LC_ALLThis is why documentation such as [1] suggests to set LC_ALL in buildscripts to get the deterministic result.LANG=C is not strong enough to override LC_* that may be set by endusers.[1]: https://reproducible-builds.org/docs/locales/Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Acked-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt; (powerpc)Reviewed-by: Matthias Maennich &lt;maennich@google.com&gt;Acked-by: Matthieu Baerts &lt;matthieu.baerts@tessares.net&gt; (mptcp)Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Fri, 30 Apr 2021 01:56:27 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>33114c43 - kbuild: do not use scripts/ld-version.sh for checking spatch version</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#33114c43</link>
        <description>kbuild: do not use scripts/ld-version.sh for checking spatch versionscripts/ld-version.sh was, as its file name implies, originally intendedfor the GNU ld version, but is (ab)used for the spatch version too.Use &apos;sort -CV&apos; for the version comparison, then coccicheck does not needto use scripts/ld-version.sh. Fix nsdeps as well.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Signed-off-by: Julia Lawall &lt;Julia.Lawall@inria.fr&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Sat, 12 Dec 2020 16:54:29 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>55c75498 - scripts: add dummy report mode to add_namespace.cocci</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#55c75498</link>
        <description>scripts: add dummy report mode to add_namespace.cocciWhen running `make coccicheck` in report mode using theadd_namespace.cocci file, it will fail for files that containMODULE_LICENSE. Those match the replacement precondition, but spatcherrors out as virtual.ns is not set.In order to fix that, add the virtual rule nsdeps and only do search andreplace if that rule has been explicitly requested.In order to make spatch happy in report mode, we also need a dummy rule,as otherwise it errors out with &quot;No rules apply&quot;. Using a script:pythonrule appears unrelated and odd, but this is the shortest I could come upwith.Adjust scripts/nsdeps accordingly to set the nsdeps rule when run trough`make nsdeps`.Suggested-by: Julia Lawall &lt;julia.lawall@inria.fr&gt;Fixes: c7c4e29fb5a4 (&quot;scripts: add_namespace: Fix coccicheck failed&quot;)Cc: YueHaibing &lt;yuehaibing@huawei.com&gt;Cc: jeyu@kernel.orgCc: cocci@systeme.lip6.frCc: stable@vger.kernel.orgSigned-off-by: Matthias Maennich &lt;maennich@google.com&gt;Reported-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;Acked-by: Julia Lawall &lt;julia.lawall@inria.fr&gt;Link: https://lore.kernel.org/r/20200604164145.173925-1-maennich@google.comSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Thu, 04 Jun 2020 16:41:45 +0000</pubDate>
        <dc:creator>Matthias Maennich &lt;maennich@google.com&gt;</dc:creator>
    </item>
<item>
        <title>bc35d4bd - scripts/nsdeps: support nsdeps for external module builds</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#bc35d4bd</link>
        <description>scripts/nsdeps: support nsdeps for external module buildsscripts/nsdeps is written to take care of only in-tree modules.Perhaps, this is not a bug, but just a design. At least,Documentation/core-api/symbol-namespaces.rst focuses on in-tree modules.Having said that, some people already tried nsdeps for external modules.So, it would be nice to support it.Reported-by: Steve French &lt;smfrench@gmail.com&gt;Reported-by: Jessica Yu &lt;jeyu@kernel.org&gt;Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Tested-by: Jessica Yu &lt;jeyu@kernel.org&gt;Acked-by: Jessica Yu &lt;jeyu@kernel.org&gt;Reviewed-by: Matthias Maennich &lt;maennich@google.com&gt;Tested-by: Matthias Maennich &lt;maennich@google.com&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Tue, 29 Oct 2019 12:38:08 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;</dc:creator>
    </item>
<item>
        <title>bbc55bde - modpost: dump missing namespaces into a single modules.nsdeps file</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#bbc55bde</link>
        <description>modpost: dump missing namespaces into a single modules.nsdeps fileThe modpost, with the -d option given, generates per-module .ns_depsfiles.Kbuild generates per-module .mod files to carry module information.This is convenient because Make handles multiple jobs in parallelwhen the -j option is given.On the other hand, the modpost always runs as a single thread.I do not see a strong reason to produce separate .ns_deps files.This commit changes the modpost to generate just one file,modules.nsdeps, each line of which has the following format:  &lt;module_name&gt;: &lt;list of missing namespaces&gt;Please note it contains *missing* namespaces instead of required ones.So, modules.nsdeps is empty if the namespace dependency is all good.This will work more efficiently because spatch will no longer processalready imported namespaces. I removed the &apos;(if needed)&apos; from thensdeps log since spatch is invoked only when needed.This also solves the stale .ns_deps problem reported by Jessica Yu:  https://lkml.org/lkml/2019/10/28/467Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Tested-by: Jessica Yu &lt;jeyu@kernel.org&gt;Acked-by: Jessica Yu &lt;jeyu@kernel.org&gt;Reviewed-by: Matthias Maennich &lt;maennich@google.com&gt;Tested-by: Matthias Maennich &lt;maennich@google.com&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Tue, 29 Oct 2019 12:38:07 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;</dc:creator>
    </item>
<item>
        <title>57baec7b - scripts/nsdeps: make sure to pass all module source files to spatch</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#57baec7b</link>
        <description>scripts/nsdeps: make sure to pass all module source files to spatchThe nsdeps script passes a list of the module source files togenerate_deps_for_ns() as a space delimited string named $mod_source_files,which then passes it to spatch. But since $mod_source_files is not encasedin quotes, each source file in that string is treated as a separate shellfunction argument (as $2, $3, $4, etc.).  However, the spatch invocationonly refers to $2, so only the first file out of $mod_source_files isprocessed by spatch.This causes problems (namely, the MODULE_IMPORT_NS() statement doesn&apos;tget inserted) when a module is composed of many source files and the&quot;main&quot; module file containing the MODULE_LICENSE() statement is not thefirst file listed in $mod_source_files. Fix this by encasing$mod_source_files in quotes so that the entirety of the string istreated as a single argument and can be referred to as $2.In addition, put quotes in the variable assignment of mod_source_filesto prevent any shell interpretation and field splitting.Reviewed-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Acked-by: Matthias Maennich &lt;maennich@google.com&gt;Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Tue, 05 Nov 2019 10:10:23 +0000</pubDate>
        <dc:creator>Jessica Yu &lt;jeyu@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>09684950 - scripts/nsdeps: use alternative sed delimiter</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#09684950</link>
        <description>scripts/nsdeps: use alternative sed delimiterWhen doing an out of tree build with O=, the nsdeps script constructsthe absolute pathname of the module source file so that it can insertMODULE_IMPORT_NS statements in the right place. However, ${srctree}contains an unescaped path to the source tree, which, when used in a sedsubstitution, makes sed complain:++ sed &apos;s/[^ ]* *//home/jeyu/jeyu-linux\/&amp;/g&apos;sed: -e expression #1, char 12: unknown option to `s&apos;The sed substitution command &apos;s&apos; ends prematurely with the forwardslashes in the pathname, and sed errors out when it encounters the &apos;h&apos;,which is an invalid sed substitution option. To avoid escaping forwardslashes ${srctree}, we can use &apos;|&apos; as an alternative delimiter forsed instead to avoid this error.Reviewed-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Reviewed-by: Matthias Maennich &lt;maennich@google.com&gt;Tested-by: Matthias Maennich &lt;maennich@google.com&gt;Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Mon, 21 Oct 2019 13:34:26 +0000</pubDate>
        <dc:creator>Jessica Yu &lt;jeyu@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>df6f0987 - nsdeps: make generated patches independent of locale</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#df6f0987</link>
        <description>nsdeps: make generated patches independent of localescripts/nsdeps automatically generates a patch to add MODULE_IMPORT_NStags, and what is nicer, it sorts the lines alphabetically with the&apos;sort&apos; command. However, the output from the &apos;sort&apos; command depends onlocale.For example, I got this:$ { echo usbstorage; echo usb_storage; } | LANG=en_US.UTF-8 sortusbstorageusb_storage$ { echo usbstorage; echo usb_storage; } | LANG=C sortusb_storageusbstorageSo, this means people might potentially send different patches.This kind of issue was reported in the past, for example,commit f55f2328bb28 (&quot;kbuild: make sorting initramfs contentsindependent of locale&quot;).Adding &apos;LANG=C&apos; is a conventional way of fixing when a deterministicresult is desirable.I added &apos;LANG=C&apos; very close to the &apos;sort&apos; command since changinglocale affects the language of error messages etc. We should respectusers&apos; choice as much as possible.Reviewed-by: Matthias Maennich &lt;maennich@google.com&gt;Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Thu, 03 Oct 2019 07:58:26 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;</dc:creator>
    </item>
<item>
        <title>40997fb8 - nsdeps: fix hashbang of scripts/nsdeps</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#40997fb8</link>
        <description>nsdeps: fix hashbang of scripts/nsdepsThis script does not use bash-extension. I am guessing this hashbangwas copied from scripts/coccicheck, which really uses bash-extension./bin/sh is enough for this script.Reviewed-by: Matthias Maennich &lt;maennich@google.com&gt;Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Thu, 03 Oct 2019 07:58:25 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;</dc:creator>
    </item>
<item>
        <title>eb8305ae - scripts: Coccinelle script for namespace dependencies.</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/scripts/nsdeps#eb8305ae</link>
        <description>scripts: Coccinelle script for namespace dependencies.A script that uses the &apos;&lt;module&gt;.ns_deps&apos; files generated by modpost toautomatically add the required symbol namespace dependencies to eachmodule.Usage:1) Move some symbols to a namespace with EXPORT_SYMBOL_NS() or define   DEFAULT_SYMBOL_NAMESPACE2) Run &apos;make&apos; (or &apos;make modules&apos;) and get warnings about modules not   importing that namespace.3) Run &apos;make nsdeps&apos; to automatically add required import statements   to said modules.This makes it easer for subsystem maintainers to introduce and maintainsymbol namespaces into their codebase.Co-developed-by: Martijn Coenen &lt;maco@android.com&gt;Signed-off-by: Martijn Coenen &lt;maco@android.com&gt;Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;Signed-off-by: Matthias Maennich &lt;maennich@google.com&gt;Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;

            List of files:
            /linux-6.15/scripts/nsdeps</description>
        <pubDate>Fri, 06 Sep 2019 10:32:32 +0000</pubDate>
        <dc:creator>Matthias Maennich &lt;maennich@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
