netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atm: fix horizon init section usage
@ 2006-10-23  2:13 Randy Dunlap
  2006-10-23  3:39 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Randy Dunlap @ 2006-10-23  2:13 UTC (permalink / raw)
  To: netdev; +Cc: chas, davem

From: Randy Dunlap <randy.dunlap@oracle.com>

hrz_init() is called from the probe function, which is __devinit
and could be called after init.

WARNING: drivers/atm/horizon.o - Section mismatch: reference to .init.text:.hrz_init from .text between '.hrz_probe' (at offset 0x4054) and '.hrz_remove_one'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---

 drivers/atm/horizon.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -Naurp linux-2619-rc2g4/drivers/atm/horizon.c~atm_hrz_section linux-2619-rc2g4/drivers/atm/horizon.c
--- linux-2619-rc2g4/drivers/atm/horizon.c~atm_hrz_section	2006-10-20 17:37:52.822837000 -0700
+++ linux-2619-rc2g4/drivers/atm/horizon.c	2006-10-21 22:36:53.373243000 -0700
@@ -1845,7 +1845,8 @@ static u16 __init read_bia (const hrz_de
 
 /********** initialise a card **********/
 
-static int __init hrz_init (hrz_dev * dev) {
+static int hrz_init (hrz_dev * dev)
+{
   int onefivefive;
   
   u16 chan;


---

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

end of thread, other threads:[~2006-10-24 23:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23  2:13 [PATCH] atm: fix horizon init section usage Randy Dunlap
2006-10-23  3:39 ` David Miller
2006-10-23  4:32   ` Randy.Dunlap
2006-10-23  4:39     ` David Miller
2006-10-23 16:31       ` Randy.Dunlap
2006-10-24 23:17         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).