From: Yisheng Xie <xieyisheng1@huawei.com>
To: <robert.moore@intel.com>, <lv.zheng@intel.com>,
<rafael.j.wysocki@intel.com>, <lenb@kernel.org>, <wmiles@sgl.com>
Cc: <linux-acpi@vger.kernel.org>, <devel@acpica.org>,
<linux-kernel@vger.kernel.org>, <guohanjun@huawei.com>,
<wangxiongfeng2@huawei.com>
Subject: [PATCH] ACPICA: arm64: fix compile apci tools fail for arm64
Date: Fri, 14 Oct 2016 07:51:38 +0800 [thread overview]
Message-ID: <1476402698-40963-1-git-send-email-xieyisheng1@huawei.com> (raw)
when try to cross compile acpi tool in dir kernel/tools
for arm64 use command:
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- acpi
it failed with the following log:
In file included
from ../../../../../include/acpi/acpi.h:58:0,
from ../../../../../drivers/acpi/acpica/utstring.c:44:
../../../../../include/acpi/actypes.h:130:34: error: conflicting types for 's64'
typedef signed long long s64;
^
In file included
from /opt/aarch64-linux-gnu/libc/usr/include/asm-generic/types.h:6:0
from /opt/aarch64-linux-gnu/libc/usr/include/asm/types.h:1,
from ../../../../../include/uapi/linux/types.h:4,
from ../../../../../include/linux/types.h:5,
from /opt/aarch64-linux-gnu/libc/usr/include/asm/sigcontext.h:19,
from /opt/aarch64-linux-gnu/libc/usr/include/bits/sigcontext.h:27,
from /opt/aarch64-linux-gnu/libc/usr/include/signal.h:308,
from ../../../../../include/acpi/platform/acenv.h:365,
from ../../../../../include/acpi/acpi.h:56,
from ./acpidump.h:55,
from ../../os_specific/service_layers/oslinuxtbl.c:44:
../../../../../include/asm-generic/int-ll64.h:24:26: note: previous declaration of 's64' was here
typedef signed long long s64;
^
Fix this compile problem.
Fixes: e323c02dee59 ("ACPICA: MSVC9: Fix <sys/stat.h> inclusion order issue")
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
include/acpi/platform/acenv.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index 34cce72..0089fa0 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -361,9 +361,13 @@
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
+#ifdef __aarch64__
+#include <sys/stat.h>
+#else
#include <time.h>
#include <signal.h>
#endif
+#endif
#endif /* ACPI_USE_STANDARD_HEADERS */
--
1.7.12.4
next reply other threads:[~2016-10-14 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 23:51 Yisheng Xie [this message]
2016-10-17 22:26 ` [PATCH] ACPICA: arm64: fix compile apci tools fail for arm64 Zheng, Lv
2016-10-18 11:46 ` Yisheng Xie
2016-10-18 22:07 ` Zheng, Lv
2016-10-20 1:45 ` Yisheng Xie
2016-10-20 18:42 ` Zheng, Lv
2016-10-21 19:40 ` Zheng, Lv
2016-10-24 8:01 ` Yisheng Xie
2016-10-24 14:25 ` Zheng, Lv
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=1476402698-40963-1-git-send-email-xieyisheng1@huawei.com \
--to=xieyisheng1@huawei.com \
--cc=devel@acpica.org \
--cc=guohanjun@huawei.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lv.zheng@intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=robert.moore@intel.com \
--cc=wangxiongfeng2@huawei.com \
--cc=wmiles@sgl.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).