--- zzzz-none-000/linux-2.6.39.4/include/linux/slab.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/slab.h 2021-11-10 13:38:17.000000000 +0000 @@ -76,6 +76,14 @@ # define SLAB_FAILSLAB 0x00000000UL #endif +#if defined(CONFIG_DEBUG_SLAB_AVM_LITE) +#define SLAB_STORE_USER_AND_TIME 0x00020000UL /* DEBUG_SLAB_AVM_LITE: Store the last owner for oom-analyzing */ + +#if defined(CONFIG_DEBUG_SLAB) +#error conflict DEBUG_SLAB versus DEBUG_SLAB_AVM_LITE +#endif +#endif/*--- #if defined(CONFIG_DEBUG_SLAB_AVM_LITE) ---*/ + /* The following flags affect the page allocator grouping pages by mobility */ #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */ #define SLAB_TEMPORARY SLAB_RECLAIM_ACCOUNT /* Objects are short-lived */ @@ -238,12 +246,12 @@ * if available. Equivalent to kmalloc() in the non-NUMA single-node * case. */ -static inline void *kmalloc_node(size_t size, gfp_t flags, int node) +static inline void *kmalloc_node(size_t size, gfp_t flags, int node __attribute__((unused))) { return kmalloc(size, flags); } -static inline void *__kmalloc_node(size_t size, gfp_t flags, int node) +static inline void *__kmalloc_node(size_t size, gfp_t flags, int node __attribute__((unused))) { return __kmalloc(size, flags); } @@ -251,7 +259,7 @@ void *kmem_cache_alloc(struct kmem_cache *, gfp_t); static inline void *kmem_cache_alloc_node(struct kmem_cache *cachep, - gfp_t flags, int node) + gfp_t flags, int node __attribute__((unused))) { return kmem_cache_alloc(cachep, flags); }