dom0/u2mfn: fix compile warning

This commit is contained in:
Marek Marczykowski 2012-11-14 13:31:47 +01:00
parent 629038e76d
commit 1cb40005d3

View File

@ -29,6 +29,11 @@
static int u2mfn_fd = -1;
int u2mfn_get_fd()
{
return open("/proc/u2mfn", O_RDWR);
}
static int get_fd()
{
if (u2mfn_fd == -1)
@ -38,11 +43,6 @@ static int get_fd()
return 0;
}
int u2mfn_get_fd()
{
return open("/proc/u2mfn", O_RDWR);
}
int u2mfn_get_mfn_for_page_with_fd(int fd, long va, int *mfn)
{
*mfn = ioctl(fd, U2MFN_GET_MFN_FOR_PAGE, va);