mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12844
This commit is contained in:
@@ -786,6 +786,6 @@ kcf_get_mech_entry(crypto_mech_type_t mech_type, kcf_mech_entry_t **mep)
|
||||
crypto_mech_type_t
|
||||
crypto_mech2id_common(char *mechname, boolean_t load_module)
|
||||
{
|
||||
crypto_mech_type_t mt = kcf_mech_hash_find(mechname);
|
||||
return (mt);
|
||||
(void) load_module;
|
||||
return (kcf_mech_hash_find(mechname));
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ int
|
||||
crypto_uio_data(crypto_data_t *data, uchar_t *buf, int len, cmd_type_t cmd,
|
||||
void *digest_ctx, void (*update)(void))
|
||||
{
|
||||
(void) digest_ctx, (void) update;
|
||||
zfs_uio_t *uiop = data->cd_uio;
|
||||
off_t offset = data->cd_offset;
|
||||
size_t length = len;
|
||||
|
||||
@@ -970,10 +970,10 @@ kcf_enqueue(kcf_areq_node_t *node)
|
||||
/*
|
||||
* kmem_cache_alloc constructor for sync request structure.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
kcf_sreq_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
||||
{
|
||||
(void) cdrarg, (void) kmflags;
|
||||
kcf_sreq_node_t *sreq = (kcf_sreq_node_t *)buf;
|
||||
|
||||
sreq->sn_type = CRYPTO_SYNCH;
|
||||
@@ -983,10 +983,10 @@ kcf_sreq_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
kcf_sreq_cache_destructor(void *buf, void *cdrarg)
|
||||
{
|
||||
(void) cdrarg;
|
||||
kcf_sreq_node_t *sreq = (kcf_sreq_node_t *)buf;
|
||||
|
||||
mutex_destroy(&sreq->sn_lock);
|
||||
@@ -996,10 +996,10 @@ kcf_sreq_cache_destructor(void *buf, void *cdrarg)
|
||||
/*
|
||||
* kmem_cache_alloc constructor for async request structure.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
kcf_areq_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
||||
{
|
||||
(void) cdrarg, (void) kmflags;
|
||||
kcf_areq_node_t *areq = (kcf_areq_node_t *)buf;
|
||||
|
||||
areq->an_type = CRYPTO_ASYNCH;
|
||||
@@ -1011,10 +1011,10 @@ kcf_areq_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
kcf_areq_cache_destructor(void *buf, void *cdrarg)
|
||||
{
|
||||
(void) cdrarg;
|
||||
kcf_areq_node_t *areq = (kcf_areq_node_t *)buf;
|
||||
|
||||
ASSERT(areq->an_refcnt == 0);
|
||||
@@ -1026,10 +1026,10 @@ kcf_areq_cache_destructor(void *buf, void *cdrarg)
|
||||
/*
|
||||
* kmem_cache_alloc constructor for kcf_context structure.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
kcf_context_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
||||
{
|
||||
(void) cdrarg, (void) kmflags;
|
||||
kcf_context_t *kctx = (kcf_context_t *)buf;
|
||||
|
||||
kctx->kc_refcnt = 0;
|
||||
@@ -1038,10 +1038,10 @@ kcf_context_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
kcf_context_cache_destructor(void *buf, void *cdrarg)
|
||||
{
|
||||
(void) cdrarg;
|
||||
kcf_context_t *kctx = (kcf_context_t *)buf;
|
||||
|
||||
ASSERT(kctx->kc_refcnt == 0);
|
||||
|
||||
Reference in New Issue
Block a user