From: Johannes Stezenbach <js@linuxtv.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
len.brown@intel.com, Paul Bristow <paul@paulbristow.net>,
mpm@selenic.com, B.Zolnierkiewicz@elka.pw.edu.pl,
dtor_core@ameritech.net, kkeil@suse.de,
linux-dvb-maintainer@linuxtv.org, philb@gnu.org, gregkh@suse.de,
dwmw2@infradead.org, rusty@rustcorp.com.au
Subject: Re: [v4l-dvb-maintainer] Re: kbuild: Section mismatch warnings
Date: Sun, 19 Feb 2006 13:59:24 +0100 [thread overview]
Message-ID: <20060219125924.GB5896@linuxtv.org> (raw)
In-Reply-To: <20060219113630.GA5032@mars.ravnborg.org>
On Sun, Feb 19, 2006, Sam Ravnborg wrote:
> On Fri, Feb 17, 2006 at 11:47:02PM +0100, Sam Ravnborg wrote:
> > Background:
> > I have introduced a build-time check for section mismatch and it showed
> > up a great number of warnings.
> > Below is the result of the run on a 2.6.16-rc1 tree (which my kbuild
> > tree is based upon) based on a 'make allmodconfig'
>
> Updated list of warnings below. This time on a rc4 tree and with
> referenced symbol included in warning (when possible).
> This is with my latest kbuild tree which will show up in next -mm.
...
> WARNING: drivers/media/dvb/ttpci/dvb-ttpci.o - Section mismatch: reference to .init.text:av7110_ir_init from .text between 'av7110_attach' (at offset 0xcaa6) and 'av7110_detach'
> WARNING: drivers/media/dvb/ttpci/dvb-ttpci.o - Section mismatch: reference to .exit.text:av7110_ir_exit from .text between 'av7110_detach' (at offset 0xcbc5) and 'av7110_irq'
These seem to be legitimate and point to the right place.
Patch attached.
Thanks,
Johannes
---
dvb: fix __init/__exit section references in av7110 driver
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
diff -r 24e38b947b8a linux/drivers/media/dvb/ttpci/av7110.c
--- a/linux/drivers/media/dvb/ttpci/av7110.c Sat Feb 18 10:41:07 2006 -0200
+++ b/linux/drivers/media/dvb/ttpci/av7110.c Sun Feb 19 13:54:37 2006 +0100
@@ -2476,7 +2476,8 @@ static int frontend_init(struct av7110 *
* The same behaviour of missing VSYNC can be duplicated on budget
* cards, by seting DD1_INIT trigger mode 7 in 3rd nibble.
*/
-static int av7110_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_data *pci_ext)
+static int __devinit av7110_attach(struct saa7146_dev* dev,
+ struct saa7146_pci_extension_data *pci_ext)
{
const int length = TS_WIDTH * TS_HEIGHT;
struct pci_dev *pdev = dev->pci;
@@ -2826,7 +2827,7 @@ err_kfree_0:
goto out;
}
-static int av7110_detach(struct saa7146_dev* saa)
+static int __devexit av7110_detach(struct saa7146_dev* saa)
{
struct av7110 *av7110 = saa->ext_priv;
dprintk(4, "%p\n", av7110);
@@ -2973,7 +2974,7 @@ static struct saa7146_extension av7110_e
.module = THIS_MODULE,
.pci_tbl = &pci_tbl[0],
.attach = av7110_attach,
- .detach = av7110_detach,
+ .detach = __devexit_p(av7110_detach),
.irq_mask = MASK_19 | MASK_03 | MASK_10,
.irq_func = av7110_irq,
diff -r 24e38b947b8a linux/drivers/media/dvb/ttpci/av7110_ir.c
--- a/linux/drivers/media/dvb/ttpci/av7110_ir.c Sat Feb 18 10:41:07 2006 -0200
+++ b/linux/drivers/media/dvb/ttpci/av7110_ir.c Sun Feb 19 13:54:37 2006 +0100
@@ -208,7 +208,7 @@ static void ir_handler(struct av7110 *av
}
-int __init av7110_ir_init(struct av7110 *av7110)
+int __devexit av7110_ir_init(struct av7110 *av7110)
{
static struct proc_dir_entry *e;
@@ -248,7 +248,7 @@ int __init av7110_ir_init(struct av7110
}
-void __exit av7110_ir_exit(struct av7110 *av7110)
+void __devexit av7110_ir_exit(struct av7110 *av7110)
{
int i;
next prev parent reply other threads:[~2006-02-19 12:59 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-17 21:48 kbuild: Sam Ravnborg
2006-02-17 22:47 ` kbuild: Section mismatch warnings Sam Ravnborg
2006-02-17 23:32 ` Adrian Bunk
2006-02-17 23:38 ` Sam Ravnborg
2006-02-17 23:56 ` Adrian Bunk
2006-02-18 0:14 ` Nicholas Miell
2006-02-18 21:25 ` Sam Ravnborg
2006-02-18 0:09 ` Greg KH
2006-02-18 0:48 ` David Brownell
2006-02-18 0:57 ` Greg KH
2006-02-18 20:32 ` David Brownell
2006-02-19 0:21 ` Sam Ravnborg
2006-02-22 5:09 ` Greg KH
2006-02-18 0:49 ` Dmitry Torokhov
2006-02-18 12:14 ` Sam Ravnborg
2006-02-18 13:34 ` Russell King
2006-02-19 11:36 ` Sam Ravnborg
2006-02-19 12:59 ` Johannes Stezenbach [this message]
2006-02-19 13:19 ` [v4l-dvb-maintainer] " Sam Ravnborg
2006-02-19 13:30 ` Johannes Stezenbach
2006-02-25 15:31 ` Adrian Bunk
2006-02-19 14:18 ` Sam Ravnborg
2006-02-19 22:38 ` Rusty Russell
2006-02-19 22:44 ` Sam Ravnborg
2006-02-18 22:12 ` kbuild: Andi Kleen
2006-02-18 22:38 ` kbuild: Sam Ravnborg
2006-02-18 23:41 ` kbuild: Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060219125924.GB5896@linuxtv.org \
--to=js@linuxtv.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=dtor_core@ameritech.net \
--cc=dwmw2@infradead.org \
--cc=gregkh@suse.de \
--cc=kkeil@suse.de \
--cc=len.brown@intel.com \
--cc=linux-dvb-maintainer@linuxtv.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
--cc=paul@paulbristow.net \
--cc=philb@gnu.org \
--cc=rusty@rustcorp.com.au \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®