AnsweredAssumed Answered

Can't compile AMDPowerDriver on Linux 5.6.12 - implicit function declaration error

Question asked by kiroma on May 27, 2020

I'm on OpenSUSE Tumbleweed and I just tired to install the AMDPowerDriver through the install script. The compilation process however failed due to the following:

/usr/src/AMDPowerProfiler-8.00/src/PwrDriverUtils.c: In function ‘HelpMapMMIOSpace’:
/usr/src/AMDPowerProfiler-8.00/src/PwrDriverUtils.c:316:30: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]
  316 |     *mappedAddress = (uint64)ioremap(address, size);
      |                              ^~~~~~~
/usr/src/AMDPowerProfiler-8.00/src/PwrDriverUtils.c: In function ‘HelpUnmapMMIOSpace’:
/usr/src/AMDPowerProfiler-8.00/src/PwrDriverUtils.c:325:5: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
  325 |     iounmap((void*)mappedAddress);
      |     ^~~~~~~
cc1: some warnings being treated as errors

Outcomes