s390/zcrypt: make structures static
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 15 Dec 2016 10:28:52 +0000 (11:28 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Jan 2017 06:27:51 +0000 (07:27 +0100)
Get rid of these:
drivers/s390/crypto/ap_card.c:140:20:
  warning: symbol 'ap_card_type' was not declared. Should it be static?
drivers/s390/crypto/ap_queue.c:567:20:
 warning: symbol 'ap_queue_type' was not declared. Should it be static?

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

index 0110d44..1cd9128 100644 (file)
@@ -137,7 +137,7 @@ static const struct attribute_group *ap_card_dev_attr_groups[] = {
        NULL
 };
 
-struct device_type ap_card_type = {
+static struct device_type ap_card_type = {
        .name = "ap_card",
        .groups = ap_card_dev_attr_groups,
 };
index b58a917..7be67fa 100644 (file)
@@ -564,7 +564,7 @@ static const struct attribute_group *ap_queue_dev_attr_groups[] = {
        NULL
 };
 
-struct device_type ap_queue_type = {
+static struct device_type ap_queue_type = {
        .name = "ap_queue",
        .groups = ap_queue_dev_attr_groups,
 };