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
503aceb1
Commit
503aceb1
authored
Apr 01, 2003
by
Christoph Hellwig
Committed by
Linus Torvalds
Apr 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove kdevname() before someone starts using it again
parent
d52fc052
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
15 deletions
+0
-15
fs/libfs.c
fs/libfs.c
+0
-11
include/linux/fs.h
include/linux/fs.h
+0
-1
include/linux/kdev_t.h
include/linux/kdev_t.h
+0
-2
kernel/ksyms.c
kernel/ksyms.c
+0
-1
No files found.
fs/libfs.c
View file @
503aceb1
...
@@ -332,14 +332,3 @@ int simple_commit_write(struct file *file, struct page *page,
...
@@ -332,14 +332,3 @@ int simple_commit_write(struct file *file, struct page *page,
set_page_dirty
(
page
);
set_page_dirty
(
page
);
return
0
;
return
0
;
}
}
/*
* Print device name (in decimal, hexadecimal or symbolic)
* Note: returns pointer to static data!
*/
const
char
*
kdevname
(
kdev_t
dev
)
{
static
char
buffer
[
32
];
sprintf
(
buffer
,
"%02x:%02x"
,
major
(
dev
),
minor
(
dev
));
return
buffer
;
}
include/linux/fs.h
View file @
503aceb1
...
@@ -1076,7 +1076,6 @@ extern struct block_device *open_bdev_excl(const char *, int, int, void *);
...
@@ -1076,7 +1076,6 @@ extern struct block_device *open_bdev_excl(const char *, int, int, void *);
extern
void
close_bdev_excl
(
struct
block_device
*
,
int
);
extern
void
close_bdev_excl
(
struct
block_device
*
,
int
);
extern
const
char
*
cdevname
(
kdev_t
);
extern
const
char
*
cdevname
(
kdev_t
);
extern
const
char
*
kdevname
(
kdev_t
);
extern
void
init_special_inode
(
struct
inode
*
,
umode_t
,
dev_t
);
extern
void
init_special_inode
(
struct
inode
*
,
umode_t
,
dev_t
);
/* Invalid inode operations -- fs/bad_inode.c */
/* Invalid inode operations -- fs/bad_inode.c */
...
...
include/linux/kdev_t.h
View file @
503aceb1
...
@@ -101,8 +101,6 @@ static inline kdev_t val_to_kdev(unsigned int val)
...
@@ -101,8 +101,6 @@ static inline kdev_t val_to_kdev(unsigned int val)
#define NODEV (mk_kdev(0,0))
#define NODEV (mk_kdev(0,0))
#define B_FREE (mk_kdev(0xff,0xff))
#define B_FREE (mk_kdev(0xff,0xff))
extern
const
char
*
kdevname
(
kdev_t
);
/* note: returns pointer to static data! */
static
inline
int
kdev_same
(
kdev_t
dev1
,
kdev_t
dev2
)
static
inline
int
kdev_same
(
kdev_t
dev1
,
kdev_t
dev2
)
{
{
return
dev1
.
value
==
dev2
.
value
;
return
dev1
.
value
==
dev2
.
value
;
...
...
kernel/ksyms.c
View file @
503aceb1
...
@@ -511,7 +511,6 @@ EXPORT_SYMBOL(sscanf);
...
@@ -511,7 +511,6 @@ EXPORT_SYMBOL(sscanf);
EXPORT_SYMBOL
(
vsprintf
);
EXPORT_SYMBOL
(
vsprintf
);
EXPORT_SYMBOL
(
vsnprintf
);
EXPORT_SYMBOL
(
vsnprintf
);
EXPORT_SYMBOL
(
vsscanf
);
EXPORT_SYMBOL
(
vsscanf
);
EXPORT_SYMBOL
(
kdevname
);
EXPORT_SYMBOL
(
__bdevname
);
EXPORT_SYMBOL
(
__bdevname
);
EXPORT_SYMBOL
(
cdevname
);
EXPORT_SYMBOL
(
cdevname
);
EXPORT_SYMBOL
(
simple_strtoull
);
EXPORT_SYMBOL
(
simple_strtoull
);
...
...
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