From: Yuan Can <yuancan@huawei.com>
To: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: <andersson@kernel.org>, <s-anna@ti.com>,
<jaswinder.singh@linaro.org>, <t-kristo@ti.com>, <afd@ti.com>,
<linux-remoteproc@vger.kernel.org>
Subject: Re: [PATCH] remoteproc: omap_remoteproc: Fix compile errors about casting
Date: Tue, 22 Nov 2022 10:03:54 +0800 [thread overview]
Message-ID: <d50405cf-cf16-6704-d5fc-a5e8de994d29@huawei.com> (raw)
In-Reply-To: <20221121172530.GB457869@p14s>
在 2022/11/22 1:25, Mathieu Poirier 写道:
> On Fri, Nov 18, 2022 at 07:47:55AM +0000, Yuan Can wrote:
>> The following errors was given when compiling
>> drivers/remoteproc/omap_remoteproc.c:
>>
>> drivers/remoteproc/omap_remoteproc.c: In function ‘omap_rproc_mbox_callback’:
>> drivers/remoteproc/omap_remoteproc.c:497:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>> u32 msg = (u32)data;
>> ^
>> drivers/remoteproc/omap_remoteproc.c: In function ‘omap_rproc_kick’:
>> drivers/remoteproc/omap_remoteproc.c:548:39: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>> ret = mbox_send_message(oproc->mbox, (void *)vqid);
>> ^
>> drivers/remoteproc/omap_remoteproc.c: In function ‘_omap_rproc_suspend’:
>> drivers/remoteproc/omap_remoteproc.c:783:39: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>> ret = mbox_send_message(oproc->mbox, (void *)suspend_msg);
>> ^
>> In file included from ./include/linux/device.h:15,
>> from ./include/linux/node.h:18,
>> from ./include/linux/cpu.h:17,
>> from ./include/linux/of_device.h:5,
>> from drivers/remoteproc/omap_remoteproc.c:22:
>> drivers/remoteproc/omap_remoteproc.c: In function ‘omap_rproc_of_get_internal_memories’:
>> drivers/remoteproc/omap_remoteproc.c:1211:16: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
>> dev_dbg(dev, "memory %8s: bus addr %pa size 0x%x va %pK da 0x%x\n",
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
> I am not seeing any of this on my side with gcc 9.4.0:
>
> $ arm-linux-gnueabihf-gcc --version
> arm-linux-gnueabihf-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
>
> What version do you use?
Thanks for the reply, I was working with the wrong cross compiler, sorry
about the noise.
--
Best regards,
Yuan Can
next prev parent reply other threads:[~2022-11-22 2:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-18 7:47 [PATCH] remoteproc: omap_remoteproc: Fix compile errors about casting Yuan Can
2022-11-21 17:25 ` Mathieu Poirier
2022-11-22 2:03 ` Yuan Can [this message]
2022-12-15 6:56 ` Philippe Mathieu-Daudé
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=d50405cf-cf16-6704-d5fc-a5e8de994d29@huawei.com \
--to=yuancan@huawei.com \
--cc=afd@ti.com \
--cc=andersson@kernel.org \
--cc=jaswinder.singh@linaro.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=s-anna@ti.com \
--cc=t-kristo@ti.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 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.