<?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 dummy-include</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>02a6e4be - kbuild: prevent exported headers from including &lt;stdlib.h&gt;, &lt;stdbool.h&gt;</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/usr/dummy-include/#02a6e4be</link>
        <description>kbuild: prevent exported headers from including &lt;stdlib.h&gt;, &lt;stdbool.h&gt;Some UAPI headers included &lt;stdlib.h&gt;, like this:  #ifndef __KERNEL__  #include &lt;stdlib.h&gt;  #endifAs it turned out, they just included it for no good reason.After some fixes, now I can compile-test UAPI headers(CONFIG_UAPI_HEADER_TEST=y) without including &lt;stdlib.h&gt; from thesystem header search paths.To avoid somebody getting it back again, this commit adds the dummyheader, usr/dummy-include/stdlib.hI added $(srctree)/usr/dummy-include to the header search paths.Because it is searched before the system directories, if someonetries to include &lt;stdlib.h&gt;, they will see the error message.While I am here, I also replaced $(objtree)/usr/include with $(obj),but it has no functional change.If we can make kernel headers self-contained (that is, none of exportedkernel headers includes system headers), we will be able to add the-nostdinc flag, but that is much far from where we stand now.As a realistic solution, we can ban header inclusion individually byputting a dummy header into usr/dummy-include/.Currently, no header include &lt;stdbool.h&gt;. I put it as well before somebodyattempts to use it.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/usr/dummy-include/stdbool.h/linux-6.15/usr/dummy-include/stdlib.h</description>
        <pubDate>Mon, 04 Apr 2022 06:00:00 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
</channel>
</rss>
