All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86 apic: only compile local function if used
@ 2012-04-14 22:43 Németh Márton
  2012-05-07 13:12 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Németh Márton @ 2012-04-14 22:43 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, Suresh Siddha,
	Yinghai Lu, Naga Chumbalkar
  Cc: LKML

From: Márton Németh <nm127@freemail.hu>

The local function io_apic_level_ack_pending() is only called from
io_apic_level_ack_pending(). The later function is only compiled
if CONFIG_GENERIC_PENDING_IRQ is defined. Use this define around
io_apic_level_ack_pending() function as well.

This will remove the following warning message during compiling
without CONFIG_GENERIC_PENDING_IRQ defined:
 * arch/x86/kernel/apic/io_apic.c:382: warning: ‘io_apic_level_ack_pending’ defined but not used

Signed-off-by: Márton Németh <nm127@freemail.hu>
---
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index e88300d..9b85009 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -379,6 +379,7 @@ static void __io_apic_modify(unsigned int apic, unsigned int reg, unsigned int v
 	writel(value, &io_apic->data);
 }

+#ifdef CONFIG_GENERIC_PENDING_IRQ
 static bool io_apic_level_ack_pending(struct irq_cfg *cfg)
 {
 	struct irq_pin_list *entry;
@@ -401,6 +402,7 @@ static bool io_apic_level_ack_pending(struct irq_cfg *cfg)

 	return false;
 }
+#endif

 union entry_union {
 	struct { u32 w1, w2; };


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-08 10:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-14 22:43 [PATCH] x86 apic: only compile local function if used Németh Márton
2012-05-07 13:12 ` Ingo Molnar
2012-05-08  7:24   ` Suresh Siddha
2012-05-08 10:04     ` [tip:x86/apic] x86/apic: Only compile local function if used with !CONFIG_GENERIC_PENDING_IRQ tip-bot for Márton Németh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.