Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198012
b: refs/heads/master
c: bac49ce
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and Pekka Enberg committed May 19, 2010
1 parent b540fe2 commit 747e090
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f0ce8b3dd667dca720a47869f8110c298f0e5b8
refs/heads/master: bac49ce42a33f53beb7cf04e9a0600879d6265ca
8 changes: 8 additions & 0 deletions trunk/include/linux/slob_def.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#ifndef __LINUX_SLOB_DEF_H
#define __LINUX_SLOB_DEF_H

#ifndef ARCH_KMALLOC_MINALIGN
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long)
#endif

#ifndef ARCH_SLAB_MINALIGN
#define ARCH_SLAB_MINALIGN __alignof__(unsigned long)
#endif

void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);

static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep,
Expand Down
8 changes: 0 additions & 8 deletions trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,6 @@ static void slob_free(void *block, int size)
* End of slob allocator proper. Begin kmem_cache_alloc and kmalloc frontend.
*/

#ifndef ARCH_KMALLOC_MINALIGN
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long)
#endif

#ifndef ARCH_SLAB_MINALIGN
#define ARCH_SLAB_MINALIGN __alignof__(unsigned long)
#endif

void *__kmalloc_node(size_t size, gfp_t gfp, int node)
{
unsigned int *m;
Expand Down

0 comments on commit 747e090

Please sign in to comment.