diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:17:11 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:16:46 -0400 |
commit | c4736d968254d71eba6814b2234a4e63f40aca15 (patch) | |
tree | 8cac3862aa0071046ffb993c465cca664bd922a7 /drivers/s390 | |
parent | 399c1d8dbfdcf46977fd2e2a833b02e18a284810 (diff) |
[S390] sparse: fix sparse static warnings
Make functions and data static to avoid sparse warnings.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/qdio_main.c | 2 | ||||
-rw-r--r-- | drivers/s390/cio/qdio_thinint.c | 2 | ||||
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/ctcm_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/lcs.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c index ab9de1be77a..2fcdc0b2f0a 100644 --- a/drivers/s390/cio/qdio_main.c +++ b/drivers/s390/cio/qdio_main.c | |||
@@ -281,7 +281,7 @@ static inline int set_buf_state(struct qdio_q *q, int bufnr, | |||
281 | } | 281 | } |
282 | 282 | ||
283 | /* set slsb states to initial state */ | 283 | /* set slsb states to initial state */ |
284 | void qdio_init_buf_states(struct qdio_irq *irq_ptr) | 284 | static void qdio_init_buf_states(struct qdio_irq *irq_ptr) |
285 | { | 285 | { |
286 | struct qdio_q *q; | 286 | struct qdio_q *q; |
287 | int i; | 287 | int i; |
diff --git a/drivers/s390/cio/qdio_thinint.c b/drivers/s390/cio/qdio_thinint.c index 8c1f412b7e6..9d1e7efb5bb 100644 --- a/drivers/s390/cio/qdio_thinint.c +++ b/drivers/s390/cio/qdio_thinint.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | /* list of thin interrupt input queues */ | 30 | /* list of thin interrupt input queues */ |
31 | static LIST_HEAD(tiq_list); | 31 | static LIST_HEAD(tiq_list); |
32 | DEFINE_MUTEX(tiq_list_lock); | 32 | static DEFINE_MUTEX(tiq_list_lock); |
33 | 33 | ||
34 | /* adapter local summary indicator */ | 34 | /* adapter local summary indicator */ |
35 | static u8 *tiqdio_alsi; | 35 | static u8 *tiqdio_alsi; |
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index aec60d55b10..83c69fbc43f 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * The pointer to our (page) of device descriptions. | 33 | * The pointer to our (page) of device descriptions. |
34 | */ | 34 | */ |
35 | static void *kvm_devices; | 35 | static void *kvm_devices; |
36 | struct work_struct hotplug_work; | 36 | static struct work_struct hotplug_work; |
37 | 37 | ||
38 | struct kvm_device { | 38 | struct kvm_device { |
39 | struct virtio_device vdev; | 39 | struct virtio_device vdev; |
diff --git a/drivers/s390/net/ctcm_sysfs.c b/drivers/s390/net/ctcm_sysfs.c index 8305319b2a8..650aec1839e 100644 --- a/drivers/s390/net/ctcm_sysfs.c +++ b/drivers/s390/net/ctcm_sysfs.c | |||
@@ -159,7 +159,7 @@ static ssize_t ctcm_proto_store(struct device *dev, | |||
159 | return count; | 159 | return count; |
160 | } | 160 | } |
161 | 161 | ||
162 | const char *ctcm_type[] = { | 162 | static const char *ctcm_type[] = { |
163 | "not a channel", | 163 | "not a channel", |
164 | "CTC/A", | 164 | "CTC/A", |
165 | "FICON channel", | 165 | "FICON channel", |
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 05fb3f7c728..c28713da1ec 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -1970,7 +1970,7 @@ lcs_portno_store (struct device *dev, struct device_attribute *attr, const char | |||
1970 | 1970 | ||
1971 | static DEVICE_ATTR(portno, 0644, lcs_portno_show, lcs_portno_store); | 1971 | static DEVICE_ATTR(portno, 0644, lcs_portno_show, lcs_portno_store); |
1972 | 1972 | ||
1973 | const char *lcs_type[] = { | 1973 | static const char *lcs_type[] = { |
1974 | "not a channel", | 1974 | "not a channel", |
1975 | "2216 parallel", | 1975 | "2216 parallel", |
1976 | "2216 channel", | 1976 | "2216 channel", |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index ce735204d31..e4c1176ee25 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -1415,7 +1415,7 @@ static int qeth_l3_send_checksum_command(struct qeth_card *card) | |||
1415 | return 0; | 1415 | return 0; |
1416 | } | 1416 | } |
1417 | 1417 | ||
1418 | int qeth_l3_set_rx_csum(struct qeth_card *card, int on) | 1418 | static int qeth_l3_set_rx_csum(struct qeth_card *card, int on) |
1419 | { | 1419 | { |
1420 | int rc = 0; | 1420 | int rc = 0; |
1421 | 1421 | ||