diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-09 10:59:34 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-19 09:26:33 +0200 |
commit | d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed (patch) | |
tree | 0763c5e372afa0e3e114138f755621b9ac20ddc3 /cryptodev.h | |
parent | ef0a304388b3d17a7730f04aa58aef5f94fcbf35 (diff) | |
download | cryptodev-linux-d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed.tar.gz cryptodev-linux-d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed.tar.xz cryptodev-linux-d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed.zip |
sparse: Fix __user annotations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'cryptodev.h')
-rw-r--r-- | cryptodev.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cryptodev.h b/cryptodev.h index 572b3c3..4d6b712 100644 --- a/cryptodev.h +++ b/cryptodev.h @@ -7,6 +7,8 @@ #ifndef __KERNEL__ #include <inttypes.h> +#define __user +#else #endif /* API extensions for linux */ @@ -73,9 +75,9 @@ struct session_op { uint32_t mac; /* cryptodev_crypto_op_t */ uint32_t keylen; - uint8_t * key; + uint8_t __user *key; uint32_t mackeylen; - uint8_t * mackey; + uint8_t __user *mackey; uint32_t ses; /* session identifier */ }; @@ -89,10 +91,10 @@ struct session_op { uint16_t op; /* COP_ENCRYPT or COP_DECRYPT */ uint16_t flags; /* no usage so far, use 0 */ uint32_t len; /* length of source data */ - uint8_t * src; /* source data */ - uint8_t * dst; /* pointer to output data */ - uint8_t * mac; /* pointer to output data for hash/MAC operations */ - uint8_t * iv; /* initialization vector for encryption operations */ + uint8_t __user *src; /* source data */ + uint8_t __user *dst; /* pointer to output data */ + uint8_t __user *mac; /* pointer to output data for hash/MAC operations */ + uint8_t __user *iv; /* initialization vector for encryption operations */ }; /* Stuff for bignum arithmetic and public key |