diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2015-05-05 18:36:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-08 15:26:04 +0200 |
commit | 81c7492db05ec452599907ce69e42071e0c5ec03 (patch) | |
tree | 2aca6296395470dca00b48cbcfd38683c7fb9de1 /drivers | |
parent | 213e6a61328689f9106758487a2fefb69d074c6f (diff) |
staging: unisys: memregion: move struct memregion to memregion.h
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/unisys/visorutil/memregion.h | 6 | ||||
-rw-r--r-- | drivers/staging/unisys/visorutil/memregion_direct.c | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/drivers/staging/unisys/visorutil/memregion.h b/drivers/staging/unisys/visorutil/memregion.h index 1eb3a67eef16..8f006fca73b2 100644 --- a/drivers/staging/unisys/visorutil/memregion.h +++ b/drivers/staging/unisys/visorutil/memregion.h @@ -23,7 +23,11 @@ /* struct memregion is an opaque structure to users. * Fields are declared only in the implementation .c files. */ -struct memregion; +struct memregion { + HOSTADDRESS physaddr; + ulong nbytes; + void __iomem *mapped; +}; struct memregion *visor_memregion_create(HOSTADDRESS physaddr, ulong nbytes); int visor_memregion_resize(struct memregion *memregion, ulong newsize); diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers/staging/unisys/visorutil/memregion_direct.c index 96460d7fdf0a..4ad25df767cd 100644 --- a/drivers/staging/unisys/visorutil/memregion_direct.c +++ b/drivers/staging/unisys/visorutil/memregion_direct.c @@ -25,12 +25,6 @@ #define MYDRVNAME "memregion" -struct memregion { - HOSTADDRESS physaddr; - ulong nbytes; - void __iomem *mapped; -}; - static int mapit(struct memregion *memregion); static void unmapit(struct memregion *memregion); |