crypto: caam - fix build warning when DEBUG_FS not configured
PATCH 1/1 crypto: caam - fix build warning when DEBUG_FS not configured
drivers/crypto/caam/ctrl.c: In function 'caam_probe':drivers/crypto/caam/ctrl.c:55:23: warning: unused variable 'perfmon'
Signed-off-by Kim Phillips <[email protected]>
--- drivers/crypto/caam/ctrl.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/crypto/caam/ctrl.c +3 -1
@@ -52,9 +52,11 @@ static int caam_probe(struct platform_device *pdev)struct caam_ctrl __iomem *ctrl;struct caam_full __iomem *topregs;struct caam_drv_private *ctrlpriv; -struct caam_perfmon *perfmon;struct caam_deco **deco;u32 deconum; +#ifdef CONFIG_DEBUG_FS +struct caam_perfmon *perfmon; +#endif ctrlpriv =kzalloc (sizeof (struct caam_drv_private ),GFP_KERNEL );if (!ctrlpriv)
Signature · 1 line
1.7.5.4
Herbert Xu
maintainerQuoted 4 lines · Kim Phillips
drivers/crypto/caam/ctrl.c: In function 'caam_probe':drivers/crypto/caam/ctrl.c:55:23: warning: unused variable 'perfmon'Signed-off-by Kim Phillips <[email protected]>
Patch applied. Thanks Kim.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt