From: Wei Yongjun Date: Wed, 26 Sep 2018 02:09:23 +0000 (+0000) Subject: crypto: ccp - Make function sev_get_firmware() static X-Git-Tag: v5.4-rc1~2368^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5182f26f6f7437213adac8290ac746336c7709da;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c index 3b33863..d64a78c 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];