Fix unused function warnings
v2: Remove the handler function instead of commenting out split debugmsg function removal to a separate patch Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
9588e66dbd
commit
6fc0e4ba1e
|
@ -82,11 +82,6 @@ static void getversion(int fd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void handler(int fd, void *oldctx, void *newctx)
|
|
||||||
{
|
|
||||||
printf("Got fd %d\n", fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void process_sigio(char *device)
|
static void process_sigio(char *device)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -97,7 +92,6 @@ static void process_sigio(char *device)
|
||||||
}
|
}
|
||||||
|
|
||||||
sigio_fd = fd;
|
sigio_fd = fd;
|
||||||
/* drmInstallSIGIOHandler(fd, handler); */
|
|
||||||
for (;;) sleep(60);
|
for (;;) sleep(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,11 +421,4 @@ int main(int argc, char **argv)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DRM_PRINTFLIKE(4, 0)
|
|
||||||
xf86VDrvMsgVerb(int scrnIndex, int type, int verb, const char *format,
|
|
||||||
va_list args)
|
|
||||||
{
|
|
||||||
vfprintf(stderr, format, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
int xf86ConfigDRI[10];
|
int xf86ConfigDRI[10];
|
||||||
|
|
|
@ -277,6 +277,7 @@ static int drmMatchBusID(const char *id1, const char *id2, int pci_domain_ok)
|
||||||
* If any other failure happened then it will output error mesage using
|
* If any other failure happened then it will output error mesage using
|
||||||
* drmMsg() call.
|
* drmMsg() call.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(UDEV)
|
||||||
static int chown_check_return(const char *path, uid_t owner, gid_t group)
|
static int chown_check_return(const char *path, uid_t owner, gid_t group)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
|
@ -292,6 +293,7 @@ static int chown_check_return(const char *path, uid_t owner, gid_t group)
|
||||||
path, errno, strerror(errno));
|
path, errno, strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the DRM device, creating it if necessary.
|
* Open the DRM device, creating it if necessary.
|
||||||
|
|
Loading…
Reference in New Issue