qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 17fc7e: i386: use ROUND_UP macro


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 17fc7e: i386: use ROUND_UP macro
Date: Thu, 31 Aug 2017 09:08:23 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 17fc7e93fd0c819d6ffd0a872930b0d2653ca170
      
https://github.com/qemu/qemu/commit/17fc7e93fd0c819d6ffd0a872930b0d2653ca170
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M target/i386/arch_dump.c

  Log Message:
  -----------
  i386: use ROUND_UP macro

I used the clang-tidy qemu-round check (with the option OnlyAlignUp)
to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 5a3804db616634779be8e5ebcc6409c2bd9b58b5
      
https://github.com/qemu/qemu/commit/5a3804db616634779be8e5ebcc6409c2bd9b58b5
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M ui/vnc.c

  Log Message:
  -----------
  vnc: use QEMU_ALIGN_DOWN

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: cf7a09c1e4e4869c1257c1490e770b8801f8ec43
      
https://github.com/qemu/qemu/commit/cf7a09c1e4e4869c1257c1490e770b8801f8ec43
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M block/vhdx-log.c

  Log Message:
  -----------
  vhdx: use QEMU_ALIGN_DOWN

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 33c5793bd92b85b0d3666f35e44cef855b48e76a
      
https://github.com/qemu/qemu/commit/33c5793bd92b85b0d3666f35e44cef855b48e76a
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/virtio/vhost.c

  Log Message:
  -----------
  vhost: use QEMU_ALIGN_DOWN

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: ec34748507c3eb812fe38afc59cc19a3bb713466
      
https://github.com/qemu/qemu/commit/ec34748507c3eb812fe38afc59cc19a3bb713466
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/timer/i8254_common.c

  Log Message:
  -----------
  i8254: use QEMU_ALIGN_DOWN

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 668c2d1f91f467ae718fc3e03cffed25ade8bfce
      
https://github.com/qemu/qemu/commit/668c2d1f91f467ae718fc3e03cffed25ade8bfce
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/audio/pcspk.c

  Log Message:
  -----------
  pcspk: use QEMU_ALIGN_DOWN

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 6fb0022b48c6f646f5bd5178152efe7e2398dd41
      
https://github.com/qemu/qemu/commit/6fb0022b48c6f646f5bd5178152efe7e2398dd41
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M block/dmg.c

  Log Message:
  -----------
  dmg: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 21cf3e120191eb1302da2bbfc6c41239e0d84db7
      
https://github.com/qemu/qemu/commit/21cf3e120191eb1302da2bbfc6c41239e0d84db7
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M block/qcow2-cluster.c

  Log Message:
  -----------
  qcow2: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 13f1493f82860cff39e3b8160a3dce557970f95f
      
https://github.com/qemu/qemu/commit/13f1493f82860cff39e3b8160a3dce557970f95f
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M block/vpc.c

  Log Message:
  -----------
  vpc: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 78ee96de6486ab9ff5c38145b55d5fc7de43dd77
      
https://github.com/qemu/qemu/commit/78ee96de6486ab9ff5c38145b55d5fc7de43dd77
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M block/vvfat.c

  Log Message:
  -----------
  vvfat: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 659c90eed8f2667febc1fd1f6473799ab6a45fb6
      
https://github.com/qemu/qemu/commit/659c90eed8f2667febc1fd1f6473799ab6a45fb6
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M ui/vnc-enc-tight.c
    M ui/vnc.c

  Log Message:
  -----------
  vnc: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 935b3332f5df80f8adf7c6965ef799185eccc825
      
https://github.com/qemu/qemu/commit/935b3332f5df80f8adf7c6965ef799185eccc825
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M ui/cursor.c

  Log Message:
  -----------
  ui: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 2c23ce22c611a0cdddf9e7fdd3e8144da74744b5
      
https://github.com/qemu/qemu/commit/2c23ce22c611a0cdddf9e7fdd3e8144da74744b5
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/display/vga.c

  Log Message:
  -----------
  vga: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: e5f99037481ba405cd6c3b2beaa2b786a5c68100
      
