linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c
@ 2024-11-07  1:02 Yang Li
  2024-11-07 11:29 ` Michael Ellerman
  0 siblings, 1 reply; 6+ messages in thread
From: Yang Li @ 2024-11-07  1:02 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, naveen, maddy
  Cc: linuxppc-dev, linux-kernel, Yang Li, Abaci Robot

The header files linux/mem_encrypt.h is included twice in svm.c,
so one inclusion of each can be removed.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11750
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 arch/powerpc/platforms/pseries/svm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/platforms/pseries/svm.c b/arch/powerpc/platforms/pseries/svm.c
index c5d0f92c7969..384c9dc1899a 100644
--- a/arch/powerpc/platforms/pseries/svm.c
+++ b/arch/powerpc/platforms/pseries/svm.c
@@ -10,7 +10,6 @@
 #include <linux/memblock.h>
 #include <linux/mem_encrypt.h>
 #include <linux/cc_platform.h>
-#include <linux/mem_encrypt.h>
 #include <asm/machdep.h>
 #include <asm/svm.h>
 #include <asm/swiotlb.h>
-- 
2.32.0.3.g01195cf9f



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c
  2024-11-07  1:02 [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c Yang Li
@ 2024-11-07 11:29 ` Michael Ellerman
  2024-11-07 11:33   ` Christophe Leroy
  2024-11-25  7:26   ` Christophe Leroy
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Ellerman @ 2024-11-07 11:29 UTC (permalink / raw)
  To: Yang Li, npiggin, christophe.leroy, naveen, maddy
  Cc: linuxppc-dev, linux-kernel, Yang Li, Abaci Robot

Yang Li <yang.lee@linux.alibaba.com> writes:
> The header files linux/mem_encrypt.h is included twice in svm.c,
> so one inclusion of each can be removed.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11750
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  arch/powerpc/platforms/pseries/svm.c | 1 -
>  1 file changed, 1 deletion(-)

The two includes only appear in linux-next, and they both come from
different trees. They are required in each tree to avoid breaking the
build.

So no one can merge this patch until the two trees are merged into mainline.

cheers

> diff --git a/arch/powerpc/platforms/pseries/svm.c b/arch/powerpc/platforms/pseries/svm.c
> index c5d0f92c7969..384c9dc1899a 100644
> --- a/arch/powerpc/platforms/pseries/svm.c
> +++ b/arch/powerpc/platforms/pseries/svm.c
> @@ -10,7 +10,6 @@
>  #include <linux/memblock.h>
>  #include <linux/mem_encrypt.h>
>  #include <linux/cc_platform.h>
> -#include <linux/mem_encrypt.h>
>  #include <asm/machdep.h>
>  #include <asm/svm.h>
>  #include <asm/swiotlb.h>
> -- 
> 2.32.0.3.g01195cf9f


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c
  2024-11-07 11:29 ` Michael Ellerman
@ 2024-11-07 11:33   ` Christophe Leroy
  2024-11-07 23:49     ` Michael Ellerman
  2024-11-25  7:26   ` Christophe Leroy
  1 sibling, 1 reply; 6+ messages in thread
From: Christophe Leroy @ 2024-11-07 11:33 UTC (permalink / raw)
  To: Michael Ellerman, Yang Li, npiggin, naveen, maddy
  Cc: linuxppc-dev, linux-kernel, Abaci Robot



Le 07/11/2024 à 12:29, Michael Ellerman a écrit :
> Yang Li <yang.lee@linux.alibaba.com> writes:
>> The header files linux/mem_encrypt.h is included twice in svm.c,
>> so one inclusion of each can be removed.
>>
>> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
>> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11750
>> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
>> ---
>>   arch/powerpc/platforms/pseries/svm.c | 1 -
>>   1 file changed, 1 deletion(-)
> 
> The two includes only appear in linux-next, and they both come from
> different trees. They are required in each tree to avoid breaking the
> build.
> 
> So no one can merge this patch until the two trees are merged into mainline.

But can't those two trees coordinate the patches so that the include 
goes at the same place avoiding duplication at merge ?

Christophe


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c
  2024-11-07 11:33   ` Christophe Leroy
@ 2024-11-07 23:49     ` Michael Ellerman
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Ellerman @ 2024-11-07 23:49 UTC (permalink / raw)
  To: Christophe Leroy, Yang Li, npiggin, naveen, maddy
  Cc: linuxppc-dev, linux-kernel, Abaci Robot

Christophe Leroy <christophe.leroy@csgroup.eu> writes:
> Le 07/11/2024 à 12:29, Michael Ellerman a écrit :
>> Yang Li <yang.lee@linux.alibaba.com> writes:
>>> The header files linux/mem_encrypt.h is included twice in svm.c,
>>> so one inclusion of each can be removed.
>>>
>>> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
>>> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11750
>>> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
>>> ---
>>>   arch/powerpc/platforms/pseries/svm.c | 1 -
>>>   1 file changed, 1 deletion(-)
>> 
>> The two includes only appear in linux-next, and they both come from
>> different trees. They are required in each tree to avoid breaking the
>> build.
>> 
>> So no one can merge this patch until the two trees are merged into mainline.
>
> But can't those two trees coordinate the patches so that the include 
> goes at the same place avoiding duplication at merge ?

Yes that would work.

Except that in this case it's too late because the commits have already
been applied to both trees for over a week - neither maintainer is going
to want to rebase for something trivial like a duplicated header.

I could apply a patch to my tree to move the include to the same line as
the commit in the DMA tree, but even that seems like overkill for a
duplicated header.

I'll try and remember to apply this once the trees are merged in
mainline. But if not the bot that detected it in the first place can
just detect it again and repost.

cheers


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c
  2024-11-07 11:29 ` Michael Ellerman
  2024-11-07 11:33   ` Christophe Leroy
@ 2024-11-25  7:26   ` Christophe Leroy
  2024-11-26  2:57     ` Michael Ellerman
  1 sibling, 1 reply; 6+ messages in thread
From: Christophe Leroy @ 2024-11-25  7:26 UTC (permalink / raw)
  To: Michael Ellerman, Yang Li, npiggin, naveen, maddy,
	Christoph Hellwig
  Cc: linuxppc-dev, linux-kernel, Abaci Robot



Le 07/11/2024 à 12:29, Michael Ellerman a écrit :
> Yang Li <yang.lee@linux.alibaba.com> writes:
>> The header files linux/mem_encrypt.h is included twice in svm.c,
>> so one inclusion of each can be removed.
>>
>> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
>> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11750
>> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
>> ---
>>   arch/powerpc/platforms/pseries/svm.c | 1 -
>>   1 file changed, 1 deletion(-)
> 
> The two includes only appear in linux-next, and they both come from
> different trees. They are required in each tree to avoid breaking the
> build.
> 
> So no one can merge this patch until the two trees are merged into mainline.
> 

That's in linus tree now

Christophe


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c
  2024-11-25  7:26   ` Christophe Leroy
@ 2024-11-26  2:57     ` Michael Ellerman
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Ellerman @ 2024-11-26  2:57 UTC (permalink / raw)
  To: Christophe Leroy, Yang Li, npiggin, naveen, maddy,
	Christoph Hellwig
  Cc: linuxppc-dev, linux-kernel, Abaci Robot

Christophe Leroy <christophe.leroy@csgroup.eu> writes:
> Le 07/11/2024 à 12:29, Michael Ellerman a écrit :
>> Yang Li <yang.lee@linux.alibaba.com> writes:
>>> The header files linux/mem_encrypt.h is included twice in svm.c,
>>> so one inclusion of each can be removed.
>>>
>>> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
>>> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11750
>>> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
>>> ---
>>>   arch/powerpc/platforms/pseries/svm.c | 1 -
>>>   1 file changed, 1 deletion(-)
>> 
>> The two includes only appear in linux-next, and they both come from
>> different trees. They are required in each tree to avoid breaking the
>> build.
>> 
>> So no one can merge this patch until the two trees are merged into mainline.
>
> That's in linus tree now

Yep thanks.

cheers


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-26  2:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07  1:02 [PATCH -next] powerpc/machdep: Remove duplicated include in svm.c Yang Li
2024-11-07 11:29 ` Michael Ellerman
2024-11-07 11:33   ` Christophe Leroy
2024-11-07 23:49     ` Michael Ellerman
2024-11-25  7:26   ` Christophe Leroy
2024-11-26  2:57     ` Michael Ellerman

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).