From: Matthew Wilcox <willy-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
To: Patrick Mochel <mochel-3NddpPZAyC0@public.gmane.org>
Cc: Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>,
swsusp-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [ACPI] acpi_bus_register_driver() returns -ENODEV after resume
Date: Wed, 3 Sep 2003 01:58:26 +0100 [thread overview]
Message-ID: <20030903005826.GA18654@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.33.0309021529410.1737-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
On Tue, Sep 02, 2003 at 03:39:26PM -0700, Patrick Mochel wrote:
> Tangential question: Do preprocessor conditionals evaluate to a value?
> I.e. instead of doing:
>
> #ifdef CONFIG_ACPI
> int acpi_disabled = 0;
> #else
> int acpi_disabled = 1;
> #endif
>
> Could we do:
>
> int acpi_disabled = (CONFIG_ACPI == 'y');
>
> ..or something?
ACPI=y -> #define CONFIG_ACPI 1
ACPI=m -> #define CONFIG_ACPI_MODULE 1
ACPI=n -> #undef CONFIG_ACPI
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2003-09-03 0:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-01 22:26 acpi_bus_register_driver() returns -ENODEV after resume Karol Kozimor
[not found] ` <20030901222619.GC27945-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-09-02 22:39 ` [ACPI] " Patrick Mochel
[not found] ` <Pine.LNX.4.33.0309021529410.1737-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-09-02 22:51 ` Patrick Mochel
2003-09-02 23:22 ` Karol Kozimor
[not found] ` <20030902232208.GA17674-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-09-02 23:23 ` Patrick Mochel
2003-09-03 0:58 ` Matthew Wilcox [this message]
2003-09-08 22:07 ` Karol Kozimor
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=20030903005826.GA18654@parcelfarce.linux.theplanet.co.uk \
--to=willy-8fiuurrzop0dnm+yrofe0a@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=mochel-3NddpPZAyC0@public.gmane.org \
--cc=swsusp-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox