Re: [PATCH] gfp_t

From: Rasmus Andersen (rasmus@jaquet.dk)
Date: Thu Sep 26 2002 - 13:59:24 EST


On Thu, Sep 26, 2002 at 02:35:30PM +1000, Rusty Russell wrote:
> This creates a mythical gfp_t for passing gfp states, and conversion
> macros __GFP() and __UNGFP(), to give warnings, It's 55k, so
> compressed and attached.

This breaks ntfs/malloc.h which is doing the following:
49: return __vmalloc(size, GFP_NOFS | __GFP_HIGHMEM, PAGE_KERNEL);

This turns into
        
          return __vmalloc(size, ((struct gfp_arg *)(0x10 | 0x40 |
                0x80)) | 0x02, ((pgprot_t) { (__PAGE_KERNEL) } ));
                
which '|' is not happy with.

Regards,
  Rasmus



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:27 EST