Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: use printk_once

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Marcin Slusarz and committed by
Paul Mundt
922b0dc5 e290861f

+1 -5
+1 -5
arch/sh/mm/ioremap_64.c
··· 94 94 static void __iomem *shmedia_alloc_io(unsigned long phys, unsigned long size, 95 95 const char *name, unsigned long flags) 96 96 { 97 - static int printed_full; 98 97 struct xresource *xres; 99 98 struct resource *res; 100 99 char *tack; ··· 107 108 tack = xres->xname; 108 109 res = &xres->xres; 109 110 } else { 110 - if (!printed_full) { 111 - printk(KERN_NOTICE "%s: done with statics, " 111 + printk_once(KERN_NOTICE "%s: done with statics, " 112 112 "switching to kmalloc\n", __func__); 113 - printed_full = 1; 114 - } 115 113 tlen = strlen(name); 116 114 tack = kmalloc(sizeof(struct resource) + tlen + 1, GFP_KERNEL); 117 115 if (!tack)