Skip to contentSkip to conversation

powerpc/machdep: Remove duplicated include in svm.c

PATCH In review Yang Li 3 participants 6 messages Nov 7, 2024 – Nov 26, 2024 PowerPC

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 powerpc/machdep: Remove duplicated include in svm.c

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

---
 arch/powerpc/platforms/pseries/svm.c | 1 -
 1 file changed, 1 deletion(-)
arch/powerpc/platforms/pseries/svm.c +0 -1
index c5d0f92c7969..384c9dc1899a 100644
@@ -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>
Signature · 1 line
2.32.0.3.g01195cf9f
#1 lore raw
Quoted 9 lines · Yang Li

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

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

Quoted 14 lines
arch/powerpc/platforms/pseries/svm.c +0 -1
index c5d0f92c7969..384c9dc1899a 100644
@@ -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>
Signature · 1 line
2.32.0.3.g01195cf9f
#2 lore raw

Le 07/11/2024 à 12:29, Michael Ellerman a écrit :

Quoted 11 lines
Quoted 9 lines · Yang Li

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

---
  arch/powerpc/platforms/pseries/svm.c | 1 -
  1 file changed, 1 deletion(-)
Quoted 5 lines

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

#3 lore raw
Quoted 12 lines · Christophe Leroy

Le 07/11/2024 à 12:29, Michael Ellerman a écrit :

Quoted 11 lines
Quoted 9 lines · Yang Li

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

---
  arch/powerpc/platforms/pseries/svm.c | 1 -
  1 file changed, 1 deletion(-)
Quoted 8 lines
Quoted 5 lines

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

#4 lore raw
In reply to Michael Ellerman

Le 07/11/2024 à 12:29, Michael Ellerman a écrit :

Quoted 11 lines
Quoted 9 lines · Yang Li

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

---
  arch/powerpc/platforms/pseries/svm.c | 1 -
  1 file changed, 1 deletion(-)
Quoted 6 lines

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

#5 lore raw
Quoted 12 lines · Christophe Leroy

Le 07/11/2024 à 12:29, Michael Ellerman a écrit :

Quoted 11 lines
Quoted 9 lines · Yang Li

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

---
  arch/powerpc/platforms/pseries/svm.c | 1 -
  1 file changed, 1 deletion(-)
Quoted 7 lines
Quoted 5 lines

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