public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devexit fixes in i82092.c
@ 2002-03-16  0:57 Anders Gustafsson
  2002-03-16  1:00 ` Linus Torvalds
  0 siblings, 1 reply; 27+ messages in thread
From: Anders Gustafsson @ 2002-03-16  0:57 UTC (permalink / raw)
  To: arjanv; +Cc: linux-kernel, torvalds

Hi,

this patch fixes "undefined reference to `local symbols in discarded
section .text.exit'" linking error.

-- 

//anders/g

--- linux-2.5.7-pre1/drivers/pcmcia/i82092.c	Fri Nov  9 22:45:35 2001
+++ linux-2.5.7-pre1-reiser/drivers/pcmcia/i82092.c	Sat Mar 16 01:39:42 2002
@@ -42,7 +42,7 @@
 	name:           "i82092aa",
 	id_table:       i82092aa_pci_ids,
 	probe:          i82092aa_pci_probe,
-	remove:         i82092aa_pci_remove,
+	remove:         __devexit_p(i82092aa_pci_remove),
 	suspend:        NULL,
 	resume:         NULL 
 };
@@ -88,7 +88,7 @@
 static int socket_count;  /* shortcut */                                  	                                	
 
 
-static int __init i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
+static int __devinit i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
 {
 	unsigned char configbyte;
 	int i;
@@ -160,7 +160,7 @@
 	return 0;
 }
 
-static void __exit i82092aa_pci_remove(struct pci_dev *dev)
+static void __devexit i82092aa_pci_remove(struct pci_dev *dev)
 {
 	enter("i82092aa_pci_remove");
 	

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [PATCH] devexit fixes in i82092.c
@ 2002-03-24 23:36 Alexander Stohr
  0 siblings, 0 replies; 27+ messages in thread
From: Alexander Stohr @ 2002-03-24 23:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds, arjanv, andersg

I thought Linux is an OS of choices.
Calling folks for removing an opition
is not really what i do think is good.

There might be still situations where
it makes sense stripping of the exit
codings of the kernel.

Namely i would classify diskless embedded
systems (like consumer devices), that are 
allowed to shut down instantly by just
powering them off, to be such cases.

It would make life much easier for people
that do program for such targets if the
already existing optional macros would
stay in the source as they are now.

> On Sat, 16 Mar 2002, Anders Gustafsson wrote:
> >
> > this patch fixes "undefined reference to `local symbols in discarded
> > section .text.exit'" linking error.
> 
> Looking more at this, I actually think that the _real_ fix is to call all
> drivers exit functions at kernel shutdown, and not discard the exit
> section when linking into the tree.
> 
> That, together with the device tree, automatically gives us the
> _correct_ shutdown sequence, soemthing we don't have right now.
> 
> Anybody willing to look into this, and get rid of that __devexit_p()
> thing?
> 
>                 Linus


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

end of thread, other threads:[~2002-03-25 19:22 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-16  0:57 [PATCH] devexit fixes in i82092.c Anders Gustafsson
2002-03-16  1:00 ` Linus Torvalds
2002-03-16  2:25   ` Jeff Garzik
2002-03-16  7:40     ` Linus Torvalds
2002-03-16  7:51       ` Keith Owens
2002-03-16  8:13         ` Linus Torvalds
2002-03-16  9:00           ` Jeff Garzik
2002-03-16  9:50           ` Keith Owens
2002-03-25 19:15           ` Patrick Mochel
2002-03-16  8:51       ` Jeff Garzik
2002-03-16 17:35         ` Alan Cox
2002-03-16 17:31           ` Jeff Garzik
2002-03-25 19:19           ` Patrick Mochel
2002-03-16  9:40       ` Arjan van de Ven
2002-03-22 15:47         ` Pavel Machek
2002-03-16 10:32       ` David Woodhouse
2002-03-16 19:27     ` Eric W. Biederman
2002-03-16 21:00       ` Alan Cox
2002-03-16 22:03         ` Eric W. Biederman
2002-03-16 22:28           ` Alan Cox
2002-03-16 22:16             ` Eric W. Biederman
2002-03-16 22:26             ` Linus Torvalds
2002-03-16 23:00               ` Eric W. Biederman
2002-03-16 23:15               ` Dave Jones
2002-03-21 15:12                 ` Pavel Machek
2002-03-25 19:02     ` Patrick Mochel
  -- strict thread matches above, loose matches on Subject: below --
2002-03-24 23:36 Alexander Stohr

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