From 949ef6b79a36d6f6bbc192c20ef0f13cc95d4f28 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 3 Oct 2008 15:10:26 -0400 Subject: [PATCH] Unexport xf86ChkConflict Also remove the unused internal ChkConflict() --- hw/xfree86/common/xf86.h | 1 - hw/xfree86/common/xf86Bus.c | 13 ++----------- hw/xfree86/common/xf86Bus.h | 1 - hw/xfree86/loader/xf86sym.c | 1 - 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 325d9b2e5..9e3826cbc 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -134,7 +134,6 @@ Bool xf86IsEntityPrimary(int entityIndex); resPtr xf86ReallocatePciResources(int entityIndex, resPtr pRes); resPtr xf86SetOperatingState(resList list, int entityIndex, int mask); void xf86EnterServerState(xf86State state); -memType xf86ChkConflict(resRange *rgp, int entityIndex); ScrnInfoPtr xf86FindScreenForEntity(int entityIndex); Bool xf86NoSharedResources(int screenIndex, resType res); resPtr xf86FindIntersectOfLists(resPtr l1, resPtr l2); diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index 69d23a71e..0933738b7 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -1099,24 +1099,15 @@ checkConflict(resRange *rgp, resPtr pRes, int entityIndex, return 0; } -/* - * ChkConflict() -- used within xxxBus ; find conflict with any location. - */ -memType -ChkConflict(resRange *rgp, resPtr res, xf86State state) -{ - return checkConflict(rgp, res, -2, state,FALSE); -} - /* * xf86ChkConflict() - This function is the low level interface to * the resource broker that gets exported. Tests all resources ie. * performs test with SETUP flag. */ -_X_EXPORT memType +static memType xf86ChkConflict(resRange *rgp, int entityIndex) { - return checkConflict(rgp, Acc, entityIndex, SETUP,FALSE); + return checkConflict(rgp, Acc, entityIndex, SETUP, FALSE); } /* diff --git a/hw/xfree86/common/xf86Bus.h b/hw/xfree86/common/xf86Bus.h index 246302d1a..d28190a23 100644 --- a/hw/xfree86/common/xf86Bus.h +++ b/hw/xfree86/common/xf86Bus.h @@ -129,7 +129,6 @@ extern BusAccPtr xf86BusAccInfo; int xf86AllocateEntity(void); BusType StringToBusType(const char* busID, const char **retID); -memType ChkConflict(resRange *rgp, resPtr res, xf86State state); Bool xf86IsSubsetOf(resRange range, resPtr list); resPtr xf86ExtractTypeFromList(resPtr list, unsigned long type); resPtr xf86FindIntersect(resRange Range, resPtr list); diff --git a/hw/xfree86/loader/xf86sym.c b/hw/xfree86/loader/xf86sym.c index 9850a5566..af9b6ed80 100644 --- a/hw/xfree86/loader/xf86sym.c +++ b/hw/xfree86/loader/xf86sym.c @@ -322,7 +322,6 @@ _X_HIDDEN void *xfree86LookupTab[] = { SYMFUNC(xf86CheckPciMemBase) SYMFUNC(xf86IsEntityPrimary) SYMFUNC(xf86SetOperatingState) - SYMFUNC(xf86ChkConflict) SYMFUNC(xf86FindScreenForEntity) SYMFUNC(xf86NoSharedResources) /* Shared Accel Accessor Functions */