c824b770cc
- fbdef-0.4.0-Remove-useless-loader-symbol-lists.patch: fix linker error against X server >= 1.6.99.1
154 lines
3.7 KiB
Diff
154 lines
3.7 KiB
Diff
From 16ea2bb46c9acc881f66a1f498d63586071aa9b7 Mon Sep 17 00:00:00 2001
|
|
From: Adam Jackson <ajax@redhat.com>
|
|
Date: Thu, 28 May 2009 14:55:08 -0400
|
|
Subject: [PATCH] Remove useless loader symbol lists.
|
|
|
|
---
|
|
src/fbdev.c | 74 -----------------------------------------------------------
|
|
1 files changed, 0 insertions(+), 74 deletions(-)
|
|
|
|
diff --git a/src/fbdev.c b/src/fbdev.c
|
|
index d37f149..9e66095 100644
|
|
--- a/src/fbdev.c
|
|
+++ b/src/fbdev.c
|
|
@@ -141,67 +141,6 @@ static const OptionInfoRec FBDevOptions[] = {
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
|
|
-static const char *afbSymbols[] = {
|
|
- "afbScreenInit",
|
|
- "afbCreateDefColormap",
|
|
- NULL
|
|
-};
|
|
-
|
|
-static const char *fbSymbols[] = {
|
|
- "fbScreenInit",
|
|
- "fbPictureInit",
|
|
- NULL
|
|
-};
|
|
-
|
|
-static const char *shadowSymbols[] = {
|
|
- "shadowAdd",
|
|
- "shadowInit",
|
|
- "shadowSetup",
|
|
- "shadowUpdatePacked",
|
|
- "shadowUpdatePackedWeak",
|
|
- "shadowUpdateRotatePacked",
|
|
- "shadowUpdateRotatePackedWeak",
|
|
- NULL
|
|
-};
|
|
-
|
|
-static const char *fbdevHWSymbols[] = {
|
|
- "fbdevHWInit",
|
|
- "fbdevHWProbe",
|
|
- "fbdevHWSetVideoModes",
|
|
- "fbdevHWUseBuildinMode",
|
|
-
|
|
- "fbdevHWGetDepth",
|
|
- "fbdevHWGetLineLength",
|
|
- "fbdevHWGetName",
|
|
- "fbdevHWGetType",
|
|
- "fbdevHWGetVidmem",
|
|
- "fbdevHWLinearOffset",
|
|
- "fbdevHWLoadPalette",
|
|
- "fbdevHWMapVidmem",
|
|
- "fbdevHWUnmapVidmem",
|
|
-
|
|
- /* colormap */
|
|
- "fbdevHWLoadPalette",
|
|
- "fbdevHWLoadPaletteWeak",
|
|
-
|
|
- /* ScrnInfo hooks */
|
|
- "fbdevHWAdjustFrameWeak",
|
|
- "fbdevHWEnterVTWeak",
|
|
- "fbdevHWLeaveVTWeak",
|
|
- "fbdevHWModeInit",
|
|
- "fbdevHWRestore",
|
|
- "fbdevHWSave",
|
|
- "fbdevHWSaveScreen",
|
|
- "fbdevHWSaveScreenWeak",
|
|
- "fbdevHWSwitchModeWeak",
|
|
- "fbdevHWValidModeWeak",
|
|
-
|
|
- "fbdevHWDPMSSet",
|
|
- "fbdevHWDPMSSetWeak",
|
|
-
|
|
- NULL
|
|
-};
|
|
-
|
|
#ifdef XFree86LOADER
|
|
|
|
MODULESETUPPROTO(FBDevSetup);
|
|
@@ -230,8 +169,6 @@ FBDevSetup(pointer module, pointer opts, int *errmaj, int *errmin)
|
|
if (!setupDone) {
|
|
setupDone = TRUE;
|
|
xf86AddDriver(&FBDEV, module, HaveDriverFuncs);
|
|
- LoaderRefSymLists(afbSymbols, fbSymbols,
|
|
- shadowSymbols, fbdevHWSymbols, NULL);
|
|
return (pointer)1;
|
|
} else {
|
|
if (errmaj) *errmaj = LDR_ONCEONLY;
|
|
@@ -307,8 +244,6 @@ static Bool FBDevPciProbe(DriverPtr drv, int entity_num,
|
|
if (!xf86LoadDrvSubModule(drv, "fbdevhw"))
|
|
return FALSE;
|
|
|
|
- xf86LoaderReqSymLists(fbdevHWSymbols, NULL);
|
|
-
|
|
pScrn = xf86ConfigPciEntity(NULL, 0, entity_num, NULL, NULL,
|
|
NULL, NULL, NULL, NULL);
|
|
if (pScrn) {
|
|
@@ -369,8 +304,6 @@ FBDevProbe(DriverPtr drv, int flags)
|
|
if (!xf86LoadDrvSubModule(drv, "fbdevhw"))
|
|
return FALSE;
|
|
|
|
- xf86LoaderReqSymLists(fbdevHWSymbols, NULL);
|
|
-
|
|
for (i = 0; i < numDevSections; i++) {
|
|
Bool isIsa = FALSE;
|
|
Bool isPci = FALSE;
|
|
@@ -463,7 +396,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
|
FBDevPtr fPtr;
|
|
int default_depth, fbbpp;
|
|
const char *mod = NULL, *s;
|
|
- const char **syms = NULL;
|
|
int type;
|
|
|
|
if (flags & PROBE_DETECT) return FALSE;
|
|
@@ -620,7 +552,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
|
{
|
|
case FBDEVHW_PLANES:
|
|
mod = "afb";
|
|
- syms = afbSymbols;
|
|
break;
|
|
case FBDEVHW_PACKED_PIXELS:
|
|
switch (pScrn->bitsPerPixel)
|
|
@@ -630,7 +561,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
|
case 24:
|
|
case 32:
|
|
mod = "fb";
|
|
- syms = fbSymbols;
|
|
break;
|
|
default:
|
|
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
|
@@ -666,9 +596,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
|
FBDevFreeRec(pScrn);
|
|
return FALSE;
|
|
}
|
|
- if (mod && syms) {
|
|
- xf86LoaderReqSymLists(syms, NULL);
|
|
- }
|
|
|
|
/* Load shadow if needed */
|
|
if (fPtr->shadowFB) {
|
|
@@ -678,7 +605,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
|
FBDevFreeRec(pScrn);
|
|
return FALSE;
|
|
}
|
|
- xf86LoaderReqSymLists(shadowSymbols, NULL);
|
|
}
|
|
|
|
TRACE_EXIT("PreInit");
|
|
--
|
|
1.6.3.rc1.2.g0164.dirty
|
|
|