Skip to content

Commit

Permalink
add alloc_pages_exact alloc_size attributes
Browse files Browse the repository at this point in the history
Edited-by: Thibaut Sautereau <[email protected]>
Signed-off-by: Daniel Micay <[email protected]>
  • Loading branch information
thestinger authored and anthraxx committed Jan 6, 2021
1 parent 8d9ce20 commit bb680b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/gfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,9 @@ static inline struct page *alloc_pages(gfp_t gfp_mask, unsigned int order)
extern unsigned long __get_free_pages(gfp_t gfp_mask, unsigned int order);
extern unsigned long get_zeroed_page(gfp_t gfp_mask);

void *alloc_pages_exact(size_t size, gfp_t gfp_mask);
void *alloc_pages_exact(size_t size, gfp_t gfp_mask) __attribute__((alloc_size(1)));
void free_pages_exact(void *virt, size_t size);
void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask);
void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask) __attribute__((alloc_size(2)));

#define __get_free_page(gfp_mask) \
__get_free_pages((gfp_mask), 0)
Expand Down

0 comments on commit bb680b2

Please sign in to comment.