diff options
| author | David E. Box <[email protected]> | 2024-07-25 12:23:40 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2024-08-12 14:21:31 +0000 |
| commit | fc9aef4382c02774662da3d7e1de8ba224e04f80 (patch) | |
| tree | 64bc0155b1ab1cf23f321b36a419e5e46720e680 /drivers/platform/x86/intel/vsec.c | |
| parent | platform/x86/intel/pmc: Show live substate requirements (diff) | |
| download | kernel-fc9aef4382c02774662da3d7e1de8ba224e04f80.tar.gz kernel-fc9aef4382c02774662da3d7e1de8ba224e04f80.zip | |
platform/x86/intel/vsec.h: Move to include/linux
Some drivers outside of PDX86 need access to the vsec header. Move it to
include/linux to make it easier to include.
Reviewed-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Michael J. Ruhl <[email protected]>
Signed-off-by: David E. Box <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/vsec.c')
| -rw-r--r-- | drivers/platform/x86/intel/vsec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/platform/x86/intel/vsec.c b/drivers/platform/x86/intel/vsec.c index 0fdfaf3a4f5c..2b46807f868b 100644 --- a/drivers/platform/x86/intel/vsec.c +++ b/drivers/platform/x86/intel/vsec.c @@ -17,14 +17,13 @@ #include <linux/bits.h> #include <linux/cleanup.h> #include <linux/delay.h> -#include <linux/kernel.h> #include <linux/idr.h> +#include <linux/intel_vsec.h> +#include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/types.h> -#include "vsec.h" - #define PMT_XA_START 0 #define PMT_XA_MAX INT_MAX #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX) @@ -341,7 +340,7 @@ static bool intel_vsec_walk_vsec(struct pci_dev *pdev, void intel_vsec_register(struct pci_dev *pdev, struct intel_vsec_platform_info *info) { - if (!pdev || !info) + if (!pdev || !info || !info->headers) return; intel_vsec_walk_header(pdev, info); |
