Clean up thunk code

Use checkpatch.pl to fix the majority of errors. Some that remain and
will be excluded:
Use of typedefs/externs/volatile/sscanf
Lines over 80 characters

Remaining errors are due to misunderstanding the * symbol with typedefs

Also use this opportunity to spell manageable properly

Change-Id: I0b335e9cb3e1eea38bee27eaa1f582b2c9b09b38


[ROCm/ROCR-Runtime commit: b78e0e152a]
This commit is contained in:
Kent Russell
2017-04-20 08:25:00 -04:00
parent c0e1079b78
commit c53049ce46
15 changed files with 819 additions and 1108 deletions
+4 -6
View File
@@ -1597,8 +1597,7 @@ uint32_t pmc_table_get_max_concurrent(int block_id)
}
}
static HSAKMT_STATUS
alloc_pmc_blocks_iommu(void)
static HSAKMT_STATUS alloc_pmc_blocks_iommu(void)
{
DIR *dir;
struct dirent *dent;
@@ -1704,10 +1703,9 @@ void free_pmc_blocks(void)
iommu_block.num_of_counters = 0;
}
HSAKMT_STATUS
get_block_properties(uint32_t node_id,
enum perf_block_id block_id,
struct perf_counter_block *block)
HSAKMT_STATUS get_block_properties(uint32_t node_id,
enum perf_block_id block_id,
struct perf_counter_block *block)
{
uint16_t dev_id = get_device_id_by_node(node_id);
enum asic_family_type asic;