From: Leo Liang <ycliang@andestech.com>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Bin Meng <bmeng.cn@gmail.com>, Rick Chen <rick@andestech.com>,
<u-boot@lists.denx.de>, Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH 1/1] acpi: Add missing RISC-V acpi_table header
Date: Wed, 26 Jul 2023 03:11:53 +0000 [thread overview]
Message-ID: <ZMCO+So72dgjszHr@ubuntu01> (raw)
In-Reply-To: <7f86bee0-90f1-d143-3519-f65f2ec68845@canonical.com>
Hi Heinrich,
On Tue, Jul 25, 2023 at 09:44:00AM +0200, Heinrich Schuchardt wrote:
> On 7/25/23 04:26, Bin Meng wrote:
> > +Simon,
> >
> > On Tue, Jul 25, 2023 at 9:30 AM Heinrich Schuchardt
> > <heinrich.schuchardt@canonical.com> wrote:
> > >
> > > The pci_mmc.c driver can generate ACPI info and therefore includes
> > > asm/acpi_table.h. This file does not exist for the RISC-V architecture
> > > and thus code compilation fails when using this driver on RISC-V
> >
> > Which header file includes the <asm/acpi_table.h> in pci_mmc.c?
> >
> > I feel like we should fix the header file dependency of the driver,
> > not by adding a dummy file for random architecture.
>
> The error is:
>
> In file included from include/acpi/acpigen.h:13,
> from drivers/mmc/pci_mmc.c:15:
> include/acpi/acpi_table.h:936:10: fatal error: asm/acpi_table.h: No such
> file or directory
> 936 | #include <asm/acpi_table.h>
> | ^~~~~~~~~~~~~~~~~~
>
> Currently we have:
>
> ./arch/x86/include/asm/acpi_table.h
> ./arch/arm/include/asm/acpi_table.h
> ./arch/sandbox/include/asm/acpi_table.h
>
> Only arch/x86/include/asm/acpi_table.h has content.
>
> The RISC-V architecture in general supports ACPI but has some requirements
> that are different to x86.
>
> So I think we will end up with a arch/riscv/include/asm/acpi_table.h anyway
> in the future.
>
LGTM!
But could we also add something like what is in ./arch/sandbox/include/asm/acpi_table.h
instead of just an empty file ?
Best regards,
Leo
> Best regards
>
> Heinrich
>
> >
> > >
> > > Create an empty include file.
> > >
> > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > ---
> > > arch/riscv/include/asm/acpi_table.h | 0
> > > 1 file changed, 0 insertions(+), 0 deletions(-)
> > > create mode 100644 arch/riscv/include/asm/acpi_table.h
> > >
> > > diff --git a/arch/riscv/include/asm/acpi_table.h b/arch/riscv/include/asm/acpi_table.h
> > > new file mode 100644
> > > index 0000000000..e69de29bb2
> > > --
> >
> > Regards,
> > Bin
prev parent reply other threads:[~2023-07-26 3:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 1:23 [PATCH 1/1] acpi: Add missing RISC-V acpi_table header Heinrich Schuchardt
2023-07-25 2:26 ` Bin Meng
2023-07-25 7:44 ` Heinrich Schuchardt
2023-07-26 3:11 ` Leo Liang [this message]
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=ZMCO+So72dgjszHr@ubuntu01 \
--to=ycliang@andestech.com \
--cc=bmeng.cn@gmail.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=rick@andestech.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/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.