Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06428780 authored by Pekka Enberg's avatar Pekka Enberg Committed by Christoph Lameter
Browse files

SLUB: Fix coding style violations



This fixes most of the obvious coding style violations in mm/slub.c as
reported by checkpatch.

Acked-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
parent 7c2e132c
Loading
Loading
Loading
Loading
+23 −23
Original line number Diff line number Diff line
@@ -357,22 +357,22 @@ static void print_section(char *text, u8 *addr, unsigned int length)
			printk(KERN_ERR "%8s 0x%p: ", text, addr + i);
			newline = 0;
		}
		printk(" %02x", addr[i]);
		printk(KERN_CONT " %02x", addr[i]);
		offset = i % 16;
		ascii[offset] = isgraph(addr[i]) ? addr[i] : '.';
		if (offset == 15) {
			printk(" %s\n",ascii);
			printk(KERN_CONT " %s\n", ascii);
			newline = 1;
		}
	}
	if (!newline) {
		i %= 16;
		while (i < 16) {
			printk("   ");
			printk(KERN_CONT "   ");
			ascii[i] = ' ';
			i++;
		}
		printk(" %s\n", ascii);
		printk(KERN_CONT " %s\n", ascii);
	}
}

@@ -903,8 +903,7 @@ static int free_debug_processing(struct kmem_cache *s, struct page *page,
				"SLUB <none>: no slab for object 0x%p.\n",
						object);
			dump_stack();
		}
		else
		} else
			object_err(s, page, object,
					"page slab pointer corrupt.");
		goto fail;
@@ -1542,7 +1541,7 @@ static void *__slab_alloc(struct kmem_cache *s,
 *
 * Otherwise we can simply pick the next object from the lockless free list.
 */
static void __always_inline *slab_alloc(struct kmem_cache *s,
static __always_inline void *slab_alloc(struct kmem_cache *s,
		gfp_t gfpflags, int node, void *addr)
{
	void **object;
@@ -1650,7 +1649,7 @@ static void __slab_free(struct kmem_cache *s, struct page *page,
 * If fastpath is not possible then fall back to __slab_free where we deal
 * with all sorts of special processing.
 */
static void __always_inline slab_free(struct kmem_cache *s,
static __always_inline void slab_free(struct kmem_cache *s,
			struct page *page, void *x, void *addr)
{
	void **object = (void *)x;
@@ -3055,8 +3054,9 @@ static int __cpuinit slab_cpuup_callback(struct notifier_block *nfb,
	return NOTIFY_OK;
}

static struct notifier_block __cpuinitdata slab_notifier =
	{ &slab_cpuup_callback, NULL, 0 };
static struct notifier_block __cpuinitdata slab_notifier = {
	&slab_cpuup_callback, NULL, 0
};

#endif