Mark or remove unused parameters.

Mark unused parameters with proper attribute where it is a part
of API or some internal logic.

And remove other unused parameters completely.
This commit is contained in:
Milan Broz
2021-02-04 21:39:56 +01:00
parent 85f7ee59f8
commit d703301fe8
29 changed files with 104 additions and 99 deletions

View File

@@ -351,7 +351,10 @@ void crypt_hmac_destroy(struct crypt_hmac *ctx)
}
/* RNG - N/A */
int crypt_backend_rng(char *buffer, size_t length, int quality, int fips)
int crypt_backend_rng(char *buffer __attribute__((unused)),
size_t length __attribute__((unused)),
int quality __attribute__((unused)),
int fips __attribute__((unused)))
{
return -EINVAL;
}
@@ -429,7 +432,7 @@ int crypt_cipher_decrypt(struct crypt_cipher *ctx,
return crypt_cipher_decrypt_kernel(&ctx->ck, in, out, length, iv, iv_length);
}
bool crypt_cipher_kernel_only(struct crypt_cipher *ctx)
bool crypt_cipher_kernel_only(struct crypt_cipher *ctx __attribute__((unused)))
{
return true;
}