https://github.com/qemu/qemu/commit/e5f99037481ba405cd6c3b2beaa2b786a5c68100
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/display/virtio-gpu.c

  Log Message:
  -----------
  virtio-gpu: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 69db8dfc19cd0aff951c63a4ec1f1ed26417a4fc
      
https://github.com/qemu/qemu/commit/69db8dfc19cd0aff951c63a4ec1f1ed26417a4fc
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M monitor.c

  Log Message:
  -----------
  monitor: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Acked-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: d1a0945f8412ab52ad523397d82be61ba835ae27
      
https://github.com/qemu/qemu/commit/d1a0945f8412ab52ad523397d82be61ba835ae27
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M include/ui/console.h

  Log Message:
  -----------
  console: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 7b9a27cdbb5b510c7826b816f20259131169f9cd
      
https://github.com/qemu/qemu/commit/7b9a27cdbb5b510c7826b816f20259131169f9cd
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/char/virtio-serial-bus.c

  Log Message:
  -----------
  virtio-serial: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Amit Shah <address@hidden>


  Commit: f9406b84ba3f081dd0cd38bc28db4b8cd9134398
      
https://github.com/qemu/qemu/commit/f9406b84ba3f081dd0cd38bc28db4b8cd9134398
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/pci-host/piix.c

  Log Message:
  -----------
  piix: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: fa141081b9e2b6c4ae963604fcb5b994ff322936
      
https://github.com/qemu/qemu/commit/fa141081b9e2b6c4ae963604fcb5b994ff322936
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/pci-host/q35.c

  Log Message:
  -----------
  q35: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 54ac85ef0d5c76503548cec29e4e0b556e3cf00b
      
https://github.com/qemu/qemu/commit/54ac85ef0d5c76503548cec29e4e0b556e3cf00b
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/usb/dev-hub.c

  Log Message:
  -----------
  usb-hub: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 0ef1efcf944fcc950840f068da5513311ee55a6d
      
https://github.com/qemu/qemu/commit/0ef1efcf944fcc950840f068da5513311ee55a6d
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/pci/msix.c

  Log Message:
  -----------
  msix: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: f0704d78b42423f6040e224452cee4ee4aff30cc
      
https://github.com/qemu/qemu/commit/f0704d78b42423f6040e224452cee4ee4aff30cc
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M target/ppc/mem_helper.c
    M target/ppc/translate.c

  Log Message:
  -----------
  ppc: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Acked-by: David Gibson <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 074d5afe7c710c935f5558f23eb8e2b28778e491
      
https://github.com/qemu/qemu/commit/074d5afe7c710c935f5558f23eb8e2b28778e491
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M target/i386/arch_dump.c

  Log Message:
  -----------
  i386/dump: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 206a0fc75d5f54886c1b3f3a65782a75e36b6b97
      
https://github.com/qemu/qemu/commit/206a0fc75d5f54886c1b3f3a65782a75e36b6b97
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M linux-headers/asm-x86/kvm.h

  Log Message:
  -----------
  kvm: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 6402cbbbfd18322df8914ffc320b5e122399096b
      
https://github.com/qemu/qemu/commit/6402cbbbfd18322df8914ffc320b5e122399096b
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M libdecnumber/decNumber.c

  Log Message:
  -----------
  decnumber: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 18a1f0d767852a7d6a000bffeb65d8825ae83a79
      
https://github.com/qemu/qemu/commit/18a1f0d767852a7d6a000bffeb65d8825ae83a79
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M target/i386/arch_dump.c

  Log Message:
  -----------
  i386: introduce ELF_NOTE_SIZE macro

Factour out a common pattern to compute the ELF note size.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: ad2c19937e0b80f8037e411f72e6d6078fe673ca
      
https://github.com/qemu/qemu/commit/ad2c19937e0b80f8037e411f72e6d6078fe673ca
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/i386/multiboot.c

  Log Message:
  -----------
  i386: replace g_malloc()+memcpy() with g_memdup()

