Re: Build error on 2.5.20 under unstable debian

From: Adrian Bunk (bunk@fs.tum.de)
Date: Wed Jun 05 2002 - 15:08:26 EST


On Wed, 5 Jun 2002, Joseph Pingenot wrote:

> Ah. What does __devexit_p() do? It looks to be some sort of macro,
> doing a cast?
>...

No, look at the definition in include/linux/init.h:

<-- snip -->

...
/* Functions marked as __devexit may be discarded at kernel link time, depending
   on config options. Newer versions of binutils detect references from
   retained sections to discarded sections and flag an error. Pointers to
   __devexit functions must use __devexit_p(function_name), the wrapper will
   insert either the function_name or NULL, depending on the config options.
 */
#if defined(MODULE) || defined(CONFIG_HOTPLUG)
#define __devexit_p(x) x
#else
#define __devexit_p(x) NULL
#endif
...

<-- snip -->

A bit more of explanation is in Documentation/pci.txt.

> -Joseph

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

- 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/



This archive was generated by hypermail 2b29 : Fri Jun 07 2002 - 22:00:25 EST