From: Bastien Nocera <hadess@hadess.net>
To: Hans de Goede <hdegoede@redhat.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org, kbuild test robot <lkp@intel.com>
Subject: Re: [PATCH] Input: goodix - Fix compilation when ACPI support is disabled
Date: Wed, 25 Mar 2020 15:02:58 +0100 [thread overview]
Message-ID: <be555dbf9c8508c5b8d9ed561384c66d76326241.camel@hadess.net> (raw)
In-Reply-To: <5aca9fe9-3751-f0f6-9851-5d9a0c048388@redhat.com>
On Wed, 2020-03-25 at 14:55 +0100, Hans de Goede wrote:
> We could do something like that, but TBH I'm not a fan of that
>
> adding extra wrappers makes it harder to see what the code is
>
> actually doing.
>
>
>
> I understand your dislike for the extra braces I added and
>
> I'm fine with fixing that by adding __maybe_unused to the
>
> variable declarations at the top. I don't really see what
>
> the problem with the #ifdef-s is given how clean they are,
>
> with the braces thing fixed by using __maybe_unused things
>
> would look like e.g. this:
It's not only the fact that there's extra #ifdef's, it's that the
ifdef's need to be just "that". It's not "#ifdef FOO", it's "#if
defined CONFIG_X86 && defined CONFIG_ACPI".
I'd really prefer a separate function(s) that would be the only
place(s) where the conditions would be, and with one-liner bodies, to
work-around the fact that those ACPI calls are only really half-
stubbed.
next prev parent reply other threads:[~2020-03-25 14:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 10:33 [PATCH] Input: goodix - Fix compilation when ACPI support is disabled Hans de Goede
2020-03-25 10:47 ` Bastien Nocera
2020-03-25 11:49 ` Hans de Goede
2020-03-25 12:11 ` Bastien Nocera
2020-03-25 13:55 ` Hans de Goede
2020-03-25 14:02 ` Bastien Nocera [this message]
2020-03-25 14:05 ` Hans de Goede
2020-03-25 14:10 ` Bastien Nocera
2020-03-25 14:55 ` Hans de Goede
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=be555dbf9c8508c5b8d9ed561384c66d76326241.camel@hadess.net \
--to=hadess@hadess.net \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-input@vger.kernel.org \
--cc=lkp@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).