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
d558c497
Commit
d558c497
authored
Nov 25, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] extern inline -> static inline
As per CodingStyle
parent
e81fb460
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
27 deletions
+28
-27
drivers/isdn/pcbit/capi.h
drivers/isdn/pcbit/capi.h
+1
-2
drivers/media/video/bw-qcam.c
drivers/media/video/bw-qcam.c
+6
-6
drivers/media/video/pms.c
drivers/media/video/pms.c
+2
-2
fs/hpfs/hpfs_fn.h
fs/hpfs/hpfs_fn.h
+19
-17
No files found.
drivers/isdn/pcbit/capi.h
View file @
d558c497
...
...
@@ -63,8 +63,7 @@ extern int capi_disc_resp(struct pcbit_chan *chan, struct sk_buff **skb);
extern
int
capi_decode_debug_188
(
u_char
*
hdr
,
ushort
hdrlen
);
#endif
extern
__inline__
struct
pcbit_chan
*
static
inline
struct
pcbit_chan
*
capi_channel
(
struct
pcbit_dev
*
dev
,
struct
sk_buff
*
skb
)
{
ushort
callref
;
...
...
drivers/media/video/bw-qcam.c
View file @
d558c497
...
...
@@ -89,27 +89,27 @@ MODULE_PARM(yieldlines,"i");
MODULE_PARM
(
video_nr
,
"i"
);
#endif
extern
__inline__
int
read_lpstatus
(
struct
qcam_device
*
q
)
static
inline
int
read_lpstatus
(
struct
qcam_device
*
q
)
{
return
parport_read_status
(
q
->
pport
);
}
extern
__inline__
int
read_lpcontrol
(
struct
qcam_device
*
q
)
static
inline
int
read_lpcontrol
(
struct
qcam_device
*
q
)
{
return
parport_read_control
(
q
->
pport
);
}
extern
__inline__
int
read_lpdata
(
struct
qcam_device
*
q
)
static
inline
int
read_lpdata
(
struct
qcam_device
*
q
)
{
return
parport_read_data
(
q
->
pport
);
}
extern
__inline__
void
write_lpdata
(
struct
qcam_device
*
q
,
int
d
)
static
inline
void
write_lpdata
(
struct
qcam_device
*
q
,
int
d
)
{
parport_write_data
(
q
->
pport
,
d
);
}
extern
__inline__
void
write_lpcontrol
(
struct
qcam_device
*
q
,
int
d
)
static
inline
void
write_lpcontrol
(
struct
qcam_device
*
q
,
int
d
)
{
parport_write_control
(
q
->
pport
,
d
);
}
...
...
@@ -506,7 +506,7 @@ void qc_set(struct qcam_device *q)
the supplied buffer. It returns the number of bytes read,
or -1 on error. */
extern
__inline__
int
qc_readbytes
(
struct
qcam_device
*
q
,
char
buffer
[])
static
inline
int
qc_readbytes
(
struct
qcam_device
*
q
,
char
buffer
[])
{
int
ret
=
1
;
unsigned
int
hi
,
lo
;
...
...
drivers/media/video/pms.c
View file @
d558c497
...
...
@@ -69,12 +69,12 @@ static int video_nr = -1;
extern
__inline__
void
mvv_write
(
u8
index
,
u8
value
)
static
inline
void
mvv_write
(
u8
index
,
u8
value
)
{
outw
(
index
|
(
value
<<
8
),
io_port
);
}
extern
__inline__
u8
mvv_read
(
u8
index
)
static
inline
u8
mvv_read
(
u8
index
)
{
outb
(
index
,
io_port
);
return
inb
(
data_port
);
...
...
fs/hpfs/hpfs_fn.h
View file @
d558c497
...
...
@@ -75,7 +75,7 @@ struct quad_buffer_head {
/* The b-tree down pointer from a dir entry */
extern
inline
dnode_secno
de_down_pointer
(
struct
hpfs_dirent
*
de
)
static
inline
dnode_secno
de_down_pointer
(
struct
hpfs_dirent
*
de
)
{
CHKCOND
(
de
->
down
,(
"HPFS: de_down_pointer: !de->down
\n
"
));
return
*
(
dnode_secno
*
)
((
void
*
)
de
+
de
->
length
-
4
);
...
...
@@ -83,14 +83,14 @@ extern inline dnode_secno de_down_pointer (struct hpfs_dirent *de)
/* The first dir entry in a dnode */
extern
inline
struct
hpfs_dirent
*
dnode_first_de
(
struct
dnode
*
dnode
)
static
inline
struct
hpfs_dirent
*
dnode_first_de
(
struct
dnode
*
dnode
)
{
return
(
void
*
)
dnode
->
dirent
;
}
/* The end+1 of the dir entries */
extern
inline
struct
hpfs_dirent
*
dnode_end_de
(
struct
dnode
*
dnode
)
static
inline
struct
hpfs_dirent
*
dnode_end_de
(
struct
dnode
*
dnode
)
{
CHKCOND
(
dnode
->
first_free
>=
0x14
&&
dnode
->
first_free
<=
0xa00
,(
"HPFS: dnode_end_de: dnode->first_free = %d
\n
"
,(
int
)
dnode
->
first_free
));
return
(
void
*
)
dnode
+
dnode
->
first_free
;
...
...
@@ -98,58 +98,60 @@ extern inline struct hpfs_dirent *dnode_end_de (struct dnode *dnode)
/* The dir entry after dir entry de */
extern
inline
struct
hpfs_dirent
*
de_next_de
(
struct
hpfs_dirent
*
de
)
static
inline
struct
hpfs_dirent
*
de_next_de
(
struct
hpfs_dirent
*
de
)
{
CHKCOND
(
de
->
length
>=
0x20
&&
de
->
length
<
0x800
,(
"HPFS: de_next_de: de->length = %d
\n
"
,(
int
)
de
->
length
));
return
(
void
*
)
de
+
de
->
length
;
}
extern
inline
struct
extended_attribute
*
fnode_ea
(
struct
fnode
*
fnode
)
static
inline
struct
extended_attribute
*
fnode_ea
(
struct
fnode
*
fnode
)
{
return
(
struct
extended_attribute
*
)((
char
*
)
fnode
+
fnode
->
ea_offs
);
}
extern
inline
struct
extended_attribute
*
fnode_end_ea
(
struct
fnode
*
fnode
)
static
inline
struct
extended_attribute
*
fnode_end_ea
(
struct
fnode
*
fnode
)
{
return
(
struct
extended_attribute
*
)((
char
*
)
fnode
+
fnode
->
ea_offs
+
fnode
->
ea_size_s
);
}
extern
inline
struct
extended_attribute
*
next_ea
(
struct
extended_attribute
*
ea
)
static
inline
struct
extended_attribute
*
next_ea
(
struct
extended_attribute
*
ea
)
{
return
(
struct
extended_attribute
*
)((
char
*
)
ea
+
5
+
ea
->
namelen
+
ea
->
valuelen
);
}
extern
inline
secno
ea_sec
(
struct
extended_attribute
*
ea
)
static
inline
secno
ea_sec
(
struct
extended_attribute
*
ea
)
{
return
*
(
secno
*
)((
char
*
)
ea
+
9
+
ea
->
namelen
);
}
extern
inline
secno
ea_len
(
struct
extended_attribute
*
ea
)
static
inline
secno
ea_len
(
struct
extended_attribute
*
ea
)
{
return
*
(
secno
*
)((
char
*
)
ea
+
5
+
ea
->
namelen
);
}
extern
inline
char
*
ea_data
(
struct
extended_attribute
*
ea
)
static
inline
char
*
ea_data
(
struct
extended_attribute
*
ea
)
{
return
(
char
*
)((
char
*
)
ea
+
5
+
ea
->
namelen
);
}
extern
inline
unsigned
de_size
(
int
namelen
,
secno
down_ptr
)
static
inline
unsigned
de_size
(
int
namelen
,
secno
down_ptr
)
{
return
((
0x1f
+
namelen
+
3
)
&
~
3
)
+
(
down_ptr
?
4
:
0
);
}
extern
inline
void
copy_de
(
struct
hpfs_dirent
*
dst
,
struct
hpfs_dirent
*
src
)
static
inline
void
copy_de
(
struct
hpfs_dirent
*
dst
,
struct
hpfs_dirent
*
src
)
{
int
a
=
dst
->
down
;
int
n
=
dst
->
not_8x3
;
int
a
;
int
n
;
if
(
!
dst
||
!
src
)
return
;
a
=
dst
->
down
;
n
=
dst
->
not_8x3
;
memcpy
((
char
*
)
dst
+
2
,
(
char
*
)
src
+
2
,
28
);
dst
->
down
=
a
;
dst
->
not_8x3
=
n
;
}
extern
inline
unsigned
tstbits
(
unsigned
*
bmp
,
unsigned
b
,
unsigned
n
)
static
inline
unsigned
tstbits
(
unsigned
*
bmp
,
unsigned
b
,
unsigned
n
)
{
int
i
;
if
((
b
>=
0x4000
)
||
(
b
+
n
-
1
>=
0x4000
))
return
n
;
...
...
@@ -314,13 +316,13 @@ extern struct address_space_operations hpfs_aops;
* local time (HPFS) to GMT (Unix)
*/
extern
inline
time_t
local_to_gmt
(
struct
super_block
*
s
,
time_t
t
)
static
inline
time_t
local_to_gmt
(
struct
super_block
*
s
,
time_t
t
)
{
extern
struct
timezone
sys_tz
;
return
t
+
sys_tz
.
tz_minuteswest
*
60
+
hpfs_sb
(
s
)
->
sb_timeshift
;
}
extern
inline
time_t
gmt_to_local
(
struct
super_block
*
s
,
time_t
t
)
static
inline
time_t
gmt_to_local
(
struct
super_block
*
s
,
time_t
t
)
{
extern
struct
timezone
sys_tz
;
return
t
-
sys_tz
.
tz_minuteswest
*
60
-
hpfs_sb
(
s
)
->
sb_timeshift
;
...
...
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