]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Blackfin: flat: Use %x to format u32
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 16 Jul 2017 18:26:28 +0000 (20:26 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 17 Jul 2017 18:40:33 +0000 (11:40 -0700)
commitcb0fbbf22aa1e0ffcef3f4a055b75a5b17e01ca5
tree592f73b8fb0fb43e8f151b669a324e12c440ba88
parent87b2c3fc63175bb32c96d4ec58152d4fdd5a4ae1
Blackfin: flat: Use %x to format u32

Several variables had their types changed from unsigned long to u32,
but the printk()-style format to print them wasn't updated, leading to:

    arch/blackfin/kernel/flat.c: In function 'bfin_get_addr_from_rp':
    arch/blackfin/kernel/flat.c:35:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u32' [-Wformat]
    arch/blackfin/kernel/flat.c: In function 'bfin_put_addr_at_rp':
    arch/blackfin/kernel/flat.c:80:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u32' [-Wformat]

Fixes: 468138d78510688f ("binfmt_flat: flat_{get,put}_addr_from_rp() should be able to fail")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/blackfin/kernel/flat.c