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
1e2b9040
Commit
1e2b9040
authored
Aug 04, 2010
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memblock: Remove obsolete accessors
Signed-off-by:
Benjamin Herrenschmidt
<
benh@kernel.crashing.org
>
parent
719c1514
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
include/linux/memblock.h
include/linux/memblock.h
+0
-23
No files found.
include/linux/memblock.h
View file @
1e2b9040
...
...
@@ -64,29 +64,6 @@ extern int memblock_find(struct memblock_region *res);
extern
void
memblock_dump_all
(
void
);
/* Obsolete accessors */
static
inline
u64
memblock_size_bytes
(
struct
memblock_type
*
type
,
unsigned
long
region_nr
)
{
return
type
->
regions
[
region_nr
].
size
;
}
static
inline
u64
memblock_size_pages
(
struct
memblock_type
*
type
,
unsigned
long
region_nr
)
{
return
memblock_size_bytes
(
type
,
region_nr
)
>>
PAGE_SHIFT
;
}
static
inline
u64
memblock_start_pfn
(
struct
memblock_type
*
type
,
unsigned
long
region_nr
)
{
return
type
->
regions
[
region_nr
].
base
>>
PAGE_SHIFT
;
}
static
inline
u64
memblock_end_pfn
(
struct
memblock_type
*
type
,
unsigned
long
region_nr
)
{
return
memblock_start_pfn
(
type
,
region_nr
)
+
memblock_size_pages
(
type
,
region_nr
);
}
/*
* pfn conversion functions
*
...
...
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