lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 30 Nov 2010 16:24:15 +0800
From:	<Major_Lee@...tron.com>
To:	<linux-kernel@...r.kernel.org>
Cc:	<dan.j.williams@...el.com>, <vinod.koul@...el.com>
Subject: [PATCH] intel_mid_dma: Fix section mismatch warnings

Fix the following section mismatch warnings.

WARNING: drivers/built-in.o(.data+0xfa10): Section mismatch in reference
from the variable intel_mid_dma_pci to the function
.devinit.text:intel_mid_dma_probe()
The variable intel_mid_dma_pci references the function __devinit
intel_mid_dma_probe() If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console, 

WARNING: drivers/built-in.o(.data+0xfa14): Section mismatch in reference
from the variable intel_mid_dma_pci to the function
.devexit.text:intel_mid_dma_remove()
The variable intel_mid_dma_pci references the function __devexit
intel_mid_dma_remove() If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console, 

WARNING: vmlinux.o(.data+0x18490): Section mismatch in reference from
the variable intel_mid_dma_pci to the function
.devinit.text:intel_mid_dma_probe()
The variable intel_mid_dma_pci references the function __devinit
intel_mid_dma_probe() If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console, 

WARNING: vmlinux.o(.data+0x18494): Section mismatch in reference from
the variable intel_mid_dma_pci to the function
.devexit.text:intel_mid_dma_remove()
The variable intel_mid_dma_pci references the function __devexit
intel_mid_dma_remove() If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_console, 

Signed-off-by: Major Lee <major_lee@...tron.com>
---
 intel_mid_dma.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -uprN a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
--- a/drivers/dma/intel_mid_dma.c	2010-11-26 18:10:06.000000000
+0800
+++ b/drivers/dma/intel_mid_dma.c	2010-11-30 13:13:00.238892000
+0800
@@ -1222,7 +1222,7 @@ static void middma_shutdown(struct pci_d
  * Initilize the PCI device, map BARs, query driver data.
  * Call setup_dma to complete contoller and chan initilzation
  */
-static int __devinit intel_mid_dma_probe(struct pci_dev *pdev,
+static int intel_mid_dma_probe(struct pci_dev *pdev,
 					const struct pci_device_id *id)
 {
 	struct middma_device *device;
@@ -1306,7 +1306,7 @@ err_enable_device:
  * Free up all resources and data
  * Call shutdown_dma to complete contoller and chan cleanup
  */
-static void __devexit intel_mid_dma_remove(struct pci_dev *pdev)
+static void intel_mid_dma_remove(struct pci_dev *pdev)
 {
 	struct middma_device *device = pci_get_drvdata(pdev);
 	middma_shutdown(pdev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