]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 0110d44172a3a5bd3b9c5ffa82464efeba34f461..1cd9128593e414ce4a404dffc9944006e82dd46e 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 b58a917dc5107318b31d5a3805f19c55771e11b7..7be67fa9f224d7e240fbbbeca52993e19ab0be77 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,
 };