]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: unisys: include: Remove COVER macro from channel.h
authorCharles Daniels <cdaniels@fastmail.com>
Mon, 17 Jul 2017 20:17:16 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:48:42 +0000 (08:48 +0200)
Replaced the one and only call to COVER in iochannel.h.

Signed-off-by: Charles Daniels <cdaniels@fastmail.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/channel.h
drivers/staging/unisys/include/iochannel.h

index 4fe9451ef4379c28ee6d464e7e967d68980cf037..d6d99cc33a333ea7a3771d4c2bb7d600dc0ea1f9 100644 (file)
 #define SIGNATURE_32(A, B, C, D) \
        (SIGNATURE_16(A, B) | (SIGNATURE_16(C, D) << 16))
 
-#ifndef COVER
-#define COVER(v, d) ((d) * DIV_ROUND_UP(v, d))
-#endif
-
 #define VISOR_CHANNEL_SIGNATURE SIGNATURE_32('E', 'C', 'N', 'L')
 
 /*
index 425edb6ca43e038334c99114621cf51652746cf0..80b9ef3ceb0cb92e49ef9c7780cc6cd1853240c8 100644 (file)
@@ -587,7 +587,7 @@ struct visor_io_channel {
 } __packed;
 
 /* INLINE functions for initializing and accessing I/O data channels. */
-#define SIZEOF_CMDRSP (COVER(sizeof(struct uiscmdrsp), 64))
+#define SIZEOF_CMDRSP (64 * DIV_ROUND_UP(sizeof(struct uiscmdrsp), 64))
 
 /* Use 4K page sizes when passing page info between Guest and IOPartition. */
 #define PI_PAGE_SIZE 0x1000