lkml.org 
[lkml]   [2011]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] intel-iommu: Fix section mismatch in dmar_parse_rmrr_atsr_dev()

dmar_parse_rmrr_atsr_dev() calls rmrr_parse_dev() and atsr_parse_dev() both
marked as __init.

Section mismatch in reference from the function dmar_parse_rmrr_atsr_dev() to the
function .init.text:dmar_parse_dev_scope()
The function dmar_parse_rmrr_atsr_dev() references
the function __init dmar_parse_dev_scope().

Section mismatch in reference from the function dmar_parse_rmrr_atsr_dev() to the
function .init.text:dmar_parse_dev_scope()
The function dmar_parse_rmrr_atsr_dev() references
the function __init dmar_parse_dev_scope().


Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

---

diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index be1953c..93cd72f 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3523,7 +3523,7 @@ found:
return 0;
}

-int dmar_parse_rmrr_atsr_dev(void)
+int __init dmar_parse_rmrr_atsr_dev(void)
{
struct dmar_rmrr_unit *rmrr, *rmrr_n;
struct dmar_atsr_unit *atsr, *atsr_n;


\
 
 \ /
  Last update: 2011-10-26 17:51    [W:2.985 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site