Skip to content

Commit

Permalink
Exclude hsa char device from 32bit devices
Browse files Browse the repository at this point in the history
  • Loading branch information
cahz committed Jun 12, 2019
1 parent ab5503e commit 4bd4ae8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tlkm/hsa/char_device_hsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

#define TLKM_HSA_MAJOR 421

#ifdef __x86_64__
/******************************************************************************/
/* global struct and variable declarations */

Expand Down Expand Up @@ -516,4 +517,16 @@ void char_hsa_unregister(void)
}
}

#else

// dummy functions on 32bit devices
int char_hsa_register(struct tlkm_device *tlkm_dev)
{
return 0;
}

void char_hsa_unregister(void) {}

#endif

/******************************************************************************/

0 comments on commit 4bd4ae8

Please sign in to comment.