Skip to content

Commit

Permalink
drm/qxl: fix build with debugfs turned off.
Browse files Browse the repository at this point in the history
Reported-by: Randy Dunlap
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Apr 18, 2013
1 parent 9f7bc6a commit e1adc78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/qxl/qxl_ttm.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ static int qxl_mm_dump_table(struct seq_file *m, void *data)

static int qxl_ttm_debugfs_init(struct qxl_device *qdev)
{
#if defined(CONFIG_DEBUG_FS)
static struct drm_info_list qxl_mem_types_list[QXL_DEBUGFS_MEM_TYPES];
static char qxl_mem_types_names[QXL_DEBUGFS_MEM_TYPES][32];
unsigned i;
Expand All @@ -574,4 +575,7 @@ static int qxl_ttm_debugfs_init(struct qxl_device *qdev)

}
return qxl_debugfs_add_files(qdev, qxl_mem_types_list, i);
#else
return 0;
#endif
}

0 comments on commit e1adc78

Please sign in to comment.