diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-09-09 14:04:18 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-09-17 09:14:42 -0700 |
commit | 2d291e902791e1c8d72bc223b6f063bbb27a1280 (patch) | |
tree | f4c5093b1d51929ee8f09b60708125c66f2c4f7e /arch/powerpc/include/asm/elf.h | |
parent | 32dde0f975e430f00f03f80f7dbab585d8b45eab (diff) | |
download | talos-obmc-linux-2d291e902791e1c8d72bc223b6f063bbb27a1280.tar.gz talos-obmc-linux-2d291e902791e1c8d72bc223b6f063bbb27a1280.zip |
Fix compile failure with non modular builds
Commit deac93df26b20cf8438339b5935b5f5643bc30c9 ("lib: Correct printk
%pF to work on all architectures") broke the non modular builds by
moving an essential function into modules.c. Fix this by moving it
out again and into asm/sections.h as an inline. To do this, the
definition of struct ppc64_opd_entry has been lifted out of modules.c
and put in asm/elf.h where it belongs.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/elf.h')
-rw-r--r-- | arch/powerpc/include/asm/elf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/elf.h b/arch/powerpc/include/asm/elf.h index 80d1f399ee51..64c6ee22eefd 100644 --- a/arch/powerpc/include/asm/elf.h +++ b/arch/powerpc/include/asm/elf.h @@ -409,6 +409,13 @@ do { \ /* Keep this the last entry. */ #define R_PPC64_NUM 107 +/* There's actually a third entry here, but it's unused */ +struct ppc64_opd_entry +{ + unsigned long funcaddr; + unsigned long r2; +}; + #ifdef __KERNEL__ #ifdef CONFIG_SPU_BASE |