lib: Correct printk %pF to work on all architectures
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 4 Sep 2008 01:43:36 +0000 (20:43 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Sep 2008 18:51:15 +0000 (11:51 -0700)
commitdeac93df26b20cf8438339b5935b5f5643bc30c9
tree8e67edd505e4a8bde380c724b67ce9ca98b8ee91
parent7ae115b4f50d3c5824f1a15e572b5de9d1b06d35
lib: Correct printk %pF to work on all architectures

It was introduced by "vsprintf: add support for '%pS' and '%pF' pointer
formats" in commit 0fe1ef24f7bd0020f29ffe287dfdb9ead33ca0b2.  However,
the current way its coded doesn't work on parisc64.  For two reasons: 1)
parisc isn't in the #ifdef and 2) parisc has a different format for
function descriptors

Make dereference_function_descriptor() more accommodating by allowing
architecture overrides.  I put the three overrides (for parisc64, ppc64
and ia64) in arch/kernel/module.c because that's where the kernel
internal linker which knows how to deal with function descriptors sits.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Tony Luck <tony.luck@intel.com>
Acked-by: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/include/asm/sections.h
arch/ia64/kernel/module.c
arch/parisc/kernel/module.c
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/module_64.c
include/asm-generic/sections.h
include/asm-parisc/sections.h
lib/vsprintf.c