I found these pattern via grepping the source tree. I don't have a
coccinelle script for it!

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 38cc1dba1fd3a906ecf8384f592b2d4952b0e43c
      
https://github.com/qemu/qemu/commit/38cc1dba1fd3a906ecf8384f592b2d4952b0e43c
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M tests/test-iov.c

  Log Message:
  -----------
  test-iov: replace g_malloc()+memcpy() with g_memdup()

I found these pattern via grepping the source tree. I don't have a
coccinelle script for it!

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: e4d67e4f2e06128bc7f07263afe9acc2e2242fdc
      
https://github.com/qemu/qemu/commit/e4d67e4f2e06128bc7f07263afe9acc2e2242fdc
  Author: Marc-André Lureau <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M hw/net/eepro100.c

  Log Message:
  -----------
  eepro100: replace g_malloc()+memcpy() with g_memdup()

I found these pattern via grepping the source tree. I don't have a
coccinelle script for it!

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
Reviewed-by: Jason Wang <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>


  Commit: 223cd0e13f2e46078d7b573f0b8402bfbee339be
      
https://github.com/qemu/qemu/commit/223cd0e13f2e46078d7b573f0b8402bfbee339be
  Author: Peter Maydell <address@hidden>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M block/dmg.c
    M block/qcow2-cluster.c
    M block/vhdx-log.c
    M block/vpc.c
    M block/vvfat.c
    M hw/audio/pcspk.c
    M hw/char/virtio-serial-bus.c
    M hw/display/vga.c
    M hw/display/virtio-gpu.c
    M hw/i386/multiboot.c
    M hw/net/eepro100.c
    M hw/pci-host/piix.c
    M hw/pci-host/q35.c
    M hw/pci/msix.c
    M hw/timer/i8254_common.c
    M hw/usb/dev-hub.c
    M hw/virtio/vhost.c
    M include/ui/console.h
    M libdecnumber/decNumber.c
    M linux-headers/asm-x86/kvm.h
    M monitor.c
    M target/i386/arch_dump.c
    M target/ppc/mem_helper.c
    M target/ppc/translate.c
    M tests/test-iov.c
    M ui/cursor.c
    M ui/vnc-enc-tight.c
    M ui/vnc.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/elmarco/tags/tidy-pull-request' into 
staging

# gpg: Signature made Thu 31 Aug 2017 11:29:33 BST
# gpg:                using RSA key 0xDAE8E10975969CE5
# gpg: Good signature from "Marc-André Lureau <address@hidden>"
# gpg:                 aka "Marc-André Lureau <address@hidden>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 87A9 BD93 3F87 C606 D276  F62D DAE8 E109 7596 9CE5

* remotes/elmarco/tags/tidy-pull-request: (29 commits)
  eepro100: replace g_malloc()+memcpy() with g_memdup()
  test-iov: replace g_malloc()+memcpy() with g_memdup()
  i386: replace g_malloc()+memcpy() with g_memdup()
  i386: introduce ELF_NOTE_SIZE macro
  decnumber: use DIV_ROUND_UP
  kvm: use DIV_ROUND_UP
  i386/dump: use DIV_ROUND_UP
  ppc: use DIV_ROUND_UP
  msix: use DIV_ROUND_UP
  usb-hub: use DIV_ROUND_UP
  q35: use DIV_ROUND_UP
  piix: use DIV_ROUND_UP
  virtio-serial: use DIV_ROUND_UP
  console: use DIV_ROUND_UP
  monitor: use DIV_ROUND_UP
  virtio-gpu: use DIV_ROUND_UP
  vga: use DIV_ROUND_UP
  ui: use DIV_ROUND_UP
  vnc: use DIV_ROUND_UP
  vvfat: use DIV_ROUND_UP
  ...

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/1d2a8e0690a8...223cd0e13f2e

reply via email to

[Prev in Thread] Current Thread [Next in Thread]