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
4d71332e
Commit
4d71332e
authored
Aug 12, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/scsi/sr.c: Fix casting between pointer and int.
parent
d5fffb38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/scsi/sr.c
drivers/scsi/sr.c
+2
-2
No files found.
drivers/scsi/sr.c
View file @
4d71332e
...
@@ -734,7 +734,7 @@ static ssize_t sr_device_kdev_read(struct device *driverfs_dev,
...
@@ -734,7 +734,7 @@ static ssize_t sr_device_kdev_read(struct device *driverfs_dev,
char
*
page
,
size_t
count
,
loff_t
off
)
char
*
page
,
size_t
count
,
loff_t
off
)
{
{
kdev_t
kdev
;
kdev_t
kdev
;
kdev
.
value
=
(
int
)
driverfs_dev
->
driver_data
;
kdev
.
value
=
(
int
)
(
long
)
driverfs_dev
->
driver_data
;
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
}
}
static
DEVICE_ATTR
(
kdev
,
"kdev"
,
S_IRUGO
,
sr_device_kdev_read
,
NULL
);
static
DEVICE_ATTR
(
kdev
,
"kdev"
,
S_IRUGO
,
sr_device_kdev_read
,
NULL
);
...
@@ -800,7 +800,7 @@ void sr_finish()
...
@@ -800,7 +800,7 @@ void sr_finish()
&
SCp
->
device
->
sdev_driverfs_dev
;
&
SCp
->
device
->
sdev_driverfs_dev
;
SCp
->
cdi
.
cdrom_driverfs_dev
.
bus
=
&
scsi_driverfs_bus_type
;
SCp
->
cdi
.
cdrom_driverfs_dev
.
bus
=
&
scsi_driverfs_bus_type
;
SCp
->
cdi
.
cdrom_driverfs_dev
.
driver_data
=
SCp
->
cdi
.
cdrom_driverfs_dev
.
driver_data
=
(
void
*
)
__mkdev
(
MAJOR_NR
,
i
);
(
void
*
)
(
long
)
__mkdev
(
MAJOR_NR
,
i
);
device_register
(
&
SCp
->
cdi
.
cdrom_driverfs_dev
);
device_register
(
&
SCp
->
cdi
.
cdrom_driverfs_dev
);
device_create_file
(
&
SCp
->
cdi
.
cdrom_driverfs_dev
,
device_create_file
(
&
SCp
->
cdi
.
cdrom_driverfs_dev
,
&
dev_attr_type
);
&
dev_attr_type
);
...
...
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