From: Doug Goldstein Date: Thu, 19 Jan 2017 09:35:14 +0000 (+0100) Subject: x86/mtrr: drop positive_have_wrcomb() X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2952 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a7de843128cb6b60bc43bc2c766aa2d53e48f182;p=xen.git x86/mtrr: drop positive_have_wrcomb() The only call to have_wrcomb() was always to the generic implementation. positive_have_wrcomb() was unused. Signed-off-by: Doug Goldstein Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/cpu/mtrr/generic.c b/xen/arch/x86/cpu/mtrr/generic.c index b7d329303b..8d4537aeb1 100644 --- a/xen/arch/x86/cpu/mtrr/generic.c +++ b/xen/arch/x86/cpu/mtrr/generic.c @@ -557,11 +557,6 @@ static int generic_have_wrcomb(void) return (config & (1ULL << 10)); } -int positive_have_wrcomb(void) -{ - return 1; -} - /* generic structure... */ const struct mtrr_ops generic_mtrr_ops = { diff --git a/xen/arch/x86/cpu/mtrr/mtrr.h b/xen/arch/x86/cpu/mtrr/mtrr.h index 53d369d78f..ec168f9961 100644 --- a/xen/arch/x86/cpu/mtrr/mtrr.h +++ b/xen/arch/x86/cpu/mtrr/mtrr.h @@ -31,8 +31,6 @@ extern int generic_validate_add_page(unsigned long base, unsigned long size, extern const struct mtrr_ops generic_mtrr_ops; -extern int positive_have_wrcomb(void); - /* library functions for processor-specific routines */ struct set_mtrr_context { unsigned long flags;