All of lore.kernel.org
 help / color / mirror / Atom feed
From: <gregkh@suse.de>
To: sam@ravnborg.org, greg@kroah.com, gregkh@suse.de,
	linux-kernel@vger.kernel.org
Subject: patch pci-fix-section-mismatch-warning.patch added to gregkh-2.6 tree
Date: Fri, 02 Mar 2007 15:27:44 -0800	[thread overview]
Message-ID: <20070302232833.BEB80C526CD@imap.suse.de> (raw)
In-Reply-To: <20070302225904.GB22555@uranus.ravnborg.org>


This is a note to let you know that I've just added the patch titled

     Subject: pci: fix section mismatch warning

to my gregkh-2.6 tree.  Its filename is

     pci-fix-section-mismatch-warning.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From sam@ravnborg.org  Fri Mar  2 15:06:44 2007
From: Sam Ravnborg <sam@ravnborg.org>
Date: Fri, 2 Mar 2007 23:59:04 +0100
Subject: pci: fix section mismatch warning
To: Greg KH <greg@kroah.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Message-ID: <20070302225904.GB22555@uranus.ravnborg.org>
Content-Disposition: inline


drivers/pci/search.c caused following section mismatch warning
(if compiled with CONFIG_HOTPLUG=n):

WARNING: drivers/pci/built-in.o - Section mismatch: reference to .init.text: from .text.pci_find_bus after 'pci_find_bus' (at offset 0x24)

This was due to pci_find_bus() calling a function marked __devinit.
Fix was to remove the __devinit from the offending function.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/pci/search.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- gregkh-2.6.orig/drivers/pci/search.c
+++ gregkh-2.6/drivers/pci/search.c
@@ -15,7 +15,7 @@
 
 DECLARE_RWSEM(pci_bus_sem);
 
-static struct pci_bus * __devinit
+static struct pci_bus *
 pci_do_find_bus(struct pci_bus* bus, unsigned char busnr)
 {
 	struct pci_bus* child;


Patches currently in gregkh-2.6 which might be from sam@ravnborg.org are


  reply	other threads:[~2007-03-02 23:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27  9:27 [PATCH,RFC] pci: do not mark exported functions as __devinit Sam Ravnborg
2007-03-02 20:47 ` Greg KH
2007-03-02 22:55   ` Sam Ravnborg
2007-03-02 22:59   ` [PATCH] pci: fix section mismatch warning Sam Ravnborg
2007-03-02 23:27     ` gregkh [this message]
2007-03-02 23:02   ` [PATCH,RFC] pci: do not mark exported functions as __devinit Sam Ravnborg
2007-03-02 23:34     ` Greg KH

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=20070302232833.BEB80C526CD@imap.suse.de \
    --to=gregkh@suse.de \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.