I am trying to register a TPM driver in Linux. While Compiling, I am able to get the .ko output file but get the errors listed below. In my opinion, this has to do with the linux headers on my machine which maybe missing the defintions of these functions. I upgraded both the linux headers and the kernel to the latest version but still getting the issue.
Since these functions are not being recognized, modprobe fails with the same error (unknown symbol err0 on these functions).
Building modules, stage 2. Building with KERNELRELEASE = 4.4.0-45-generic MODPOST 2 modules WARNING: "tpm_open" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_read" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_remove_hardware" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_release" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_show_pubek" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_show_caps" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_write" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_register_hardware" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_store_cancel" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined! WARNING: "tpm_show_pcrs" [/home/burwani/Desktop/tpm_act2_driver_poc/tpm_act2_driver/tpm_act2.ko] undefined!