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
+2 -5
View File
@@ -28,15 +28,12 @@
#include <string.h>
#include "linux/kfd_ioctl.h"
HSAKMT_STATUS
HSAKMTAPI
hsaKmtGetVersion(
HsaVersionInfo* VersionInfo //OUT
)
HSAKMT_STATUS HSAKMTAPI hsaKmtGetVersion(HsaVersionInfo *VersionInfo)
{
CHECK_KFD_OPEN();
struct kfd_ioctl_get_version_args args;
memset(&args, 0, sizeof(args));
if (kmtIoctl(kfd_fd, AMDKFD_IOC_GET_VERSION, &args) == -1)