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
999eb9ee
Commit
999eb9ee
authored
Feb 11, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Feb 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix ppc64 wanings in fs/partitions/check.c
cast dev_t when printing
parent
ebca3272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/partitions/check.c
fs/partitions/check.c
+1
-1
No files found.
fs/partitions/check.c
View file @
999eb9ee
...
@@ -297,7 +297,7 @@ static ssize_t part_dev_read(struct hd_struct * p, char *page)
...
@@ -297,7 +297,7 @@ static ssize_t part_dev_read(struct hd_struct * p, char *page)
struct
gendisk
*
disk
=
container_of
(
p
->
kobj
.
parent
,
struct
gendisk
,
kobj
);
struct
gendisk
*
disk
=
container_of
(
p
->
kobj
.
parent
,
struct
gendisk
,
kobj
);
int
part
=
p
-
disk
->
part
+
1
;
int
part
=
p
-
disk
->
part
+
1
;
dev_t
base
=
MKDEV
(
disk
->
major
,
disk
->
first_minor
);
dev_t
base
=
MKDEV
(
disk
->
major
,
disk
->
first_minor
);
return
sprintf
(
page
,
"%04x
\n
"
,
base
+
part
);
return
sprintf
(
page
,
"%04x
\n
"
,
(
unsigned
)(
base
+
part
)
);
}
}
static
ssize_t
part_start_read
(
struct
hd_struct
*
p
,
char
*
page
)
static
ssize_t
part_start_read
(
struct
hd_struct
*
p
,
char
*
page
)
{
{
...
...
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