s390/ap_bus: add missing ifdef
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 14 Sep 2012 09:21:17 +0000 (11:21 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:19 +0000 (15:45 +0200)
Get rid of this compile warning for CONFIG_32BIT:

drivers/s390/crypto/ap_bus.c:168:12: warning: ‘ap_configuration_available’
  defined but not used [-Wunused-function]

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c

index cf5d9dc51c9492400c0818556f5026654ad72aeb..7b865a7300e6a7da366762bf7b3882986fc462b3 100644 (file)
@@ -165,10 +165,12 @@ static int ap_interrupts_available(void)
  *
  * Returns 1 if AP configuration information is available.
  */
+#ifdef CONFIG_64BIT
 static int ap_configuration_available(void)
 {
        return test_facility(2) && test_facility(12);
 }
+#endif
 
 /**
  * ap_test_queue(): Test adjunct processor queue.