[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5437275.MVdmGJ04h3@aspire.rjw.lan>
Date: Tue, 03 Oct 2017 13:39:22 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Jérémy Lefaure <jeremy.lefaure@....epita.fr>
Cc: Robert Moore <robert.moore@...el.com>,
Lv Zheng <lv.zheng@...el.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org,
devel@...ica.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 15/18] acpi: use ARRAY_SIZE
On Tuesday, October 3, 2017 3:16:22 AM CEST Jérémy Lefaure wrote:
> On Mon, 02 Oct 2017 14:27:52 +0200
> "Rafael J. Wysocki" <rjw@...ysocki.net> wrote:
>
> > ACPICA is soewhat special code, though and I'm not taking or ACKing patches
> > for it directly as a rule.
> >
> > For one, I'm not sure if ACPICA can use ARRAY_SIZE at all.
> Why is it special code that can't use ARRAY_SIZE ? Is it because this
> macro is defined in linux/kernel.h ?
Basically, yes.
ACPICA is a separate project and the kernel acquires its source code from
the upstream (which is used by other OSes too). That is not the case for
any other code in the kernel I know about.
We strive to keep the ACPICA code in the kernel as close to the upstream as
reasonably possible for maintenance reasons, so we avoid doing Linux-specific
things in it.
As a rule of thumb, if you do cleanups like this one, better avoid the ACPICA
code. :-)
Thanks,
Rafael
Powered by blists - more mailing lists