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>] [day] [month] [year] [list]
Date:	Sun, 16 Aug 2009 20:40:08 +0200
From:	Leonardo Potenza <lpotenza@...ind.it>
To:	kernel-janitors@...r.kernel.org
Cc:	jbarnes@...tuousgeek.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/pci: fix section mismatch warnings in intel-iommu.c

From: Leonardo Potenza <lpotenza@...ind.it>

The functions si_domain_init() and iommu_prepare_static_identity_mapping() have been marked __init, in order to address the following section mismatch messages:

WARNING: drivers/pci/built-in.o(.text+0x3c4e5): Section mismatch in reference from the function si_domain_init() to the function .init.text:si_domain_work_fn()
The function si_domain_init() references
the function __init si_domain_work_fn().
This is often because si_domain_init lacks a __init 
annotation or the annotation of si_domain_work_fn is wrong.

WARNING: drivers/built-in.o(.text+0x415a5): Section mismatch in reference from the function si_domain_init() to the function .init.text:si_domain_work_fn()
The function si_domain_init() references
the function __init si_domain_work_fn().
This is often because si_domain_init lacks a __init 
annotation or the annotation of si_domain_work_fn is wrong.

Signed-off-by: Leonardo Potenza <lpotenza@...ind.it>
---
Index: linux-2.6/drivers/pci/intel-iommu.c
===================================================================
--- linux-2.6.orig/drivers/pci/intel-iommu.c	2009-08-16 19:29:32.000000000 +0200
+++ linux-2.6/drivers/pci/intel-iommu.c	2009-08-16 19:31:12.000000000 +0200
@@ -2047,7 +2047,7 @@ static int __init si_domain_work_fn(unsi
 
 }
 
-static int si_domain_init(void)
+static int __init si_domain_init(void)
 {
 	struct dmar_drhd_unit *drhd;
 	struct intel_iommu *iommu;
@@ -2165,7 +2165,7 @@ static int iommu_should_identity_map(str
 	return 1;
 }
 
-static int iommu_prepare_static_identity_mapping(void)
+static int __init iommu_prepare_static_identity_mapping(void)
 {
 	struct pci_dev *pdev = NULL;
 	int ret;
--
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