Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
7aa413de
Commit
7aa413de
authored
16 years ago
by
Ingo Molnar
Browse files
Options
Downloads
Patches
Plain Diff
x86, MM: virtual address debug, cleanups
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
a1bf9631
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/linux/mmdebug.h
+2
-2
2 additions, 2 deletions
include/linux/mmdebug.h
mm/vmalloc.c
+4
-2
4 additions, 2 deletions
mm/vmalloc.c
with
6 additions
and
4 deletions
include/linux/mmdebug.h
+
2
−
2
View file @
7aa413de
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
#ifdef CONFIG_DEBUG_VM
#ifdef CONFIG_DEBUG_VM
#define VM_BUG_ON(cond) BUG_ON(cond)
#define VM_BUG_ON(cond) BUG_ON(cond)
#else
#else
#define VM_BUG_ON(cond) do { } while(0)
#define VM_BUG_ON(cond) do { } while
(0)
#endif
#endif
#ifdef CONFIG_DEBUG_VIRTUAL
#ifdef CONFIG_DEBUG_VIRTUAL
#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
#else
#else
#define VIRTUAL_BUG_ON(cond) do { } while(0)
#define VIRTUAL_BUG_ON(cond) do { } while
(0)
#endif
#endif
#endif
#endif
This diff is collapsed.
Click to expand it.
mm/vmalloc.c
+
4
−
2
View file @
7aa413de
...
@@ -180,8 +180,10 @@ struct page *vmalloc_to_page(const void *vmalloc_addr)
...
@@ -180,8 +180,10 @@ struct page *vmalloc_to_page(const void *vmalloc_addr)
pmd_t
*
pmd
;
pmd_t
*
pmd
;
pte_t
*
ptep
,
pte
;
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
)
&&
VIRTUAL_BUG_ON
(
!
is_vmalloc_addr
(
vmalloc_addr
)
&&
!
is_module_address
(
addr
));
!
is_module_address
(
addr
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment