All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: adeos-main@gna.org, xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH] fix ipipe for !CONFIG_PRINTK
Date: Mon, 02 Jan 2006 19:28:29 +0100	[thread overview]
Message-ID: <43B970CD.4020005@domain.hid> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 113 bytes --]

Hi,

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

Jan

[-- Attachment #1.2: no_printk.patch --]
[-- Type: text/x-patch, Size: 735 bytes --]

--- linux-2.6.14.3/kernel/ipipe/core.c.orig	2005-12-17 14:08:23.000000000 +0100
+++ linux-2.6.14.3/kernel/ipipe/core.c	2006-01-01 18:58:18.000000000 +0100
@@ -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();
 

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

             reply	other threads:[~2006-01-02 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-02 18:28 Jan Kiszka [this message]
2006-01-02 18:54 ` [Xenomai-core] Re: [Adeos-main] [PATCH] fix ipipe for !CONFIG_PRINTK Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43B970CD.4020005@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=adeos-main@gna.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.