Skip to contentSkip to conversation

x86/tlb/uv: Add a forward declaration for struct flush_tlb_info

PATCH Applied Borislav Petkov 2 participants 2 messages May 3, 2020

Subsystems (2)
lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/tlb/uv: Add a forward declaration for struct flush_tlb_info

From: Borislav Petkov <[email protected]>

... to fix these build warnings:

In file included from ./arch/x86/include/asm/uv/uv_hub.h:22,
from drivers/misc/sgi-gru/grukdump.c:16:

  ./arch/x86/include/asm/uv/uv.h:39:21: warning: ‘struct flush_tlb_info’ declared \
     inside parameter list will not be visible outside of this definition or declaration
     39 |        const struct flush_tlb_info *info);
        |                     ^~~~~~~~~~~~~~
  In file included from ./arch/x86/include/asm/uv/uv_hub.h:22,
                   from drivers/misc/sgi-gru/grutlbpurge.c:28:
  ./arch/x86/include/asm/uv/uv.h:39:21: warning: ‘struct flush_tlb_info’ declared \
    inside parameter list will not be visible outside of this definition or declaration
     39 |        const struct flush_tlb_info *info);
        |                     ^~~~~~~~~~~~~~

...

after

bfe3d8f6313d ("x86/tlb: Restrict access to tlbstate")

restricted access to tlbstate.

---
 arch/x86/include/asm/uv/uv.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/uv/uv.h +1 -0
index 45ea95ce79b4..91e088ac6904 100644
@@ -8,6 +8,7 @@ enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
 
 struct cpumask;
 struct mm_struct;
+struct flush_tlb_info;
 
 #ifdef CONFIG_X86_UV
 #include <linux/efi.h>
Signature · 1 line
2.21.0
#1 lore raw
The following commit has been merged into the x86/mm branch of tip:

The following commit has been merged into the x86/mm branch of tip:

Commit-ID:     bd1de2a7aace4d1d312fb1be264b8fafdb706208
Gitweb:        https://git.kernel.org/tip/bd1de2a7aace4d1d312fb1be264b8fafdb706208
Author:        Borislav Petkov <[email protected]>
AuthorDate:    Sun, 03 May 2020 12:27:29 +02:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Sun, 03 May 2020 21:43:47 +02:00

x86/tlb/uv: Add a forward declaration for struct flush_tlb_info

... to fix these build warnings:

In file included from ./arch/x86/include/asm/uv/uv_hub.h:22,
from drivers/misc/sgi-gru/grukdump.c:16:

  ./arch/x86/include/asm/uv/uv.h:39:21: warning: ‘struct flush_tlb_info’ declared \
     inside parameter list will not be visible outside of this definition or declaration
     39 |        const struct flush_tlb_info *info);
        |                     ^~~~~~~~~~~~~~
  In file included from ./arch/x86/include/asm/uv/uv_hub.h:22,
                   from drivers/misc/sgi-gru/grutlbpurge.c:28:
  ./arch/x86/include/asm/uv/uv.h:39:21: warning: ‘struct flush_tlb_info’ declared \
    inside parameter list will not be visible outside of this definition or declaration
     39 |        const struct flush_tlb_info *info);
        |                     ^~~~~~~~~~~~~~

...

after

bfe3d8f6313d ("x86/tlb: Restrict access to tlbstate")

restricted access to tlbstate.

---
 arch/x86/include/asm/uv/uv.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/uv/uv.h +1 -0
index 45ea95c..91e088a 100644
@@ -8,6 +8,7 @@ enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
 
 struct cpumask;
 struct mm_struct;
+struct flush_tlb_info;
 
 #ifdef CONFIG_X86_UV
 #include <linux/efi.h>