Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ba748d22
Commit
ba748d22
authored
Mar 03, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: warn about RAM pages in ioremap()
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
320a6b2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
arch/x86/mm/ioremap.c
arch/x86/mm/ioremap.c
+4
-2
No files found.
arch/x86/mm/ioremap.c
View file @
ba748d22
...
@@ -149,9 +149,11 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
...
@@ -149,9 +149,11 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
for
(
pfn
=
phys_addr
>>
PAGE_SHIFT
;
for
(
pfn
=
phys_addr
>>
PAGE_SHIFT
;
(
pfn
<<
PAGE_SHIFT
)
<
last_addr
;
pfn
++
)
{
(
pfn
<<
PAGE_SHIFT
)
<
last_addr
;
pfn
++
)
{
if
(
page_is_ram
(
pfn
)
&&
pfn_valid
(
pfn
)
&&
int
is_ram
=
page_is_ram
(
pfn
);
!
PageReserved
(
pfn_to_page
(
pfn
)))
if
(
is_ram
&&
pfn_valid
(
pfn
)
&&
!
PageReserved
(
pfn_to_page
(
pfn
)))
return
NULL
;
return
NULL
;
WARN_ON_ONCE
(
is_ram
);
}
}
switch
(
mode
)
{
switch
(
mode
)
{
...
...
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