commit:     3e24e161af8a0d123c996da1918670181308ed65
Author:     Anton Kuleshov <anton.wd <AT> gmail <DOT> com>
AuthorDate: Sun Nov 30 20:29:36 2025 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 30 20:29:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e24e161

sys-apps/irqbalance: fix c23 pointer declarations

Closes: https://bugs.gentoo.org/948494
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../irqbalance/files/irqbalance-1.9.4-c23.patch     | 21 +++++++++++++++++++++
 ...e-1.9.4-r2.ebuild => irqbalance-1.9.4-r3.ebuild} |  3 ++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/sys-apps/irqbalance/files/irqbalance-1.9.4-c23.patch 
b/sys-apps/irqbalance/files/irqbalance-1.9.4-c23.patch
new file mode 100644
index 000000000000..74b0dc6dbb46
--- /dev/null
+++ b/sys-apps/irqbalance/files/irqbalance-1.9.4-c23.patch
@@ -0,0 +1,21 @@
+--- a/ui/ui.h
++++ b/ui/ui.h
+@@ -30,7 +30,7 @@
+ void display_banned_cpus();
+ int toggle_cpu(GList *cpu_list, int cpu_number);
+ void get_new_cpu_ban_values(cpu_ban_t *cpu, void *data);
+-void get_cpu();
++void get_cpu(cpu_node_t *node, void *data __attribute__((unused)));
+ void handle_sleep_setting();
+ void handle_cpu_banning();
+ 
+--- a/ui/irqbalance-ui.h
++++ b/ui/irqbalance-ui.h
+@@ -83,7 +83,6 @@
+ void assign_cpu_mask(cpu_node_t *node, void *data);
+ void parse_into_tree(char *data);
+ gboolean rescan_tree(gpointer data);
+-int main();
+ 
+ 
+ #endif /* IRQBALANCE_UI_H */

diff --git a/sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild 
b/sys-apps/irqbalance/irqbalance-1.9.4-r3.ebuild
similarity index 96%
rename from sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild
rename to sys-apps/irqbalance/irqbalance-1.9.4-r3.ebuild
index a856235646c3..cda013c0d6dc 100644
--- a/sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild
+++ b/sys-apps/irqbalance/irqbalance-1.9.4-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -44,6 +44,7 @@ src_prepare() {
        (
                cd "${WORKDIR}"/${P} || die
                eapply "${FILESDIR}"/${P}-drop-protectkerneltunables.patch
+               eapply "${FILESDIR}"/${P}-c23.patch
        )
 
        # Follow systemd policies

Reply via email to