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:
наб
2021-12-12 17:34:25 +01:00
committed by Brian Behlendorf
parent 14e4e3cb9f
commit 18e4f67960
21 changed files with 69 additions and 72 deletions
+2
View File
@@ -47,6 +47,7 @@ struct mod_ops mod_cryptoops = {
static int
mod_null(struct modlmisc *modl, struct modlinkage *modlp)
{
(void) modl, (void) modlp;
return (0);
}
@@ -56,6 +57,7 @@ mod_null(struct modlmisc *modl, struct modlinkage *modlp)
static int
mod_infonull(void *modl, struct modlinkage *modlp, int *p0)
{
(void) modl, (void) modlp;
*p0 = -1; /* for modinfo display */
return (0);
}
+4 -4
View File
@@ -172,16 +172,16 @@ kmutex_t mh_head_lock;
* mod_hash_null_valdtor()
* no-op key and value destructors.
*/
/*ARGSUSED*/
void
mod_hash_null_keydtor(mod_hash_key_t key)
{
(void) key;
}
/*ARGSUSED*/
void
mod_hash_null_valdtor(mod_hash_val_t val)
{
(void) val;
}
/*
@@ -198,10 +198,10 @@ mod_hash_null_valdtor(mod_hash_val_t val)
* "Compilers: Principles, Tools & Techniques", by Aho, Sethi, Ullman
*/
/*ARGSUSED*/
uint_t
mod_hash_bystr(void *hash_data, mod_hash_key_t key)
{
(void) hash_data;
uint_t hash = 0;
uint_t g;
char *p, *k = (char *)key;
@@ -672,10 +672,10 @@ mod_hash_reserve_nosleep(mod_hash_t *hash, mod_hash_hndl_t *handlep)
}
/*ARGSUSED*/
void
mod_hash_cancel(mod_hash_t *hash, mod_hash_hndl_t *handlep)
{
(void) hash;
kmem_cache_free(mh_e_cache, *handlep);
*handlep = (mod_hash_hndl_t)0;
}