kldload tpm: Fail to load: "link_elf_obj: symbol tpm_bus_driver undefined"

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Fri, 17 May 2024 10:09:00 UTC
Hello,

tpm kernel module fails to load starting on main from May 9.
Updated today and same error:

```
$ kldload tpm
kldload: an error occurred while loading module tpm. Please check dmesg(8)
for more details.

(dmesg)
link_elf_obj: symbol tpm_bus_driver undefined
linker_load_file: /boot/kernel/tpm.ko - unsupported file type
```

I believe it is related to:

---
commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9
Author: Justin Hibbits <jhibbits@FreeBSD.org>
Date:   Thu May 9 15:27:35 2024 -0400

    tpm20: Support partial reads

    Summary:
    In some cases the TPM utilities may read only a partial block, instead
    of a full block.  If a new command starts while in the middle of a read
    it may cause the TPM to go catatonic and no longer respond to SPI.

    Reviewed by:    kd
    Obtained from:  Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D45140
---

I use tpm for bhyve/Win11.

Thanks,
-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org