diff --git a/tlkm/hsa/char_device_hsa.c b/tlkm/hsa/char_device_hsa.c index c1f6ef27..8d855ac9 100644 --- a/tlkm/hsa/char_device_hsa.c +++ b/tlkm/hsa/char_device_hsa.c @@ -58,6 +58,7 @@ #define TLKM_HSA_MAJOR 421 +#ifdef __x86_64__ /******************************************************************************/ /* global struct and variable declarations */ @@ -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 + /******************************************************************************/