Skip to content

Commit fbe1d37

Browse files
Christoph HellwigKAGA-KOKO
authored andcommitted
x86/platform/uv: Remove _uv_hub_info_check()
Neither this functions nor the helpers used to implement it are used anywhere in the kernel tree. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Not-acked-by: Dimitri Sivanich <[email protected]> Cc: Russ Anderson <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 8e77554 commit fbe1d37

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

arch/x86/include/asm/uv/uv_hub.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -219,20 +219,6 @@ static inline struct uv_hub_info_s *uv_cpu_hub_info(int cpu)
219219
return (struct uv_hub_info_s *)uv_cpu_info_per(cpu)->p_uv_hub_info;
220220
}
221221

222-
#define UV_HUB_INFO_VERSION 0x7150
223-
extern int uv_hub_info_version(void);
224-
static inline int uv_hub_info_check(int version)
225-
{
226-
if (uv_hub_info_version() == version)
227-
return 0;
228-
229-
pr_crit("UV: uv_hub_info version(%x) mismatch, expecting(%x)\n",
230-
uv_hub_info_version(), version);
231-
232-
BUG(); /* Catastrophic - cannot continue on unknown UV system */
233-
}
234-
#define _uv_hub_info_check() uv_hub_info_check(UV_HUB_INFO_VERSION)
235-
236222
/*
237223
* HUB revision ranges for each UV HUB architecture.
238224
* This is a software convention - NOT the hardware revision numbers in

arch/x86/kernel/apic/x2apic_uv_x.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,6 @@ static __initdata struct uv_gam_range_s *_gr_table;
415415

416416
#define SOCK_EMPTY ((unsigned short)~0)
417417

418-
extern int uv_hub_info_version(void)
419-
{
420-
return UV_HUB_INFO_VERSION;
421-
}
422-
EXPORT_SYMBOL(uv_hub_info_version);
423-
424418
/* Default UV memory block size is 2GB */
425419
static unsigned long mem_block_size __initdata = (2UL << 30);
426420

0 commit comments

Comments
 (0)