Re: [PATCH 05/28] kvm tools: 64-bit tidy; use PRIx64 when printf'ing u64s and link appropriately

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

 



On 12/07/2011 09:16 AM, Ingo Molnar wrote:
>  That's what's happening here; we're __powerpc64__ and
>  !__KERNEL__, tools/kvm/include/linux/types.h includes
>  asm/types.h so gets the int-l64.h definition of __u64, as
>  above.  :/
>
>  builtin-run.c:389: error: format `%llx' expects type `long
>  long unsigned int', but argument 2 has type `u64'
So either define __KERNEL__ or patch a __NEW_USERSPACE__ define
into power/asm/types.h and use it - if the PowerPC folks agree
with that approach.

Sane userspace should not be prevented from using the same sane
types the kernel is already using:-)

On Wed, 7 Dec 2011, Paolo Bonzini wrote:
I should dig up that patent of mine for "apparatus for conversion of circular motion to rectilinear ('wheel')".

What's your point?

We use kernel types for obvious reasons and it trying to use <stdint.h> for the PPC port is just begging for trouble.

			Pekka
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux