]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
crypto: ccp - change type of struct member lsb to signed
authorGary R Hook <gary.hook@amd.com>
Wed, 12 Oct 2016 13:47:03 +0000 (08:47 -0500)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:55:36 +0000 (10:55 -0700)
Orabug: 26644685

The lsb field uses a value of -1 to indicate that it
is unassigned. Therefore type must be a signed int.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 3cf799680d2612a21d50ed554848dd37241672c8)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-dev.h

index da5f4a67808344b1123d023123d58b1381ca1e11..5afaa53672b399bd932ac609afdf93fa66452d19 100644 (file)
@@ -278,7 +278,7 @@ struct ccp_cmd_queue {
        /* Private LSB that is assigned to this queue, or -1 if none.
         * Bitmap for my private LSB, unused otherwise
         */
-       unsigned int lsb;
+       int lsb;
        DECLARE_BITMAP(lsbmap, PLSB_MAP_SIZE);
 
        /* Queue processing thread */