Add static qualifier to local functions
v2: Don't bother marking dead functions static (handler, xf86VDrvMsgVerb, drmSetDebugMsgFunction) Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
0706c14e7c
commit
d729d75f84
|
@ -87,7 +87,7 @@ void handler(int fd, void *oldctx, void *newctx)
|
||||||
printf("Got fd %d\n", fd);
|
printf("Got fd %d\n", fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void process_sigio(char *device)
|
static void process_sigio(char *device)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
return ret; \
|
return ret; \
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_bo(struct kms_driver *kms)
|
static int test_bo(struct kms_driver *kms)
|
||||||
{
|
{
|
||||||
struct kms_bo *bo;
|
struct kms_bo *bo;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -53,7 +53,7 @@ int crtcs;
|
||||||
int fbs;
|
int fbs;
|
||||||
char *module_name;
|
char *module_name;
|
||||||
|
|
||||||
const char* getConnectionText(drmModeConnection conn)
|
static const char* getConnectionText(drmModeConnection conn)
|
||||||
{
|
{
|
||||||
switch (conn) {
|
switch (conn) {
|
||||||
case DRM_MODE_CONNECTED:
|
case DRM_MODE_CONNECTED:
|
||||||
|
@ -66,7 +66,7 @@ const char* getConnectionText(drmModeConnection conn)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int printMode(struct drm_mode_modeinfo *mode)
|
static int printMode(struct drm_mode_modeinfo *mode)
|
||||||
{
|
{
|
||||||
if (full_modes) {
|
if (full_modes) {
|
||||||
printf("Mode: %s\n", mode->name);
|
printf("Mode: %s\n", mode->name);
|
||||||
|
@ -90,7 +90,7 @@ int printMode(struct drm_mode_modeinfo *mode)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t value)
|
static int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t value)
|
||||||
{
|
{
|
||||||
const char *name = NULL;
|
const char *name = NULL;
|
||||||
int j;
|
int j;
|
||||||
|
@ -161,7 +161,7 @@ static const char * const output_names[] = { "None",
|
||||||
"DSI",
|
"DSI",
|
||||||
};
|
};
|
||||||
|
|
||||||
int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uint32_t id)
|
static int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uint32_t id)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
struct drm_mode_modeinfo *mode = NULL;
|
struct drm_mode_modeinfo *mode = NULL;
|
||||||
|
@ -214,7 +214,7 @@ int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uin
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int printEncoder(int fd, drmModeResPtr res, drmModeEncoderPtr encoder, uint32_t id)
|
static int printEncoder(int fd, drmModeResPtr res, drmModeEncoderPtr encoder, uint32_t id)
|
||||||
{
|
{
|
||||||
printf("Encoder\n");
|
printf("Encoder\n");
|
||||||
printf("\tid :%i\n", id);
|
printf("\tid :%i\n", id);
|
||||||
|
@ -225,7 +225,7 @@ int printEncoder(int fd, drmModeResPtr res, drmModeEncoderPtr encoder, uint32_t
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id)
|
static int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id)
|
||||||
{
|
{
|
||||||
printf("Crtc\n");
|
printf("Crtc\n");
|
||||||
printf("\tid : %i\n", id);
|
printf("\tid : %i\n", id);
|
||||||
|
@ -239,7 +239,7 @@ int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int printFrameBuffer(int fd, drmModeResPtr res, drmModeFBPtr fb)
|
static int printFrameBuffer(int fd, drmModeResPtr res, drmModeFBPtr fb)
|
||||||
{
|
{
|
||||||
printf("Framebuffer\n");
|
printf("Framebuffer\n");
|
||||||
printf("\thandle : %i\n", fb->handle);
|
printf("\thandle : %i\n", fb->handle);
|
||||||
|
@ -253,7 +253,7 @@ int printFrameBuffer(int fd, drmModeResPtr res, drmModeFBPtr fb)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int printRes(int fd, drmModeResPtr res)
|
static int printRes(int fd, drmModeResPtr res)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
drmModeFBPtr fb;
|
drmModeFBPtr fb;
|
||||||
|
@ -329,7 +329,7 @@ int printRes(int fd, drmModeResPtr res)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void args(int argc, char **argv)
|
static void args(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ static inline int64_t U642I64(uint64_t val)
|
||||||
int fd;
|
int fd;
|
||||||
drmModeResPtr res = NULL;
|
drmModeResPtr res = NULL;
|
||||||
|
|
||||||
const char *connector_type_str(uint32_t type)
|
static const char *connector_type_str(uint32_t type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case DRM_MODE_CONNECTOR_Unknown:
|
case DRM_MODE_CONNECTOR_Unknown:
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
/* allocate as many single page bo to try to starve the kernel
|
/* allocate as many single page bo to try to starve the kernel
|
||||||
* memory zone (below highmem)
|
* memory zone (below highmem)
|
||||||
*/
|
*/
|
||||||
void ttm_starve_kernel_private_memory(int fd)
|
static void ttm_starve_kernel_private_memory(int fd)
|
||||||
{
|
{
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
struct rbo *bo, *tmp;
|
struct rbo *bo, *tmp;
|
||||||
|
@ -55,7 +55,7 @@ void ttm_starve_kernel_private_memory(int fd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int radeon_open_fd(void)
|
static int radeon_open_fd(void)
|
||||||
{
|
{
|
||||||
return drmOpen("radeon", NULL);
|
return drmOpen("radeon", NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue