All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: Mark a couple of variables static
@ 2021-05-14  8:56 ` Quentin Perret
  0 siblings, 0 replies; 12+ messages in thread
From: Quentin Perret @ 2021-05-14  8:56 UTC (permalink / raw)
  To: kvmarm; +Cc: maz, will, kbuild-all

The kernel test bot is complaining (and rightfully so) about variables
introduced by the host stage-2 series that should be static. This series
fixes all of them.

Thanks!

Quentin Perret (2):
  KVM: arm64: Mark pkvm_pgtable_mm_ops static
  KVM: arm64: Mark the host stage-2 memory pools static

 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 4 ++--
 arch/arm64/kvm/hyp/nvhe/setup.c       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.31.1.751.gd2f1c929bd-goog

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* [PATCH 0/2] KVM: arm64: Mark a couple of variables static
@ 2021-05-14  8:56 ` Quentin Perret
  0 siblings, 0 replies; 12+ messages in thread
From: Quentin Perret @ 2021-05-14  8:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

The kernel test bot is complaining (and rightfully so) about variables
introduced by the host stage-2 series that should be static. This series
fixes all of them.

Thanks!

Quentin Perret (2):
  KVM: arm64: Mark pkvm_pgtable_mm_ops static
  KVM: arm64: Mark the host stage-2 memory pools static

 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 4 ++--
 arch/arm64/kvm/hyp/nvhe/setup.c       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.31.1.751.gd2f1c929bd-goog

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

* [PATCH 1/2] KVM: arm64: Mark pkvm_pgtable_mm_ops static
  2021-05-14  8:56 ` Quentin Perret
@ 2021-05-14  8:56   ` Quentin Perret
  -1 siblings, 0 replies; 12+ messages in thread
From: Quentin Perret @ 2021-05-14  8:56 UTC (permalink / raw)
  To: kvmarm; +Cc: maz, will, kbuild-all

It is not used outside of setup.c, mark it static.

Fixes:f320bc742bc2 ("KVM: arm64: Prepare the creation of s1 mappings at EL2")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Quentin Perret <qperret@google.com>
---
 arch/arm64/kvm/hyp/nvhe/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/hyp/nvhe/setup.c b/arch/arm64/kvm/hyp/nvhe/setup.c
index 7488f53b0aa2..a3d3a275344e 100644
--- a/arch/arm64/kvm/hyp/nvhe/setup.c
+++ b/arch/arm64/kvm/hyp/nvhe/setup.c
@@ -17,7 +17,6 @@
 #include <nvhe/trap_handler.h>
 
 struct hyp_pool hpool;
-struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
 unsigned long hyp_nr_cpus;
 
 #define hyp_percpu_size ((unsigned long)__per_cpu_end - \
@@ -27,6 +26,7 @@ static void *vmemmap_base;
 static void *hyp_pgt_base;
 static void *host_s2_mem_pgt_base;
 static void *host_s2_dev_pgt_base;
