Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
640bb315
Commit
640bb315
authored
Dec 14, 2002
by
Martin Schwidefsky
Committed by
Linus Torvalds
Dec 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] s390: staticification.
Make some functions and variables static.
parent
00d9867d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
28 deletions
+28
-28
drivers/s390/char/sclp.c
drivers/s390/char/sclp.c
+3
-3
drivers/s390/char/sclp_con.c
drivers/s390/char/sclp_con.c
+4
-4
drivers/s390/char/sclp_rw.c
drivers/s390/char/sclp_rw.c
+1
-1
drivers/s390/char/sclp_tty.c
drivers/s390/char/sclp_tty.c
+2
-2
drivers/s390/net/ctcmain.c
drivers/s390/net/ctcmain.c
+8
-8
drivers/s390/net/lcs.c
drivers/s390/net/lcs.c
+10
-10
No files found.
drivers/s390/char/sclp.c
View file @
640bb315
...
...
@@ -47,7 +47,7 @@ static sccb_mask_t sclp_send_mask;
static
struct
list_head
sclp_reg_list
;
/* sccb queue */
struct
list_head
sclp_req_queue
;
st
atic
st
ruct
list_head
sclp_req_queue
;
/* sccb for unconditional read */
static
struct
sclp_req
sclp_read_req
;
...
...
@@ -448,7 +448,7 @@ sclp_state_change(struct evbuf_header *evbuf)
spin_unlock_irqrestore
(
&
sclp_lock
,
flags
);
}
struct
sclp_register
sclp_state_change_event
=
{
st
atic
st
ruct
sclp_register
sclp_state_change_event
=
{
.
receive_mask
=
EvTyp_StateChange_Mask
,
.
receiver_fn
=
sclp_state_change
};
...
...
@@ -514,7 +514,7 @@ sclp_quiesce(struct evbuf_header *evbuf)
ctrl_alt_del
();
}
struct
sclp_register
sclp_quiesce_event
=
{
st
atic
st
ruct
sclp_register
sclp_quiesce_event
=
{
.
receive_mask
=
EvTyp_SigQuiesce_Mask
,
.
receiver_fn
=
sclp_quiesce
};
...
...
drivers/s390/char/sclp_con.c
View file @
640bb315
...
...
@@ -97,7 +97,7 @@ sclp_console_timeout(unsigned long data)
/*
* Writes the given message to S390 system console
*/
void
static
void
sclp_console_write
(
struct
console
*
console
,
const
char
*
message
,
unsigned
int
count
)
{
...
...
@@ -152,7 +152,7 @@ sclp_console_write(struct console *console, const char *message,
}
/* returns the device number of the SCLP console */
kdev_t
static
kdev_t
sclp_console_device
(
struct
console
*
c
)
{
return
mk_kdev
(
sclp_console_major
,
sclp_console_minor
);
...
...
@@ -163,7 +163,7 @@ sclp_console_device(struct console *c)
* is going to give up. We have to make sure that all buffers
* will be flushed to the SCLP.
*/
void
static
void
sclp_console_unblank
(
void
)
{
unsigned
long
flags
;
...
...
@@ -187,7 +187,7 @@ sclp_console_unblank(void)
* used to register the SCLP console to the kernel and to
* give printk necessary information
*/
struct
console
sclp_console
=
st
atic
st
ruct
console
sclp_console
=
{
.
name
=
sclp_console_name
,
.
write
=
sclp_console_write
,
...
...
drivers/s390/char/sclp_rw.c
View file @
640bb315
...
...
@@ -31,7 +31,7 @@
#define MAX_SCCB_ROOM (PAGE_SIZE - sizeof(struct sclp_buffer))
/* Event type structure for write message and write priority message */
struct
sclp_register
sclp_rw_event
=
{
st
atic
st
ruct
sclp_register
sclp_rw_event
=
{
.
send_mask
=
EvTyp_Msg_Mask
|
EvTyp_PMsgCmd_Mask
};
...
...
drivers/s390/char/sclp_tty.c
View file @
640bb315
...
...
@@ -466,7 +466,7 @@ sclp_tty_flush_buffer(struct tty_struct *tty)
/*
* push input to tty
*/
void
sclp_tty_input
(
unsigned
char
*
buf
,
unsigned
int
count
)
static
void
sclp_tty_input
(
unsigned
char
*
buf
,
unsigned
int
count
)
{
unsigned
int
cchar
;
...
...
@@ -694,7 +694,7 @@ sclp_tty_state_change(struct sclp_register *reg)
{
}
struct
sclp_register
sclp_input_event
=
st
atic
st
ruct
sclp_register
sclp_input_event
=
{
.
receive_mask
=
EvTyp_OpCmd_Mask
|
EvTyp_PMsgCmd_Mask
,
.
state_change_fn
=
sclp_tty_state_change
,
...
...
drivers/s390/net/ctcmain.c
View file @
640bb315
/*
* $Id: ctcmain.c,v 1.
29 2002/12/06 12:31:38 cohuck
Exp $
* $Id: ctcmain.c,v 1.
30 2002/12/09 13:56:20 aberg
Exp $
*
* CTC / ESCON network driver
*
...
...
@@ -36,7 +36,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* RELEASE-TAG: CTC/ESCON network driver $Revision: 1.
29
$
* RELEASE-TAG: CTC/ESCON network driver $Revision: 1.
30
$
*
*/
...
...
@@ -279,7 +279,7 @@ static void
print_banner
(
void
)
{
static
int
printed
=
0
;
char
vbuf
[]
=
"$Revision: 1.
29
$"
;
char
vbuf
[]
=
"$Revision: 1.
30
$"
;
char
*
version
=
vbuf
;
if
(
printed
)
...
...
@@ -2821,7 +2821,7 @@ ctc_remove_files(struct device *dev)
* @returns 0 on success, !0 on failure.
*/
int
static
int
ctc_probe_device
(
struct
ccwgroup_device
*
cgdev
)
{
struct
ctc_priv
*
priv
;
...
...
@@ -2864,7 +2864,7 @@ ctc_probe_device(struct ccwgroup_device *cgdev)
*
* @returns 0 on success, !0 on failure.
*/
int
static
int
ctc_new_device
(
struct
ccwgroup_device
*
cgdev
)
{
char
read_id
[
CTC_ID_SIZE
];
...
...
@@ -2941,7 +2941,7 @@ ctc_new_device(struct ccwgroup_device *cgdev)
*
* @returns 0 on success, !0 on failure.
*/
int
static
int
ctc_shutdown_device
(
struct
ccwgroup_device
*
cgdev
)
{
struct
ctc_priv
*
priv
;
...
...
@@ -2975,7 +2975,7 @@ ctc_shutdown_device(struct ccwgroup_device *cgdev)
}
int
static
int
ctc_remove_device
(
struct
ccwgroup_device
*
cgdev
)
{
struct
ctc_priv
*
priv
;
...
...
@@ -2991,7 +2991,7 @@ ctc_remove_device(struct ccwgroup_device *cgdev)
return
0
;
}
struct
ccwgroup_driver
ctc_group_driver
=
{
st
atic
st
ruct
ccwgroup_driver
ctc_group_driver
=
{
.
name
=
"ctc"
,
.
max_slaves
=
2
,
.
driver_id
=
0xC3E3C3
,
...
...
drivers/s390/net/lcs.c
View file @
640bb315
...
...
@@ -11,7 +11,7 @@
* Frank Pavlic (pavlic@de.ibm.com) and
* Martin Schwidefsky <schwidefsky@de.ibm.com>
*
* $Revision: 1.4
1 $ $Date: 2002/12/06 12:42:01
$
* $Revision: 1.4
2 $ $Date: 2002/12/09 13:55:28
$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -59,7 +59,7 @@
/**
* initialization string for output
*/
#define VERSION_LCS_C "$Revision: 1.4
1
$"
#define VERSION_LCS_C "$Revision: 1.4
2
$"
static
const
char
*
version
=
"LCS driver ("
VERSION_LCS_C
"/"
VERSION_LCS_H
")"
;
...
...
@@ -1576,7 +1576,7 @@ lcs_get_frames_cb(struct lcs_channel *channel, struct lcs_buffer *buffer)
/**
* get network statistics for ifconfig and other user programs
*/
struct
net_device_stats
*
st
atic
st
ruct
net_device_stats
*
lcs_getstats
(
struct
net_device
*
dev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1590,7 +1590,7 @@ lcs_getstats(struct net_device *dev)
* stop lcs device
* This function will be called by user doing ifconfig xxx down
*/
int
static
int
lcs_stop_device
(
struct
net_device
*
dev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1612,7 +1612,7 @@ lcs_stop_device(struct net_device *dev)
* start lcs device and make it runnable
* This function will be called by user doing ifconfig xxx up
*/
int
static
int
lcs_open_device
(
struct
net_device
*
dev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1678,7 +1678,7 @@ static DEVICE_ATTR(portno, 0644, lcs_portno_show, lcs_portno_store);
/**
* lcs_probe_device is called on establishing a new ccwgroup_device.
*/
int
static
int
lcs_probe_device
(
struct
ccwgroup_device
*
ccwgdev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1714,7 +1714,7 @@ lcs_probe_device(struct ccwgroup_device *ccwgdev)
/**
* lcs_new_device will be called by setting the group device online.
*/
int
static
int
lcs_new_device
(
struct
ccwgroup_device
*
ccwgdev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1794,7 +1794,7 @@ lcs_new_device(struct ccwgroup_device *ccwgdev)
/**
* lcs_shutdown_device, called when setting the group device offline.
*/
int
static
int
lcs_shutdown_device
(
struct
ccwgroup_device
*
ccwgdev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1810,7 +1810,7 @@ lcs_shutdown_device(struct ccwgroup_device *ccwgdev)
/**
* lcs_remove_device, free buffers and card
*/
int
static
int
lcs_remove_device
(
struct
ccwgroup_device
*
ccwgdev
)
{
struct
lcs_card
*
card
;
...
...
@@ -1828,7 +1828,7 @@ lcs_remove_device(struct ccwgroup_device *ccwgdev)
/**
* LCS ccwgroup driver registration
*/
struct
ccwgroup_driver
lcs_group_driver
=
{
st
atic
st
ruct
ccwgroup_driver
lcs_group_driver
=
{
.
name
=
"lcs"
,
.
max_slaves
=
2
,
.
driver_id
=
0xD3C3E2
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment