summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-09-26 04:09:23 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-10-05 04:16:56 +0200
commit5182f26f6f7437213adac8290ac746336c7709da (patch)
tree181295286d97ba1a2ca5e9e47052ccb94fe8d196 /drivers/crypto/ccp
parenthwrng: core - document the quality field (diff)
downloadlinux-5182f26f6f7437213adac8290ac746336c7709da.tar.xz
linux-5182f26f6f7437213adac8290ac746336c7709da.zip
crypto: ccp - Make function sev_get_firmware() static
Fixes the following sparse warning: drivers/crypto/ccp/psp-dev.c:444:5: warning: symbol 'sev_get_firmware' was not declared. Should it be static? Fixes: e93720606efd ("crypto: ccp - Allow SEV firmware to be chosen based on Family and Model") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp')
-rw-r--r--drivers/crypto/ccp/psp-dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c
index 3b3386361c3e..d64a78ccc03e 100644
--- a/drivers/crypto/ccp/psp-dev.c
+++ b/drivers/crypto/ccp/psp-dev.c
@@ -441,7 +441,8 @@ static int sev_get_api_version(void)
return 0;
}
-int sev_get_firmware(struct device *dev, const struct firmware **firmware)
+static int sev_get_firmware(struct device *dev,
+ const struct firmware **firmware)
{
char fw_name_specific[SEV_FW_NAME_SIZE];
char fw_name_subset[SEV_FW_NAME_SIZE];