Преглед изворни кода

s390/zcrypt: make structures static

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>
Heiko Carstens пре 8 година
родитељ
комит
227374b1dd
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      drivers/s390/crypto/ap_card.c
  2. 1 1
      drivers/s390/crypto/ap_queue.c

+ 1 - 1
drivers/s390/crypto/ap_card.c

@@ -137,7 +137,7 @@ static const struct attribute_group *ap_card_dev_attr_groups[] = {
 	NULL
 	NULL
 };
 };
 
 
-struct device_type ap_card_type = {
+static struct device_type ap_card_type = {
 	.name = "ap_card",
 	.name = "ap_card",
 	.groups = ap_card_dev_attr_groups,
 	.groups = ap_card_dev_attr_groups,
 };
 };

+ 1 - 1
drivers/s390/crypto/ap_queue.c

@@ -564,7 +564,7 @@ static const struct attribute_group *ap_queue_dev_attr_groups[] = {
 	NULL
 	NULL
 };
 };
 
 
-struct device_type ap_queue_type = {
+static struct device_type ap_queue_type = {
 	.name = "ap_queue",
 	.name = "ap_queue",
 	.groups = ap_queue_dev_attr_groups,
 	.groups = ap_queue_dev_attr_groups,
 };
 };