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
Kirill Smelkov
linux
Commits
54b20953
Commit
54b20953
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove dasd_get_kdev
Al pointed out that it's unused after my last series of devfs patches.
parent
5f390ed0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
drivers/s390/block/dasd_devmap.c
drivers/s390/block/dasd_devmap.c
+0
-21
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_int.h
+0
-1
No files found.
drivers/s390/block/dasd_devmap.c
View file @
54b20953
...
...
@@ -405,27 +405,6 @@ dasd_device_from_devindex(int devindex)
return
device
;
}
/*
* Return kdev for a dasd device.
*/
kdev_t
dasd_get_kdev
(
struct
dasd_device
*
device
)
{
struct
dasd_devmap
*
devmap
;
int
major
,
minor
;
int
devno
;
devno
=
_ccw_device_get_device_number
(
device
->
cdev
);
devmap
=
dasd_devmap_from_devno
(
devno
);
if
(
devmap
==
NULL
)
return
NODEV
;
major
=
dasd_gendisk_index_major
(
devmap
->
devindex
);
if
(
major
<
0
)
return
NODEV
;
minor
=
devmap
->
devindex
%
DASD_PER_MAJOR
;
return
mk_kdev
(
major
,
minor
);
}
/*
* Create a dasd device structure for cdev.
*/
...
...
drivers/s390/block/dasd_int.h
View file @
54b20953
...
...
@@ -470,7 +470,6 @@ void dasd_devmap_exit(void);
struct
dasd_device
*
dasd_create_device
(
struct
ccw_device
*
);
void
dasd_delete_device
(
struct
dasd_device
*
);
kdev_t
dasd_get_kdev
(
struct
dasd_device
*
);
struct
dasd_device
*
dasd_device_from_devindex
(
int
);
int
dasd_parse
(
void
);
...
...
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