<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/scripts/clean-includes, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/scripts/clean-includes?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/scripts/clean-includes?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-01-30T18:20:20Z</updated>
<entry>
<title>scripts/clean-includes: Update exclude list</title>
<updated>2024-01-30T18:20:20Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2024-01-25T16:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=bbad42455b808cee25488b050fc0be36117c9698'/>
<id>urn:sha1:bbad42455b808cee25488b050fc0be36117c9698</id>
<content type='text'>
Update the exclude list to exclude some more files which don't follow our
standard #include policy.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
<entry>
<title>scripts/clean-includes: Improve --git commit message</title>
<updated>2023-02-08T06:16:23Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2023-02-02T13:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d598d9746e87cea8e92acd0d4f4320fe5d854440'/>
<id>urn:sha1:d598d9746e87cea8e92acd0d4f4320fe5d854440</id>
<content type='text'>
The script drops #include "qemu/osdep.h" from headers.  Mention it in
the commit message it uses for --git.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Juan Quintela &lt;quintela@redhat.com&gt;
Message-Id: &lt;20230202133830.2152150-5-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/clean-includes: Skip symbolic links</title>
<updated>2023-02-08T06:16:23Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2023-02-02T13:38:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=6a7f0515fd8f12377622dbbda1e794f28511192d'/>
<id>urn:sha1:6a7f0515fd8f12377622dbbda1e794f28511192d</id>
<content type='text'>
When a symbolic link points to a file that needs cleaning, the script
replaces the link with a cleaned regular file.  Not wanted; skip them.

We have a few symbolic links under subprojects/libvduse/ and
subprojects/libvhost-user/.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20230202133830.2152150-4-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/clean-includes: Don't claim duplicate headers found when not</title>
<updated>2023-02-08T06:16:23Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2023-02-02T13:38:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=2555150244393a8cf433d6762c265b1e89c70be4'/>
<id>urn:sha1:2555150244393a8cf433d6762c265b1e89c70be4</id>
<content type='text'>
When running with --check-dup-head, the script always claims it "Found
duplicate header file includes."  Fix to do it only when it actually
found some.

Fixes: d66253e46ae2 ("scripts/clean-includes: added duplicate #include check")
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20230202133830.2152150-3-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/clean-includes: Fully skip / ignore files</title>
<updated>2023-02-08T06:16:23Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2023-02-02T13:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=aa735872a879075d1e9d669c8d5737f41232a3e3'/>
<id>urn:sha1:aa735872a879075d1e9d669c8d5737f41232a3e3</id>
<content type='text'>
When clean-includes claims to skip or ignore a file, only the part
that sanitizes use of qemu/osdep.h skips the file.  The part that
looks for duplicate #include does not, and neither does committing to
Git.

The latter can get unrelated stuff included in the commit, but only if
you run clean-includes in a dirty tree, which is unwise.  Messed up
when we added skipping in commit fd3e39a40c "scripts/clean-includes:
Enhance to handle header files".

The former can cause bogus reports for --check-dup-head.  Added in
commit d66253e46a "scripts/clean-includes: added duplicate #include
check", duplicating the prior mistake.

Fix the script to fully skip files.

Fixes: fd3e39a40ca2 ("scripts/clean-includes: Enhance to handle header files")
Fixes: d66253e46ae2 ("scripts/clean-includes: added duplicate #include check")
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20230202133830.2152150-2-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>disas: Remove libvixl disassembler</title>
<updated>2022-07-05T08:15:49Z</updated>
<author>
<name>Thomas Huth</name>
<email>thuth@redhat.com</email>
</author>
<published>2022-06-03T16:42:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=2116650254117a873ab316038803cef657ae2820'/>
<id>urn:sha1:2116650254117a873ab316038803cef657ae2820</id>
<content type='text'>
The disassembly via capstone should be superiour to our old vixl
sources nowadays, so let's finally cut this old disassembler out
of the QEMU source tree.

Message-Id: &lt;20220603164249.112459-1-thuth@redhat.com&gt;
Tested-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>meson: rename included C source files to .c.inc</title>
<updated>2020-08-21T10:18:30Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2020-02-04T11:41:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=139c1837db7eaee53e1c441629b5bcc159e1deb0'/>
<id>urn:sha1:139c1837db7eaee53e1c441629b5bcc159e1deb0</id>
<content type='text'>
With Makefiles that have automatically generated dependencies, you
generated includes are set as dependencies of the Makefile, so that they
are built before everything else and they are available when first
building the .c files.

Alternatively you can use a fine-grained dependency, e.g.

        target/arm/translate.o: target/arm/decode-neon-shared.inc.c

With Meson you have only one choice and it is a third option, namely
"build at the beginning of the corresponding target"; the way you
express it is to list the includes in the sources of that target.

The problem is that Meson decides if something is a source vs. a
generated include by looking at the extension: '.c', '.cc', '.m', '.C'
are sources, while everything else is considered an include---including
'.inc.c'.

Use '.c.inc' to avoid this, as it is consistent with our other convention
of using '.rst.inc' for included reStructuredText files.  The editorconfig
file is adjusted.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/clean-includes: Mark 'qemu/qemu-plugin.h' as special header</title>
<updated>2020-06-08T15:59:29Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>f4bug@amsat.org</email>
</author>
<published>2020-06-05T15:49:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=a6703e65ecfe3a57f122abdf1f8353fb60927a43'/>
<id>urn:sha1:a6703e65ecfe3a57f122abdf1f8353fb60927a43</id>
<content type='text'>
"qemu/qemu-plugin.h" isn't meant to be include by QEMU codebase,
but by 3rd party plugins that QEMU can use. These plugins can be
built out of QEMU and don't include "qemu/osdep.h".
Mark "qemu/qemu-plugin.h" as a special header that doesn't need
to be cleaned for "qemu/osdep.h".

Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: Emilio G. Cota &lt;cota@braap.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20200524215654.13256-1-f4bug@amsat.org&gt;
Message-Id: &lt;20200605154929.26910-3-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>scripts/clean-includes: added duplicate #include check</title>
<updated>2016-10-28T15:17:23Z</updated>
<author>
<name>Anand J</name>
<email>anand.indukala@gmail.com</email>
</author>
<published>2016-10-21T06:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d66253e46ae2b9c36a9dd90b2b74c0dfa5804b22'/>
<id>urn:sha1:d66253e46ae2b9c36a9dd90b2b74c0dfa5804b22</id>
<content type='text'>
Enhance the clean-includes script to optionally check for duplicate #include
entries.

Script might output false positive entries as well. Such entries should
not be removed. So if it finds any duplicate entries script will
terminate with an exit status 1. Then each and every file should be
checked manually and corrected if necessary.

In order to enable the check use --check-dup-head option with
scripts/clean-includes.

Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Anand J &lt;anand.indukala@gmail.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
<entry>
<title>os-posix: include sys/mman.h</title>
<updated>2016-06-16T16:39:03Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2016-06-06T11:57:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=02d0e095031b7fda77de8b558465a57659ea79cb'/>
<id>urn:sha1:02d0e095031b7fda77de8b558465a57659ea79cb</id>
<content type='text'>
qemu/osdep.h checks whether MAP_ANONYMOUS is defined, but this check
is bogus without a previous inclusion of sys/mman.h.  Include it in
sysemu/os-posix.h and remove it from everywhere else.

Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
