Skip to content

Commit

Permalink
memblock: Remove obsolete accessors
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Aug 5, 2010
1 parent 719c151 commit 1e2b904
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions include/linux/memblock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 1e2b904

Please sign in to comment.