aboutsummaryrefslogtreecommitdiff
path: root/utils/irqbalance
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-07-19 21:37:30 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2018-07-19 21:37:30 +0300
commit0cb6e15f01fc0df8e0efee9ae65cb235dfd4879b (patch)
tree0acf93b151074c2507de15cfbca27aca25822f91 /utils/irqbalance
parent76c48659715546ebd64294e9d0fbe8a50b69cfdc (diff)
irqbalance: fix AARCH64 compilation
AARCH64 compilation fails due to upstream bug in 1.2.0 that has been later fixed. Backport the fix commit. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'utils/irqbalance')
-rw-r--r--utils/irqbalance/patches/300-upstream-fix-for-AARCH64.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/irqbalance/patches/300-upstream-fix-for-AARCH64.patch b/utils/irqbalance/patches/300-upstream-fix-for-AARCH64.patch
new file mode 100644
index 000000000..867de0eb7
--- /dev/null
+++ b/utils/irqbalance/patches/300-upstream-fix-for-AARCH64.patch
@@ -0,0 +1,21 @@
+From b0f77c10fc4561463b59b12cba0bfd69d7c73934 Mon Sep 17 00:00:00 2001
+From: Timo Teräs <timo.teras@iki.fi>
+Date: Tue, 10 Jan 2017 09:51:32 +0200
+Subject: [PATCH] fix aarch64 compile error due to undefined variable
+
+fixes #36
+
+Signed-off-by: Timo Teräs <timo.teras@iki.fi>
+
+--- a/procinterrupts.c
++++ b/procinterrupts.c
+@@ -148,6 +148,9 @@ GList* collect_full_irq_list()
+ char *line = NULL;
+ size_t size = 0;
+ char *irq_name, *irq_mod, *savedptr, *last_token, *p;
++#ifdef AARCH64
++ char *tmp;
++#endif
+
+ file = fopen("/proc/interrupts", "r");
+ if (!file)