Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH] crypto: CCP - change type of struct member lsb to signed
@ 2016-10-12 13:47 Gary R Hook
  2016-10-21  3:16 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Gary R Hook @ 2016-10-12 13:47 UTC (permalink / raw)
  To: linux-crypto; +Cc: thomas.lendacky, herbert, davem

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>
---
 drivers/crypto/ccp/ccp-dev.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h
index da5f4a6..5afaa53 100644
--- a/drivers/crypto/ccp/ccp-dev.h
+++ b/drivers/crypto/ccp/ccp-dev.h
@@ -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 */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: CCP - change type of struct member lsb to signed
  2016-10-12 13:47 [PATCH] crypto: CCP - change type of struct member lsb to signed Gary R Hook
@ 2016-10-21  3:16 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2016-10-21  3:16 UTC (permalink / raw)
  To: Gary R Hook; +Cc: linux-crypto, thomas.lendacky, davem

On Wed, Oct 12, 2016 at 08:47:03AM -0500, Gary R Hook wrote:
> 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>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-21  3:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 13:47 [PATCH] crypto: CCP - change type of struct member lsb to signed Gary R Hook
2016-10-21  3:16 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox