I will note all this suggestions, Thanks Bruce

On 13.07.2022 18:46, Bruce Ashfield wrote:
[Please note: This e-mail is from an EXTERNAL e-mail address]

You've got a double [PATCH], in the shortlog, but that's not a big
deal, since git am drops it anyway .. just something to be aware of.

On Wed, Jul 13, 2022 at 10:47 AM Carlos Dominguez
<carlos.doming...@windriver.com> wrote:
This building issue is caused by the merge of stable kernel commit
7027c890ff6b ("firmware: stratix10-svc: fix a missing check on list
iterator") that conflicts with sdk patch. So, adjust code to merge
sdk patch and upstream commit together.
In the spirit of future commits and maintenance, it is also useful to
list the "sdk commit" in question by its 12 digit sha1 and shortlog,
just like you did with the conflicting -stable patch .. that way it is
easy to go back and look at the original intent of the SDK patch.

No need for a v3, just things to note.

Bruce

Signed-off-by: Meng Li <meng...@windriver.com>
Signed-off-by: Carlos Dominguez <carlos.doming...@windriver.com>
---
  drivers/firmware/stratix10-svc.c | 6 ++----
  1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/firmware/stratix10-svc.c b/drivers/firmware/stratix10-svc.c
index 6e24649aa9bf..d9d1e00367ea 100644
--- a/drivers/firmware/stratix10-svc.c
+++ b/drivers/firmware/stratix10-svc.c
@@ -1505,6 +1505,7 @@ void stratix10_svc_free_memory(struct stratix10_svc_chan 
*chan, void *kaddr)

         list_for_each_entry(pmem, &svc_data_mem, node)
                 if (pmem->vaddr == kaddr) {
+                       memset(kaddr, 0, pmem->size);
                         gen_pool_free(chan->ctrl->genpool,
                                        (unsigned long)kaddr, pmem->size);
                         pmem->vaddr = NULL;
@@ -1512,10 +1513,7 @@ void stratix10_svc_free_memory(struct stratix10_svc_chan 
*chan, void *kaddr)
                         return;
                 }

-       memset(kaddr, 0, size);
-       gen_pool_free(chan->ctrl->genpool, (unsigned long)kaddr, size);
-       pmem->vaddr = NULL;
-       list_del(&pmem->node);
+       list_del(&svc_data_mem);
  }
  EXPORT_SYMBOL_GPL(stratix10_svc_free_memory);

--
2.34.1


--
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11469): 
https://lists.yoctoproject.org/g/linux-yocto/message/11469
Mute This Topic: https://lists.yoctoproject.org/mt/92359005/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to