Blame SOURCES/0001-Fix-build-on-i686.patch
|
Pablo Greco |
47c085 |
From 48068b4e3675eac937d64530e26a1c4a6b344523 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
47c085 |
From: Pablo Greco <pgreco@centosproject.org>
|
|
Pablo Greco |
47c085 |
Date: Tue, 22 Feb 2022 23:12:06 +0000
|
|
Pablo Greco |
47c085 |
Subject: [PATCH] Fix build on i686
|
|
Pablo Greco |
47c085 |
|
|
Pablo Greco |
47c085 |
---
|
|
Pablo Greco |
47c085 |
arch/x86/kernel/resource.c | 4 ++++
|
|
Pablo Greco |
47c085 |
1 file changed, 4 insertions(+)
|
|
Pablo Greco |
47c085 |
|
|
Pablo Greco |
47c085 |
diff --git a/arch/x86/kernel/resource.c b/arch/x86/kernel/resource.c
|
|
Pablo Greco |
47c085 |
index e8dc9bc..5038c99 100644
|
|
Pablo Greco |
47c085 |
--- a/arch/x86/kernel/resource.c
|
|
Pablo Greco |
47c085 |
+++ b/arch/x86/kernel/resource.c
|
|
Pablo Greco |
47c085 |
@@ -1,7 +1,9 @@
|
|
Pablo Greco |
47c085 |
// SPDX-License-Identifier: GPL-2.0
|
|
Pablo Greco |
47c085 |
#include <linux/ioport.h>
|
|
Pablo Greco |
47c085 |
#include <asm/e820/api.h>
|
|
Pablo Greco |
47c085 |
+#ifdef CONFIG_X86_64
|
|
Pablo Greco |
47c085 |
#include <asm/pci_x86.h>
|
|
Pablo Greco |
47c085 |
+#endif
|
|
Pablo Greco |
47c085 |
|
|
Pablo Greco |
47c085 |
static void resource_clip(struct resource *res, resource_size_t start,
|
|
Pablo Greco |
47c085 |
resource_size_t end)
|
|
Pablo Greco |
47c085 |
@@ -29,8 +31,10 @@ static void remove_e820_regions(struct resource *avail)
|
|
Pablo Greco |
47c085 |
int i;
|
|
Pablo Greco |
47c085 |
struct e820_entry *entry;
|
|
Pablo Greco |
47c085 |
|
|
Pablo Greco |
47c085 |
+#ifdef CONFIG_X86_64
|
|
Pablo Greco |
47c085 |
if (!pci_use_e820)
|
|
Pablo Greco |
47c085 |
return;
|
|
Pablo Greco |
47c085 |
+#endif
|
|
Pablo Greco |
47c085 |
|
|
Pablo Greco |
47c085 |
for (i = 0; i < e820_table->nr_entries; i++) {
|
|
Pablo Greco |
47c085 |
entry = &e820_table->entries[i];
|
|
Pablo Greco |
47c085 |
--
|
|
Pablo Greco |
47c085 |
2.18.4
|
|
Pablo Greco |
47c085 |
|