Skip to contentSkip to conversation

fix ipipe for !CONFIG_PRINTK

PATCH Applied Jan Kiszka 2 participants 2 messages Jan 2, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 fix ipipe for !CONFIG_PRINTK

Hi,

this patch lets ipipe compile even if someone is annoyed of all the babbling on the kernel console. ;)

Jan

kernel/ipipe/core.c renamed from kernel/ipipe/core.c.orig +4 -0
@@ -43,7 +43,9 @@
 
 unsigned long __ipipe_virtual_irq_map = 0;
 
+#ifdef CONFIG_PRINTK
 unsigned __ipipe_printk_virq;
+#endif /* CONFIG_PRINTK */
 
 int __ipipe_event_monitors[IPIPE_NR_EVENTS];
 
@@ -76,10 +78,12 @@
 
 	__ipipe_init_platform();
 
+#ifdef CONFIG_PRINTK
 	__ipipe_printk_virq = ipipe_alloc_virq();	/* Cannot fail here. */
 	ipd->irqs[__ipipe_printk_virq].handler = &__ipipe_flush_printk;
 	ipd->irqs[__ipipe_printk_virq].acknowledge = NULL;
 	ipd->irqs[__ipipe_printk_virq].control = IPIPE_HANDLE_MASK;
+#endif /* CONFIG_PRINTK */
 
 	__ipipe_enable_pipeline();
 
#1 lore raw
Quoted 4 lines · Jan Kiszka

Hi,

this patch lets ipipe compile even if someone is annoyed of all the babbling on the kernel console. ;)

Applied in my tree, thanks. This will show up later in the repository since GNA seems to encounter some space problems with the CVS server.

Quoted 39 lines

Jan

------------------------------------------------------------------------

kernel/ipipe/core.c renamed from kernel/ipipe/core.c.orig +4 -1
@@ -43,7 +43,9 @@
 
 unsigned long __ipipe_virtual_irq_map = 0;
 
+#ifdef CONFIG_PRINTK
 unsigned __ipipe_printk_virq;
+#endif /* CONFIG_PRINTK */
 
 int __ipipe_event_monitors[IPIPE_NR_EVENTS];
 
@@ -76,10 +78,12 @@
 
 	__ipipe_init_platform();
 
+#ifdef CONFIG_PRINTK
 	__ipipe_printk_virq = ipipe_alloc_virq();	/* Cannot fail here. */
 	ipd->irqs[__ipipe_printk_virq].handler = &__ipipe_flush_printk;
 	ipd->irqs[__ipipe_printk_virq].acknowledge = NULL;
 	ipd->irqs[__ipipe_printk_virq].control = IPIPE_HANDLE_MASK;
+#endif /* CONFIG_PRINTK */
 
 	__ipipe_enable_pipeline();
 
 
 
------------------------------------------------------------------------

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.