diff options
| author | Jason Gunthorpe <[email protected]> | 2025-04-17 16:26:16 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2025-04-29 15:20:11 +0000 |
| commit | 20125324c01d30f7ff36183a8f48ffebca9db584 (patch) | |
| tree | 96d6464a461b37f461f264e181b272780fc989e2 /lib/debugobjects.c | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-20125324c01d30f7ff36183a8f48ffebca9db584.tar.gz kernel-20125324c01d30f7ff36183a8f48ffebca9db584.zip | |
arm64: Add missing includes for mem_encrypt
Doing:
#include <linux/mem_encrypt.h>
Causes a bunch of compiler failures due to missing implicit includes that
don't happen on x86:
../arch/arm64/include/asm/rsi_cmds.h:117:2: error: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
117 | memcpy(®s.a1, challenge, size);
../arch/arm64/include/asm/mem_encrypt.h:19:49: warning: declaration of 'struct device' will not be visible outside of this function [-Wvisibility]
19 | static inline bool force_dma_unencrypted(struct device *dev)
../arch/arm64/include/asm/rsi_cmds.h:44:38: error: call to undeclared function 'virt_to_phys'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
44 | arm_smccc_smc(SMC_RSI_REALM_CONFIG, virt_to_phys(cfg),
Add the missing includes to the arch/arm headers to avoid this.
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
