sys-apps/irqbalance: fix c23 pointer declarations

Closes: https://bugs.gentoo.org/948494
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Anton Kuleshov 2025-11-30 21:29:36 +01:00 committed by David Seifert
parent 0e9ec0880e
commit 3e24e161af
No known key found for this signature in database
GPG Key ID: CE36E117202E3842
2 changed files with 23 additions and 1 deletions

View File

@ -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 */

View File

@ -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