[Android-virt] [PATCH v5 09/13] ARM: KVM: Handle I/O aborts

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

 



On Sun, Dec 11, 2011 at 2:25 AM, Christoffer Dall <
c.dall at virtualopensystems.com> wrote:

> From: Christoffer Dall <cdall at cs.columbia.edu>
>
[...]

> +                       /* Test that the compiler used arithmetic right
> shift
> +                        * for signed values. */
> +                       asr_test = 0xffffffff;
> +                       BUG_ON((asr_test >> 2) >= 0);
>

If the compiler doesn't actually optimize this (and the duplicate below)
out, perhaps move it to a one-time initialization function?  If it does
optimize it out, perhaps BUILD_BUG_ON(...) ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.cs.columbia.edu/pipermail/android-virt/attachments/20111213/cf9e7486/attachment.html


[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux