From: Jes Sorensen Date: Tue, 5 May 2015 22:36:31 +0000 (-0400) Subject: staging: unisys: memregion: move struct memregion to memregion.h X-Git-Tag: v4.2-rc1~88^2~807 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=81c7492db05ec452599907ce69e42071e0c5ec03;p=karo-tx-linux.git staging: unisys: memregion: move struct memregion to memregion.h Signed-off-by: Jes Sorensen Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- 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);