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
5a380b96
Commit
5a380b96
authored
Apr 09, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Fix up some warnings in the pagetable allocation code
parent
65598a7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
include/asm-ppc64/pgalloc.h
include/asm-ppc64/pgalloc.h
+7
-5
No files found.
include/asm-ppc64/pgalloc.h
View file @
5a380b96
...
@@ -55,11 +55,12 @@ pmd_free(pmd_t *pmd)
...
@@ -55,11 +55,12 @@ pmd_free(pmd_t *pmd)
free_page
((
unsigned
long
)
pmd
);
free_page
((
unsigned
long
)
pmd
);
}
}
#define pmd_populate(mm, pmd, pte) pmd_set(pmd, pte)
#define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte)
#define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte)
#define pmd_populate(mm, pmd, pte_page) \
pmd_populate_kernel(mm, pmd, page_address(pte_page))
static
inline
pte_t
*
static
inline
pte_t
*
pte_alloc_one
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
pte_alloc_one
_kernel
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
{
{
int
count
=
0
;
int
count
=
0
;
pte_t
*
pte
;
pte_t
*
pte
;
...
@@ -77,15 +78,16 @@ pte_alloc_one(struct mm_struct *mm, unsigned long addr)
...
@@ -77,15 +78,16 @@ pte_alloc_one(struct mm_struct *mm, unsigned long addr)
return
pte
;
return
pte
;
}
}
#define pte_alloc_one_kernel(mm, address) pte_alloc_one((mm), (address))
#define pte_alloc_one(mm, address) \
virt_to_page(pte_alloc_one_kernel((mm), (address)))
static
inline
void
static
inline
void
pte_free
(
pte_t
*
pte
)
pte_free
_kernel
(
pte_t
*
pte
)
{
{
free_page
((
unsigned
long
)
pte
);
free_page
((
unsigned
long
)
pte
);
}
}
#define pte_free
_kernel(pte) pte_free(pte
)
#define pte_free
(pte_page) pte_free_kernel(page_address(pte_page)
)
#define check_pgt_cache() do { } while (0)
#define check_pgt_cache() do { } while (0)
...
...
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