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
7aa413de
Commit
7aa413de
authored
Jun 19, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86, MM: virtual address debug, cleanups
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
a1bf9631
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
include/linux/mmdebug.h
include/linux/mmdebug.h
+2
-2
mm/vmalloc.c
mm/vmalloc.c
+4
-2
No files found.
include/linux/mmdebug.h
View file @
7aa413de
...
...
@@ -6,13 +6,13 @@
#ifdef CONFIG_DEBUG_VM
#define VM_BUG_ON(cond) BUG_ON(cond)
#else
#define VM_BUG_ON(cond) do { } while(0)
#define VM_BUG_ON(cond) do { } while
(0)
#endif
#ifdef CONFIG_DEBUG_VIRTUAL
#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
#else
#define VIRTUAL_BUG_ON(cond) do { } while(0)
#define VIRTUAL_BUG_ON(cond) do { } while
(0)
#endif
#endif
mm/vmalloc.c
View file @
7aa413de
...
...
@@ -180,8 +180,10 @@ struct page *vmalloc_to_page(const void *vmalloc_addr)
pmd_t
*
pmd
;
pte_t
*
ptep
,
pte
;
/* XXX we might need to change this if we add VIRTUAL_BUG_ON for
* architectures that do not vmalloc module space */
/*
* XXX we might need to change this if we add VIRTUAL_BUG_ON for
* architectures that do not vmalloc module space
*/
VIRTUAL_BUG_ON
(
!
is_vmalloc_addr
(
vmalloc_addr
)
&&
!
is_module_address
(
addr
));
...
...
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