Move xchomp inside #ifdef __linux__
static function only called from the matchDriverFromFiles function that's inside #ifdef __linux__ section Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
ccbba444b7
commit
d75777d54c
|
@ -1167,6 +1167,7 @@ videoPtrToDriverList(struct pci_device *dev,
|
||||||
return i; /* Number of entries added */
|
return i; /* Number of entries added */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
static int
|
static int
|
||||||
xchomp(char *line)
|
xchomp(char *line)
|
||||||
{
|
{
|
||||||
|
@ -1183,7 +1184,6 @@ xchomp(char *line)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
|
||||||
/* This function is used to provide a workaround for binary drivers that
|
/* This function is used to provide a workaround for binary drivers that
|
||||||
* don't export their PCI ID's properly. If distros don't end up using this
|
* don't export their PCI ID's properly. If distros don't end up using this
|
||||||
* feature it can and should be removed because the symbol-based resolution
|
* feature it can and should be removed because the symbol-based resolution
|
||||||
|
|
Loading…
Reference in New Issue
Block a user