* [PATCH -next] soc/qman: convert to use be32_add_cpu()
@ 2020-09-14 4:17 Liu Shixin
2020-09-22 23:19 ` Li Yang
0 siblings, 1 reply; 2+ messages in thread
From: Liu Shixin @ 2020-09-14 4:17 UTC (permalink / raw)
To: Li Yang; +Cc: Liu Shixin, linuxppc-dev, linux-kernel, linux-arm-kernel
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
drivers/soc/fsl/qbman/qman_test_api.c---
drivers/soc/fsl/qbman/qman_test_api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/fsl/qbman/qman_test_api.c b/drivers/soc/fsl/qbman/qman_test_api.c
index 2895d062cf51..7066b2f1467c 100644
--- a/drivers/soc/fsl/qbman/qman_test_api.c
+++ b/drivers/soc/fsl/qbman/qman_test_api.c
@@ -86,7 +86,7 @@ static void fd_inc(struct qm_fd *fd)
len--;
qm_fd_set_param(fd, fmt, off, len);
- fd->cmd = cpu_to_be32(be32_to_cpu(fd->cmd) + 1);
+ be32_add_cpu(&fd->cmd, 1);
}
/* The only part of the 'fd' we can't memcmp() is the ppid */
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] soc/qman: convert to use be32_add_cpu()
2020-09-14 4:17 [PATCH -next] soc/qman: convert to use be32_add_cpu() Liu Shixin
@ 2020-09-22 23:19 ` Li Yang
0 siblings, 0 replies; 2+ messages in thread
From: Li Yang @ 2020-09-22 23:19 UTC (permalink / raw)
To: Liu Shixin
Cc: linuxppc-dev, lkml,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
On Sun, Sep 13, 2020 at 10:56 PM Liu Shixin <liushixin2@huawei.com> wrote:
>
> Signed-off-by: Liu Shixin <liushixin2@huawei.com>
> drivers/soc/fsl/qbman/qman_test_api.c---
The patch seems to be messed up here.
I have fixed that, and applied for next. Thanks.
> drivers/soc/fsl/qbman/qman_test_api.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/fsl/qbman/qman_test_api.c b/drivers/soc/fsl/qbman/qman_test_api.c
> index 2895d062cf51..7066b2f1467c 100644
> --- a/drivers/soc/fsl/qbman/qman_test_api.c
> +++ b/drivers/soc/fsl/qbman/qman_test_api.c
> @@ -86,7 +86,7 @@ static void fd_inc(struct qm_fd *fd)
> len--;
> qm_fd_set_param(fd, fmt, off, len);
>
> - fd->cmd = cpu_to_be32(be32_to_cpu(fd->cmd) + 1);
> + be32_add_cpu(&fd->cmd, 1);
> }
>
> /* The only part of the 'fd' we can't memcmp() is the ppid */
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-22 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14 4:17 [PATCH -next] soc/qman: convert to use be32_add_cpu() Liu Shixin
2020-09-22 23:19 ` Li Yang
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).