Re: [2.6 patch] ISDN PCBIT: #ifdef MODULE some code

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 08/15/03

  • Next message: Nguyen, Tom L: "RE: Update MSI Patches"
    Date:	Fri, 15 Aug 2003 22:46:14 +0200
    To: Rusty Russell <rusty@rustcorp.com.au>
    
    

    On Sat, Aug 16, 2003 at 02:51:20AM +1000, Rusty Russell wrote:
    > In message <20030728202500.GM25402@fs.tum.de> you write:
    > > I got the following error at the final linkage of 2.6.0-test2 if
    > > CONFIG_ISDN_DRV_PCBIT is compiled statically:
    > >
    > > <-- snip -->
    > >
    > > ...
    > > LD .tmp_vmlinux1
    > > ...
    > > drivers/built-in.o(.exit.text+0xe183): In function `pcbit_exit':
    > > : undefined reference to `pcbit_terminate'
    > > make: *** [.tmp_vmlinux1] Error 1
    >
    > AFAICT This is also broken in 2.4.22-rc2, which makes me wonder if
    > anyone actually cares about this driver?

    It doesn't cause a compile error in 2.4.

    This is inside an __exit function and in 2.4 __exit functions are
    discarded at link time when compiling a driver statically.

    Due to changes Andi Kleen did in 2.6 __exit functions are no longer
    discarded at link time when compiling a driver statically (they are
    discarded at runtime).

    > Taken anyway, for both.
    > Rusty.

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Nguyen, Tom L: "RE: Update MSI Patches"

    Relevant Pages

    • Re: Weirdness with suspending jobs in 2.6.9-rc3
      ... >> It doesn't depend on which version I'm compiling, ... >> kernel I'm actually running. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kernel compile
      ... It doesn't matter what the system you are compiling on is running. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Compilation error - SGI Prism
      ... I want to interface a logitech quickcam express webcam on my SGI Prism ... I downloaded "spca5xx" driver. ... Compiling drivers/usb/spcadecoder.c ... Building SPCA5XX driver for 2.5/2.6 kernel. ...
      (comp.sys.sgi.admin)
    • Re: pxa25x exception on resume (Windows CE5)
      ... I'm now compiling without the touch driver... ... driver that is not yet powered up and then creates a priority ... I could take out the touchdriver but then....how to go to suspend ... Terminating thread 83d92400 ...
      (microsoft.public.windowsce.platbuilder)
    • Re: NFS on 2.6.0-test9:
      ... This weekend I spent compiling to find the ... NFS Server 2.2beta47) kernel 2.2.16. ... > like it might be a de4x5 driver. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)