Skip to content
Snippets Groups Projects
  1. Dec 18, 2019
  2. Dec 17, 2019
  3. Oct 28, 2019
  4. Sep 26, 2019
  5. Aug 22, 2019
  6. Jul 19, 2019
  7. Jun 12, 2019
    • Markus Armbruster's avatar
      Normalize position of header guard · 0553d895
      Markus Armbruster authored
      
      This is the common header guard idiom:
      
          /*
           * File comment
           */
      
          #ifndef GUARD_SYMBOL_H
          #define GUARD_SYMBOL_H
      
          ... actual contents ...
      
          #endif
      
      A few of our headers have some #include before the guard.
      target/tilegx/spr_def_64.h has #ifndef __DOXYGEN__ outside the guard.
      A few more have the #define elsewhere.
      
      Change them to match the common idiom.  For spr_def_64.h, that means
      dropping #ifndef __DOXYGEN__.  While there, rename guard symbols to
      make scripts/clean-header-guards.pl happy.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190604181618.19980-2-armbru@redhat.com>
      [Rebased with conflicts resolved automatically]
      0553d895
    • Markus Armbruster's avatar
      Include qemu-common.h exactly where needed · a8d25326
      Markus Armbruster authored
      
      No header includes qemu-common.h after this commit, as prescribed by
      qemu-common.h's file comment.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-5-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
      block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
      target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
      target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
      target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
      target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
      net/tap-bsd.c fixed up]
      a8d25326
    • Markus Armbruster's avatar
      Include qemu/module.h where needed, drop it from qemu-common.h · 0b8fa32f
      Markus Armbruster authored
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-4-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      hw/usb/dev-hub.c hw/misc/exynos4210_rng.c hw/misc/bcm2835_rng.c
      hw/misc/aspeed_scu.c hw/display/virtio-vga.c hw/arm/stm32f205_soc.c;
      ui/cocoa.m fixed up]
      0b8fa32f
  8. May 22, 2019
  9. Mar 22, 2019
  10. Mar 21, 2019
    • Greg Kurz's avatar
      crypto/block: remove redundant struct packing to fix build with gcc 9 · 5993e3be
      Greg Kurz authored
      
      Build fails with gcc 9:
      
      crypto/block-luks.c:689:18: error: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
        689 |     be32_to_cpus(&luks->header.payload_offset);
            |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      crypto/block-luks.c:690:18: error: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
        690 |     be32_to_cpus(&luks->header.key_bytes);
            |                  ^~~~~~~~~~~~~~~~~~~~~~~
      crypto/block-luks.c:691:18: error: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
        691 |     be32_to_cpus(&luks->header.master_key_iterations);
            |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      ... a bunch of similar errors...
      
      crypto/block-luks.c:1288:22: error: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
       1288 |         be32_to_cpus(&luks->header.key_slots[i].stripes);
            |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      
      All members of the QCryptoBlockLUKSKeySlot and QCryptoBlockLUKSHeader are
      naturally aligned and we already check at build time there isn't any
      unwanted padding. Drop the QEMU_PACKED attribute.
      
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      5993e3be
  11. Feb 26, 2019
  12. Feb 05, 2019
  13. Jan 30, 2019
  14. Jan 11, 2019
  15. Dec 12, 2018
Loading