All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Mahoney <jeffm@suse.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, Rusty Russell <rusty@rustcorp.com.au>
Subject: [patch 6/6] virtio: fix section mismatch warnings
Date: Tue, 12 Jan 2010 19:49:01 -0500	[thread overview]
Message-ID: <20100113004939.463885987@suse.com> (raw)
In-Reply-To: 20100113004855.550486769@suse.com

[-- Attachment #1: patches.rpmify/virtio-fix-section-mismatch-warnings --]
[-- Type: text/plain, Size: 2164 bytes --]

 This patch fixes the following warnings by renaming the driver structures
 to be suffixed with _driver.

 WARNING: drivers/virtio/virtio_balloon.o(.data+0x88): Section mismatch in reference from the variable virtio_balloon to the function .devexit.text:virtballoon_remove()

 WARNING: drivers/char/hw_random/virtio-rng.o(.data+0x88): Section mismatch in reference from the variable virtio_rng to the function .devexit.text:virtrng_remove()

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 drivers/char/hw_random/virtio-rng.c |    6 +++---
 drivers/virtio/virtio_balloon.c     |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -114,7 +114,7 @@ static struct virtio_device_id id_table[
 	{ 0 },
 };
 
-static struct virtio_driver virtio_rng = {
+static struct virtio_driver virtio_rng_driver = {
 	.driver.name =	KBUILD_MODNAME,
 	.driver.owner =	THIS_MODULE,
 	.id_table =	id_table,
@@ -124,12 +124,12 @@ static struct virtio_driver virtio_rng =
 
 static int __init init(void)
 {
-	return register_virtio_driver(&virtio_rng);
+	return register_virtio_driver(&virtio_rng_driver);
 }
 
 static void __exit fini(void)
 {
-	unregister_virtio_driver(&virtio_rng);
+	unregister_virtio_driver(&virtio_rng_driver);
 }
 module_init(init);
 module_exit(fini);
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -266,7 +266,7 @@ static void __devexit virtballoon_remove
 
 static unsigned int features[] = { VIRTIO_BALLOON_F_MUST_TELL_HOST };
 
-static struct virtio_driver virtio_balloon = {
+static struct virtio_driver virtio_balloon_driver = {
 	.feature_table = features,
 	.feature_table_size = ARRAY_SIZE(features),
 	.driver.name =	KBUILD_MODNAME,
@@ -279,12 +279,12 @@ static struct virtio_driver virtio_ballo
 
 static int __init init(void)
 {
-	return register_virtio_driver(&virtio_balloon);
+	return register_virtio_driver(&virtio_balloon_driver);
 }
 
 static void __exit fini(void)
 {
-	unregister_virtio_driver(&virtio_balloon);
+	unregister_virtio_driver(&virtio_balloon_driver);
 }
 module_init(init);
 module_exit(fini);



  parent reply	other threads:[~2010-01-13  1:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13  0:48 [patch 0/6] Section mismatch fixes Jeff Mahoney
2010-01-13  0:48 ` [patch 2/6] hugetlb: Fix section mismatches Jeff Mahoney
2010-01-13  0:48   ` Jeff Mahoney
2010-01-13  9:28   ` David Rientjes
2010-01-13  9:28     ` David Rientjes
2010-01-13 14:29     ` Jeff Mahoney
2010-01-13 14:29       ` Jeff Mahoney
2010-01-13 15:03     ` [patch] hugetlb: Fix section mismatches #2 Jeff Mahoney
2010-01-13 15:03       ` Jeff Mahoney
2010-01-13 20:51       ` David Rientjes
2010-01-13 20:51         ` David Rientjes
2010-01-13 15:40   ` [patch 2/6] hugetlb: Fix section mismatches Lee Schermerhorn
2010-01-13 15:40     ` Lee Schermerhorn
2010-01-13 15:42     ` Jeff Mahoney
2010-01-13 15:42       ` Jeff Mahoney
2010-01-13  0:48 ` [patch 4/6] acpi: Fix section mismatch Jeff Mahoney
2010-01-13  3:58   ` Alex Chiang
2010-01-13  0:49 ` Jeff Mahoney [this message]
2010-01-13 10:57   ` [patch 6/6] virtio: fix section mismatch warnings Rusty Russell
2010-01-14  1:07     ` Andrew Morton
2010-01-14  2:01       ` Jeff Mahoney

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=20100113004939.463885987@suse.com \
    --to=jeffm@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    /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.