[LINUX] Don't use uint64_t parameter to gnttab_set_{,un}map_op() when

the upper 32 bits will never be used (i.e., i386 non-pae).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-11-06 09:02:15 +00:00
1 parent 6bc01e4efd
commit adf74ce752
1 file changed
+3 -2
+3 -2
View File
@@ -38,6 +38,7 @@
#define __ASM_GNTTAB_H__
#include <linux/config.h>
#include <linux/mm.h>
#include <asm/hypervisor.h>
#include <xen/interface/grant_table.h>
#include <xen/features.h>
@@ -118,7 +119,7 @@ int gnttab_suspend(void);
int gnttab_resume(void);
static inline void
gnttab_set_map_op(struct gnttab_map_grant_ref *map, uint64_t addr,
gnttab_set_map_op(struct gnttab_map_grant_ref *map, maddr_t addr,
uint32_t flags, grant_ref_t ref, domid_t domid)
{
if (flags & GNTMAP_contains_pte)
@@ -134,7 +135,7 @@ gnttab_set_map_op(struct gnttab_map_grant_ref *map, uint64_t addr,
}
static inline void
gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, uint64_t addr,
gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, maddr_t addr,
uint32_t flags, grant_handle_t handle)
{
if (flags & GNTMAP_contains_pte)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.