Skip to content

Commit

Permalink
[PATCH] gfp_t: remaining bits of arch/*
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 28, 2005
1 parent 1ef64e6 commit 53f9fc9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion arch/alpha/kernel/pci_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ pci_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp)
{
void *cpu_addr;
long order = get_order(size);
int gfp = GFP_ATOMIC;
gfp_t gfp = GFP_ATOMIC;

try_again:
cpu_addr = (void *)__get_free_pages(gfp, order);
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/sn/kernel/xpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ xpc_map_bte_errors(bte_result_t error)


static inline void *
xpc_kmalloc_cacheline_aligned(size_t size, int flags, void **base)
xpc_kmalloc_cacheline_aligned(size_t size, gfp_t flags, void **base)
{
/* see if kmalloc will give us cachline aligned memory by default */
*base = kmalloc(size, flags);
Expand Down
4 changes: 2 additions & 2 deletions arch/ppc/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address)
struct page *ptepage;

#ifdef CONFIG_HIGHPTE
int flags = GFP_KERNEL | __GFP_HIGHMEM | __GFP_REPEAT;
gfp_t flags = GFP_KERNEL | __GFP_HIGHMEM | __GFP_REPEAT;
#else
int flags = GFP_KERNEL | __GFP_REPEAT;
gfp_t flags = GFP_KERNEL | __GFP_REPEAT;
#endif

ptepage = alloc_pages(flags, 0);
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/solaris/socksys.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ IPPROTO_EGP, IPPROTO_PUP, IPPROTO_UDP, IPPROTO_IDP, IPPROTO_RAW,

#else

extern void * mykmalloc(size_t s, int gfp);
extern void * mykmalloc(size_t s, gfp_t gfp);
extern void mykfree(void *);

#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/solaris/timod.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static char * page = NULL ;

#else

void * mykmalloc(size_t s, int gfp)
void * mykmalloc(size_t s, gfp_t gfp)
{
static char * page;
static size_t free;
Expand Down
2 changes: 1 addition & 1 deletion arch/um/kernel/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void paging_init(void)
#endif
}

struct page *arch_validate(struct page *page, int mask, int order)
struct page *arch_validate(struct page *page, gfp_t mask, int order)
{
unsigned long addr, zero = 0;
int i;
Expand Down
2 changes: 1 addition & 1 deletion arch/um/kernel/process_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void free_stack(unsigned long stack, int order)
unsigned long alloc_stack(int order, int atomic)
{
unsigned long page;
int flags = GFP_KERNEL;
gfp_t flags = GFP_KERNEL;

if (atomic)
flags = GFP_ATOMIC;
Expand Down
2 changes: 1 addition & 1 deletion include/asm-um/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ extern unsigned long uml_physmem;
#define pfn_valid(pfn) ((pfn) < max_mapnr)
#define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v)))

extern struct page *arch_validate(struct page *page, int mask, int order);
extern struct page *arch_validate(struct page *page, gfp_t mask, int order);
#define HAVE_ARCH_VALIDATE

extern void arch_free_page(struct page *page, int order);
Expand Down

0 comments on commit 53f9fc9

Please sign in to comment.