Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use __SANE_USERSPACE_TYPES__ to obtain LL64
Some platforms (such as PowerPC) have "long unsigned int" as linux's __u64. This causses issues when trying to print values produced by KFD's ioctl. Those value (defined in linux/kfd_ioctl.h) are not compatible with "%llx" printf format currently used. This patch proposes to fix that by setting __SANE_USERSPACE_TYPES__ before including linux/types.h, which should provide long long for 64 bits integers. Suggested-by: Laurent Morichetti <laurent.morichetti@amd.com> Bug: #14 Change-Id: Id682ee82758dfea39a25319670148f44162e98d6
- Loading branch information