]> www.infradead.org Git - linux.git/commitdiff
efi/cper, cxl: Remove cper_cxl.h
authorSmita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Thu, 23 Jan 2025 08:44:18 +0000 (08:44 +0000)
committerDave Jiang <dave.jiang@intel.com>
Thu, 6 Feb 2025 18:27:16 +0000 (11:27 -0700)
Move the declaration of cxl_cper_print_prot_err() to include/linux/cper.h
to avoid maintaining a separate header file just for this function
declaration. Remove drivers/firmware/efi/cper_cxl.h as its contents have
been reorganized.

No functional changes.

Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20250123084421.127697-4-Smita.KoralahalliChannabasappa@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/firmware/efi/cper.c
drivers/firmware/efi/cper_cxl.c
drivers/firmware/efi/cper_cxl.h [deleted file]
include/linux/cper.h

index ae1953e2b214e1e8e9f07172f07f509e2f306ca4..928409199a1a4009b11cf3189fe036ad8861169c 100644 (file)
@@ -25,7 +25,6 @@
 #include <acpi/ghes.h>
 #include <ras/ras_event.h>
 #include <cxl/event.h>
-#include "cper_cxl.h"
 
 /*
  * CPER record ID need to be unique even after reboot, because record
index 64c0dd27be6ed10254aadf462e823b1f43f7e2b5..8a7667faf9534f441966bf96497e7b31b2bf6571 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <linux/cper.h>
 #include <cxl/event.h>
-#include "cper_cxl.h"
 
 static const char * const prot_err_agent_type_strs[] = {
        "Restricted CXL Device",
diff --git a/drivers/firmware/efi/cper_cxl.h b/drivers/firmware/efi/cper_cxl.h
deleted file mode 100644 (file)
index 5ce1401..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * UEFI Common Platform Error Record (CPER) support for CXL Section.
- *
- * Copyright (C) 2022 Advanced Micro Devices, Inc.
- *
- * Author: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
- */
-
-#ifndef LINUX_CPER_CXL_H
-#define LINUX_CPER_CXL_H
-
-void cxl_cper_print_prot_err(const char *pfx,
-                            const struct cxl_cper_sec_prot_err *prot_err);
-
-#endif //__CPER_CXL_
index 5c6d4d5b997534c5a7ce8c16f79262b3875e0ce1..0ed60a91eca9d6425c9a41947a927b59f7aa2c71 100644 (file)
@@ -605,4 +605,8 @@ void cper_estatus_print(const char *pfx,
 int cper_estatus_check_header(const struct acpi_hest_generic_status *estatus);
 int cper_estatus_check(const struct acpi_hest_generic_status *estatus);
 
+struct cxl_cper_sec_prot_err;
+void cxl_cper_print_prot_err(const char *pfx,
+                            const struct cxl_cper_sec_prot_err *prot_err);
+
 #endif