Re: [PATCH] Fix .altinstructions linking failures

Andi Kleen (ak@muc.de)
Tue, 6 May 2003 21:56:14 +0200


On Tue, May 06, 2003 at 06:44:41PM +0200, Adrian Bunk wrote:
> <-- snip -->
>
> ...
> #ifdef MODULE
> static void proc_cpia_destroy(void)
> {
> remove_proc_entry("cpia", 0);
> }
> #endif /*MODULE*/
> ...
> static void __exit cpia_exit(void)
> {
> #ifdef CONFIG_PROC_FS
> proc_cpia_destroy();
> #endif
> }

The driver is buggy. The #ifdef MODULE needs to be removed and proc_cpia_destroy
be marked __exit instead, then things will be ok.

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