public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* disable modules and get "multiple definition" errors?
@ 2008-08-22  1:28 Kevin Diggs
  2008-08-22  8:39 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Diggs @ 2008-08-22  1:28 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

	I am trying to do some compile testing of my cpufreq driver. If
I disable modules I am getting multiple definition errors of inline
functions:

inline volatile unsigned int get_PLL(void)
{
unsigned int ret;

         __asm__ __volatile__ ("mfspr %0,%1":
                 "=r"(ret):
                 "i"(SPRN_HID1)
         );

         return ret;
}

arch/powerpc/kernel/cpu/pll_if.o(.text+0x1c): In function `get_PLL':
: multiple definition of `get_PLL'
arch/powerpc/kernel/cpu/cpufreq/built-in.o(.text+0x0): first defined here

What am I doing wrong?

kevin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-22  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22  1:28 disable modules and get "multiple definition" errors? Kevin Diggs
2008-08-22  8:39 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox