diff options
author | Brandon Anderson <brandonand@google.com> | 2024-02-29 18:25:34 +0000 |
---|---|---|
committer | Brandon Anderson <brandonand@google.com> | 2024-03-01 02:12:34 +0000 |
commit | 8152d1521e0804600524e7c5420e3408f08f86b7 (patch) | |
tree | 59b2091ffeb104f5f10fcdbd90a40eb18e5a15a7 | |
parent | 9ce20d90f92fe504ad8b97ead5024a387c00f0d1 (diff) | |
download | trusty-8152d1521e0804600524e7c5420e3408f08f86b7.tar.gz |
Trusty driver compat 5.14 panic_notifier
The Trusty driver from 5.10 needs to include a new header
to compile on later kernels.
Change-Id: I60525ad5aa7545b570b9b7193badcfbd150398b0
Bug: 301606895
Signed-off-by: Brandon Anderson <brandonand@google.com>
-rw-r--r-- | drivers/trusty/trusty-log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/trusty/trusty-log.c b/drivers/trusty/trusty-log.c index 79948ee..6bc30b7 100644 --- a/drivers/trusty/trusty-log.c +++ b/drivers/trusty/trusty-log.c @@ -16,6 +16,10 @@ #include <linux/miscdevice.h> #include <linux/poll.h> #include <linux/seq_file.h> +#include <linux/version.h> +#if (KERNEL_VERSION(5, 14, 0) <= LINUX_VERSION_CODE) +#include <linux/panic_notifier.h> +#endif #include <asm/page.h> #include "trusty-log.h" |