From: "Maohui Lei (Fujitsu)" <leimaohui@fujitsu.com>
To: "yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>
Subject: A build error on v5.15/standard/nxp-sdk-5.15/nxp-soc branch
Date: Thu, 8 Jun 2023 08:53:12 +0000 [thread overview]
Message-ID: <OS0PR01MB61782DA860BE0A3D7582439AA050A@OS0PR01MB6178.jpnprd01.prod.outlook.com> (raw)
Hi, all
By poky(c6763d27efd11e2bc2a62147890ad1067c4af2ec)、I built linux-qoriq-5.15, but failed. I wonder if there is anybody can give me some suggestion here.
The source code config of linux-qoriq_5.15.bb is as the following:
-----------------------------------------------------------------------------------
$ cat meta-ubinux/recipes-ubinux/linux/linux-qoriq_5.15.bb
......
KBRANCH:ubinux-armv8 ?= "v5.15/standard/nxp-sdk-5.15/nxp-soc"
KBRANCH:ubinux-armv8be ?= "v5.15/standard/nxp-sdk-5.15/nxp-soc"
SRCREV = "f7a712001db6ec6f4579435b2ab27761eecdb072"
SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH}; \
......
-----------------------------------------------------------------------------------
The build error is as the following:
------------------------------------------------------------------------------------
kernel-source/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:5835:1: error: conflicting types for '_QuerySignal' due to enum/integer mismatch; have 'gceSTATUS(struct _gckOS *, void *)' {aka 'enum _gceSTATUS(struct _gckOS *, void *)'} [-Werror=enum-int-mismatch]
| 5835 | _QuerySignal(
| | ^~~~~~~~~~~~
| In file included from kernel-source/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
| kernel-source/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:322:1: note: previous declaration of '_QuerySignal' with type 'gctBOOL(struct _gckOS *, void *)' {aka 'int(struct _gckOS *, void *)'}
| 322 | _QuerySignal(
| | ^~~~~~~~~~~~
-----------------------------------------------------------------------------------
Although, with the following patch, this build error is disappear, but I'm not sure it is correct.
-----------------------------------------------------------------------------------
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h
index a436edb11d9a..43beb7a06f73 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h
@@ -318,7 +318,7 @@ _ConvertLogical2Physical(
OUT gctPHYS_ADDR_T * Physical
);
-gctBOOL
+gceSTATUS
_QuerySignal(
IN gckOS Os,
IN gctSIGNAL Signal
-----------------------------------------------------------------------------------
Best regards.
Lei
reply other threads:[~2023-06-08 8:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=OS0PR01MB61782DA860BE0A3D7582439AA050A@OS0PR01MB6178.jpnprd01.prod.outlook.com \
--to=leimaohui@fujitsu.com \
--cc=yocto@lists.yoctoproject.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;
as well as URLs for NNTP newsgroup(s).