Skip to contentSkip to conversation

crypto: caam - fix build warning when DEBUG_FS not configured

PATCH In review Kim Phillips 2 participants 2 messages Jun 5, 2011 – Jun 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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'

---
 drivers/crypto/caam/ctrl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/crypto/caam/ctrl.c +3 -1
index 9009713..fc2d9ed 100644
@@ -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
maintainer
#1 lore raw
Quoted 4 lines · Kim Phillips

drivers/crypto/caam/ctrl.c: In function 'caam_probe':
drivers/crypto/caam/ctrl.c:55:23: warning: unused variable 'perfmon'

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