diff options
author | Philippe Mathieu-Daudé | 2020-02-24 14:45:07 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-03-17 15:18:46 +0100 |
commit | 044e2af9f5f55d81be754a0e2ba1d206ad2b3bc6 (patch) | |
tree | cdc81b35e31afc1266f47a714e107b35a19b3da6 | |
parent | memory: Simplify memory_region_init_rom_nomigrate() to ease review (diff) | |
download | qemu-044e2af9f5f55d81be754a0e2ba1d206ad2b3bc6.tar.gz qemu-044e2af9f5f55d81be754a0e2ba1d206ad2b3bc6.tar.xz qemu-044e2af9f5f55d81be754a0e2ba1d206ad2b3bc6.zip |
scripts/cocci: Rename memory-region-{init-ram -> housekeeping}
As we are going to add various semantic changes related to the memory
region API, rename this script to be more generic.
Add a 'usage' header, and an entry in MAINTAINERS to avoid checkpatch
warning.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | scripts/coccinelle/memory-region-housekeeping.cocci (renamed from scripts/coccinelle/memory-region-init-ram.cocci) | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index a88bc285c4..770126f338 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2047,6 +2047,7 @@ F: include/exec/ramblock.h F: memory.c F: include/exec/memory-internal.h F: exec.c +F: scripts/coccinelle/memory-region-housekeeping.cocci SPICE M: Gerd Hoffmann <kraxel@redhat.com> diff --git a/scripts/coccinelle/memory-region-init-ram.cocci b/scripts/coccinelle/memory-region-housekeeping.cocci index d290150872..3699c1017e 100644 --- a/scripts/coccinelle/memory-region-init-ram.cocci +++ b/scripts/coccinelle/memory-region-housekeeping.cocci @@ -1,3 +1,16 @@ +/* + Usage: + + spatch \ + --macro-file scripts/cocci-macro-file.h \ + --sp-file scripts/coccinelle/memory-region-housekeeping.cocci \ + --keep-comments \ + --in-place \ + --dir . + +*/ + + // Replace by-hand memory_region_init_ram_nomigrate/vmstate_register_ram // code sequences with use of the new memory_region_init_ram function. // Similarly for the _rom and _rom_device functions. |