[PATCH 3/4] tpm_crb_ffa: Include linux/slab.h for kzalloc_obj() and kfree()
Petr Pavlu <[email protected]> Tue, 7 Jul 2026 17:37:06 +0200
| Newsgroups | org.kernel.vger.linux-integrity,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-modules,org.kernel.vger.linux-s390 |
|---|---|
| Message-ID | <[email protected]> |
The drivers/char/tpm/tpm_crb_ffa.c file uses kzalloc_obj() and kfree(), which are declared in linux/slab.h. It currently relies on this header being included indirectly through linux/module.h -> linux/elf.h. Add the missing include in preparation for removing the linux/elf.h include from linux/module.h. Signed-off-by: Petr Pavlu <[email protected]> --- drivers/char/tpm/tpm_crb_ffa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c index 025c4d4b17ca..af4466cdc297 100644 --- a/drivers/char/tpm/tpm_crb_ffa.c +++ b/drivers/char/tpm/tpm_crb_ffa.c @@ -12,6 +12,7 @@ #include <linux/arm_ffa.h> #include <linux/delay.h> #include <linux/moduleparam.h> +#include <linux/slab.h> #include "tpm_crb_ffa.h" static unsigned int busy_timeout_ms = 2000; -- 2.54.0