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
d475dd45
Commit
d475dd45
authored
Apr 17, 2003
by
Christoph Hellwig
Committed by
Jeff Garzik
Apr 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: make devfs_generate_path static
There's just one caller in fs/devfs/base.c left.
parent
d9c70898
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
fs/devfs/base.c
fs/devfs/base.c
+1
-2
include/linux/devfs_fs_kernel.h
include/linux/devfs_fs_kernel.h
+0
-6
No files found.
fs/devfs/base.c
View file @
d475dd45
...
...
@@ -1747,7 +1747,7 @@ void devfs_remove(const char *fmt, ...)
* else a negative error code.
*/
int
devfs_generate_path
(
devfs_handle_t
de
,
char
*
path
,
int
buflen
)
static
int
devfs_generate_path
(
devfs_handle_t
de
,
char
*
path
,
int
buflen
)
{
int
pos
;
#define NAMEOF(de) ( (de)->mode ? (de)->name : (de)->u.name )
...
...
@@ -1867,7 +1867,6 @@ EXPORT_SYMBOL(devfs_unregister);
EXPORT_SYMBOL
(
devfs_mk_symlink
);
EXPORT_SYMBOL
(
devfs_mk_dir
);
EXPORT_SYMBOL
(
devfs_remove
);
EXPORT_SYMBOL
(
devfs_generate_path
);
/**
...
...
include/linux/devfs_fs_kernel.h
View file @
d475dd45
...
...
@@ -31,7 +31,6 @@ extern devfs_handle_t devfs_mk_dir(const char *fmt, ...)
__attribute__
((
format
(
printf
,
1
,
2
)));
extern
void
devfs_remove
(
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
extern
int
devfs_generate_path
(
devfs_handle_t
de
,
char
*
path
,
int
buflen
);
extern
int
devfs_register_tape
(
const
char
*
name
);
extern
void
devfs_unregister_tape
(
int
num
);
extern
void
devfs_create_partitions
(
struct
gendisk
*
dev
);
...
...
@@ -66,11 +65,6 @@ static inline devfs_handle_t devfs_mk_dir(const char *fmt, ...)
static
inline
void
devfs_remove
(
const
char
*
fmt
,
...)
{
}
static
inline
int
devfs_generate_path
(
devfs_handle_t
de
,
char
*
path
,
int
buflen
)
{
return
-
ENOSYS
;
}
static
inline
int
devfs_register_tape
(
devfs_handle_t
de
)
{
return
-
1
;
...
...
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