Skip to content

Commit c4736d9

Browse files
author
Martin Schwidefsky
committed
[S390] sparse: fix sparse static warnings
Make functions and data static to avoid sparse warnings. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 399c1d8 commit c4736d9

10 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/s390/boot/compressed/misc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static unsigned long free_mem_end_ptr;
6161

6262
extern _sclp_print_early(const char *);
6363

64-
int puts(const char *s)
64+
static int puts(const char *s)
6565
{
6666
_sclp_print_early(s);
6767
return 0;

‎arch/s390/kernel/ipl.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr,
276276
static struct kobj_attribute sys_ipl_type_attr = __ATTR_RO(ipl_type);
277277

278278
/* VM IPL PARM routines */
279-
size_t reipl_get_ascii_vmparm(char *dest, size_t size,
280-
const struct ipl_parameter_block *ipb)
279+
static size_t reipl_get_ascii_vmparm(char *dest, size_t size,
280+
const struct ipl_parameter_block *ipb)
281281
{
282282
int i;
283283
size_t len;
@@ -339,8 +339,8 @@ static size_t scpdata_length(const char* buf, size_t count)
339339
return count;
340340
}
341341

342-
size_t reipl_append_ascii_scpdata(char *dest, size_t size,
343-
const struct ipl_parameter_block *ipb)
342+
static size_t reipl_append_ascii_scpdata(char *dest, size_t size,
343+
const struct ipl_parameter_block *ipb)
344344
{
345345
size_t count;
346346
size_t i;

‎arch/s390/kernel/kprobes.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ void __kprobes jprobe_return(void)
635635
asm volatile(".word 0x0002");
636636
}
637637

638-
void __kprobes jprobe_return_end(void)
638+
static void __used __kprobes jprobe_return_end(void)
639639
{
640640
asm volatile("bcr 0,0");
641641
}

‎arch/s390/kernel/vtime.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ void add_virt_timer_periodic(void *new)
461461
}
462462
EXPORT_SYMBOL(add_virt_timer_periodic);
463463

464-
int __mod_vtimer(struct vtimer_list *timer, __u64 expires, int periodic)
464+
static int __mod_vtimer(struct vtimer_list *timer, __u64 expires, int periodic)
465465
{
466466
struct vtimer_queue *vq;
467467
unsigned long flags;

‎drivers/s390/cio/qdio_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ static inline int set_buf_state(struct qdio_q *q, int bufnr,
281281
}
282282

283283
/* 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)
285285
{
286286
struct qdio_q *q;
287287
int i;

‎drivers/s390/cio/qdio_thinint.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/* list of thin interrupt input queues */
3131
static LIST_HEAD(tiq_list);
32-
DEFINE_MUTEX(tiq_list_lock);
32+
static DEFINE_MUTEX(tiq_list_lock);
3333

3434
/* adapter local summary indicator */
3535
static u8 *tiqdio_alsi;

‎drivers/s390/kvm/kvm_virtio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* The pointer to our (page) of device descriptions.
3434
*/
3535
static void *kvm_devices;
36-
struct work_struct hotplug_work;
36+
static struct work_struct hotplug_work;
3737

3838
struct kvm_device {
3939
struct virtio_device vdev;

‎drivers/s390/net/ctcm_sysfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static ssize_t ctcm_proto_store(struct device *dev,
159159
return count;
160160
}
161161

162-
const char *ctcm_type[] = {
162+
static const char *ctcm_type[] = {
163163
"not a channel",
164164
"CTC/A",
165165
"FICON channel",

‎drivers/s390/net/lcs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ lcs_portno_store (struct device *dev, struct device_attribute *attr, const char
19701970

19711971
static DEVICE_ATTR(portno, 0644, lcs_portno_show, lcs_portno_store);
19721972

1973-
const char *lcs_type[] = {
1973+
static const char *lcs_type[] = {
19741974
"not a channel",
19751975
"2216 parallel",
19761976
"2216 channel",

‎drivers/s390/net/qeth_l3_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ static int qeth_l3_send_checksum_command(struct qeth_card *card)
14151415
return 0;
14161416
}
14171417

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)
14191419
{
14201420
int rc = 0;
14211421

0 commit comments

Comments
 (0)