+static struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
 
 static int divide_memory_pool(void *virt, unsigned long size)
 {
-- 
2.31.1.751.gd2f1c929bd-goog

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* [PATCH 1/2] KVM: arm64: Mark pkvm_pgtable_mm_ops static
@ 2021-05-14  8:56   ` Quentin Perret
  0 siblings, 0 replies; 12+ messages in thread
From: Quentin Perret @ 2021-05-14  8:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

It is not used outside of setup.c, mark it static.

Fixes:f320bc742bc2 ("KVM: arm64: Prepare the creation of s1 mappings at EL2")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Quentin Perret <qperret@google.com>
---
 arch/arm64/kvm/hyp/nvhe/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/hyp/nvhe/setup.c b/arch/arm64/kvm/hyp/nvhe/setup.c
index 7488f53b0aa2..a3d3a275344e 100644
--- a/arch/arm64/kvm/hyp/nvhe/setup.c
+++ b/arch/arm64/kvm/hyp/nvhe/setup.c
@@ -17,7 +17,6 @@
 #include <nvhe/trap_handler.h>
 
 struct hyp_pool hpool;
-struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
 unsigned long hyp_nr_cpus;
 
 #define hyp_percpu_size ((unsigned long)__per_cpu_end - \
@@ -27,6 +26,7 @@ static void *vmemmap_base;
 static void *hyp_pgt_base;
 static void *host_s2_mem_pgt_base;
 static void *host_s2_dev_pgt_base;
+static struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
 
 static int divide_memory_pool(void *virt, unsigned long size)
 {
-- 
2.31.1.751.gd2f1c929bd-goog

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

* [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static
  2021-05-14  8:56 ` Quentin Perret
@ 2021-05-14  8:56   ` Quentin Perret
  -1 siblings, 0 replies; 12+ messages in thread
From: Quentin Perret @ 2021-05-14  8:56 UTC (permalink / raw)
  To: kvmarm; +Cc: maz, will, kbuild-all

The host stage-2 memory pools are not used outside of mem_protect.c,
mark them static.

Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2")
Reported-by: Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Quentin Perret <qperret@google.com>
---
 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/kvm/hyp/nvhe/mem_protect.c b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
index e342f7f4f4fb..4b60c0056c04 100644
--- a/arch/arm64/kvm/hyp/nvhe/mem_protect.c
+++ b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
@@ -23,8 +23,8 @@
 extern unsigned long hyp_nr_cpus;
 struct host_kvm host_kvm;
 
-struct hyp_pool host_s2_mem;
-struct hyp_pool host_s2_dev;
+static struct hyp_pool host_s2_mem;
+static struct hyp_pool host_s2_dev;
 
 /*
  * Copies of the host's CPU features registers holding sanitized values.
-- 
2.31.1.751.gd2f1c929bd-goog

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static
@ 2021-05-14  8:56   ` Quentin Perret
  0 siblings, 0 replies; 12+ messages in thread
From: Quentin Perret @ 2021-05-14  8:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

The host stage-2 memory pools are not used outside of mem_protect.c,
mark them static.

Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2")
Reported-by: Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Quentin Perret <qperret@google.com>
---
 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/kvm/hyp/nvhe/mem_protect.c b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
index e342f7f4f4fb..4b60c0056c04 100644
--- a/arch/arm64/kvm/hyp/nvhe/mem_protect.c
+++ b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
@@ -23,8 +23,8 @@
 extern unsigned long hyp_nr_cpus;
 struct host_kvm host_kvm;
 
-struct hyp_pool host_s2_mem;
-struct hyp_pool host_s2_dev;
+static struct hyp_pool host_s2_mem;
+static struct hyp_pool host_s2_dev;
 
 /*
  * Copies of the host's CPU features registers holding sanitized values.
-- 
2.31.1.751.gd2f1c929bd-goog

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

* Re: [PATCH 0/2] KVM: arm64: Mark a couple of variables static
  2021-05-14  8:56 ` Quentin Perret
@ 2021-05-14  9:33   ` Marc Zyngier
  -1 siblings, 0 replies; 12+ messages in thread
From: Marc Zyngier @ 2021-05-14  9:33 UTC (permalink / raw)
  To: kvmarm, Quentin Perret; +Cc: kbuild-all, will

On Fri, 14 May 2021 08:56:38 +0000, Quentin Perret wrote:
> The kernel test bot is complaining (and rightfully so) about variables
> introduced by the host stage-2 series that should be static. This series
> fixes all of them.
> 
> Thanks!
> 
> Quentin Perret (2):
>   KVM: arm64: Mark pkvm_pgtable_mm_ops static
>   KVM: arm64: Mark the host stage-2 memory pools static
> 
> [...]

Applied to fixes, thanks!

[1/2] KVM: arm64: Mark pkvm_pgtable_mm_ops static
      commit: 8030d45936f2c526ace7b8404c8272239289b5b7
[2/2] KVM: arm64: Mark the host stage-2 memory pools static
      commit: 72799c362520f37abd929799190350e466890336

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.


_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* Re: [PATCH 0/2] KVM: arm64: Mark a couple of variables static
@ 2021-05-14  9:33   ` Marc Zyngier
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Zyngier @ 2021-05-14  9:33 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

On Fri, 14 May 2021 08:56:38 +0000, Quentin Perret wrote:
> The kernel test bot is complaining (and rightfully so) about variables
> introduced by the host stage-2 series that should be static. This series
> fixes all of them.
> 
> Thanks!
> 
> Quentin Perret (2):
>   KVM: arm64: Mark pkvm_pgtable_mm_ops static
>   KVM: arm64: Mark the host stage-2 memory pools static
> 
> [...]

Applied to fixes, thanks!

[1/2] KVM: arm64: Mark pkvm_pgtable_mm_ops static
      commit: 8030d45936f2c526ace7b8404c8272239289b5b7
[2/2] KVM: arm64: Mark the host stage-2 memory pools static
      commit: 72799c362520f37abd929799190350e466890336

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.


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

* Re: [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static
  2021-05-14  8:56   ` Quentin Perret
@ 2021-05-14 10:09     ` Will Deacon
  -1 siblings, 0 replies; 12+ messages in thread
From: Will Deacon @ 2021-05-14 10:09 UTC (permalink / raw)
  To: Quentin Perret; +Cc: maz, kbuild-all, kvmarm

On Fri, May 14, 2021 at 08:56:40AM +0000, Quentin Perret wrote:
> The host stage-2 memory pools are not used outside of mem_protect.c,
> mark them static.
> 
> Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2")
> Reported-by: Reported-by: kernel test robot <lkp@intel.com>

^^^ nit, but this tag has gone wonky.

Will
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* Re: [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static
@ 2021-05-14 10:09     ` Will Deacon
  0 siblings, 0 replies; 12+ messages in thread
From: Will Deacon @ 2021-05-14 10:09 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

On Fri, May 14, 2021 at 08:56:40AM +0000, Quentin Perret wrote:
> The host stage-2 memory pools are not used outside of mem_protect.c,
> mark them static.
> 
> Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2")
> Reported-by: Reported-by: kernel test robot <lkp@intel.com>

^^^ nit, but this tag has gone wonky.

Will

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

* Re: [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static
  2021-05-14 10:09     ` Will Deacon
@ 2021-05-14 10:12       ` Marc Zyngier
  -1 siblings, 0 replies; 12+ messages in thread
From: Marc Zyngier @ 2021-05-14 10:12 UTC (permalink / raw)
  To: Will Deacon; +Cc: kbuild-all, kvmarm

On 2021-05-14 11:09, Will Deacon wrote:
> On Fri, May 14, 2021 at 08:56:40AM +0000, Quentin Perret wrote:
>> The host stage-2 memory pools are not used outside of mem_protect.c,
>> mark them static.
>> 
>> Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2")
>> Reported-by: Reported-by: kernel test robot <lkp@intel.com>
> 
> ^^^ nit, but this tag has gone wonky.

Well spotted. I'll fix it locally, though the SHA1 will change...

         M.
-- 
Jazz is not dead. It just smells funny...
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* Re: [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static
@ 2021-05-14 10:12       ` Marc Zyngier
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Zyngier @ 2021-05-14 10:12 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On 2021-05-14 11:09, Will Deacon wrote:
> On Fri, May 14, 2021 at 08:56:40AM +0000, Quentin Perret wrote:
>> The host stage-2 memory pools are not used outside of mem_protect.c,
>> mark them static.
>> 
>> Fixes: 1025c8c0c6ac ("KVM: arm64: Wrap the host with a stage 2")
>> Reported-by: Reported-by: kernel test robot <lkp@intel.com>
> 
> ^^^ nit, but this tag has gone wonky.

Well spotted. I'll fix it locally, though the SHA1 will change...

         M.
-- 
Jazz is not dead. It just smells funny...

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

end of thread, other threads:[~2021-05-14 10:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14  8:56 [PATCH 0/2] KVM: arm64: Mark a couple of variables static Quentin Perret
2021-05-14  8:56 ` Quentin Perret
2021-05-14  8:56 ` [PATCH 1/2] KVM: arm64: Mark pkvm_pgtable_mm_ops static Quentin Perret
2021-05-14  8:56   ` Quentin Perret
2021-05-14  8:56 ` [PATCH 2/2] KVM: arm64: Mark the host stage-2 memory pools static Quentin Perret
2021-05-14  8:56   ` Quentin Perret
2021-05-14 10:09   ` Will Deacon
2021-05-14 10:09     ` Will Deacon
2021-05-14 10:12     ` Marc Zyngier
2021-05-14 10:12       ` Marc Zyngier
2021-05-14  9:33 ` [PATCH 0/2] KVM: arm64: Mark a couple of variables static Marc Zyngier
2021-05-14  9:33   ` Marc Zyngier

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.