Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715488 > unrolled thread

[PATCH 2/2] iommu/amd: Fix section mismatch warning

Started byJoerg Roedel <joro@8bytes.org>
First post2017-08-19 00:50 +0200
Last post2017-08-19 00:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] iommu/amd: Fix section mismatch warning Joerg Roedel <joro@8bytes.org> - 2017-08-19 00:50 +0200

#1715488 — [PATCH 2/2] iommu/amd: Fix section mismatch warning

FromJoerg Roedel <joro@8bytes.org>
Date2017-08-19 00:50 +0200
Subject[PATCH 2/2] iommu/amd: Fix section mismatch warning
Message-ID<ufYfv-1xu-1@gated-at.bofh.it>
From: Joerg Roedel <jroedel@suse.de>

The variable amd_iommu_pre_enabled is used in non-init
code-paths, so remove the __initdata annotation.

Fixes: 3ac3e5ee5ed56 ('iommu/amd: Copy old trans table from old kernel')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
---
 drivers/iommu/amd_iommu_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index f2023cd..ff8887a 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -264,7 +264,7 @@ static int amd_iommu_enable_interrupts(void);
 static int __init iommu_go_to_state(enum iommu_init_state state);
 static void init_device_table_dma(void);
 
-static bool __initdata amd_iommu_pre_enabled = true;
+static bool amd_iommu_pre_enabled = true;
 
 bool translation_pre_enabled(struct amd_iommu *iommu)
 {
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web