forked from Minki/linux
SLUB: Fix coding style violations
This fixes most of the obvious coding style violations in mm/slub.c as reported by checkpatch. Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Christoph Lameter <clameter@sgi.com>
This commit is contained in:
parent
7c2e132c54
commit
064287807c
20
mm/slub.c
20
mm/slub.c
@ -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 @@ debug:
|
||||
*
|
||||
* 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 @@ debug:
|
||||
* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user