lkml.org 
[lkml]   [2002]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] fix .text.exit compile error in sstfb.c
Hi,

I got the following error at the final linking stage of 2.4.19-pre10
(updated to ChangeSet 1.546 from Marcelo's BK repository):

<-- snip -->

...
drivers/video/video.o: In function `sstfb_remove':
drivers/video/video.o(.text+0x6255c): undefined reference to `local
symbols in discarded section .text.exit'

<-- snip -->


The problem is that sstfb_remove is __devexit and calls sst_shutdown which
is __exit. This causes the error above when CONFIG_HOTPLUG is set.

I suggest the following fix:


--- drivers/video/sstfb.c.old Sun Jun 16 14:22:03 2002
+++ drivers/video/sstfb.c Sun Jun 16 14:23:56 2002
@@ -1694,7 +1694,7 @@
return 1;
}

-static void __exit sst_shutdown(struct sstfb_info *sst_info)
+static void __devexit sst_shutdown(struct sstfb_info *sst_info)
{
struct pci_dev * sst_dev = sst_info->dev;
struct pll_timing gfx_timings;
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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.038 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site