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
10451084
Commit
10451084
authored
Mar 16, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Mar 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix x86_64 compile warning in bad_page()
On x84_64, page->flags is no longer unsigned long.
parent
ce5bc050
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
mm/page_alloc.c
mm/page_alloc.c
+1
-1
mm/slab.c
mm/slab.c
+2
-1
No files found.
mm/page_alloc.c
View file @
10451084
...
@@ -73,7 +73,7 @@ static void bad_page(const char *function, struct page *page)
...
@@ -73,7 +73,7 @@ static void bad_page(const char *function, struct page *page)
{
{
printk
(
"Bad page state at %s (in process '%s', page %p)
\n
"
,
function
,
current
->
comm
,
page
);
printk
(
"Bad page state at %s (in process '%s', page %p)
\n
"
,
function
,
current
->
comm
,
page
);
printk
(
"flags:0x%08lx mapping:%p mapped:%d count:%d
\n
"
,
printk
(
"flags:0x%08lx mapping:%p mapped:%d count:%d
\n
"
,
page
->
flags
,
page
->
mapping
,
(
unsigned
long
)
page
->
flags
,
page
->
mapping
,
page_mapped
(
page
),
page_count
(
page
));
page_mapped
(
page
),
page_count
(
page
));
printk
(
"Backtrace:
\n
"
);
printk
(
"Backtrace:
\n
"
);
dump_stack
();
dump_stack
();
...
...
mm/slab.c
View file @
10451084
...
@@ -2885,7 +2885,8 @@ void ptrinfo(unsigned long addr)
...
@@ -2885,7 +2885,8 @@ void ptrinfo(unsigned long addr)
#endif
#endif
page
=
virt_to_page
((
void
*
)
addr
);
page
=
virt_to_page
((
void
*
)
addr
);
printk
(
"struct page at %p, flags %lxh.
\n
"
,
page
,
page
->
flags
);
printk
(
"struct page at %p, flags %08lx
\n
"
,
page
,
(
unsigned
long
)
page
->
flags
);
if
(
PageSlab
(
page
))
{
if
(
PageSlab
(
page
))
{
kmem_cache_t
*
c
;
kmem_cache_t
*
c
;
struct
slab
*
s
;
struct
slab
*
s
;
...
...
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