lkml.org 
[lkml]   [2023]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 2/6] efi/cper: Export cper_mem_err_unpack() for use by modules
    Date
    The CXL driver plans to use cper_print_aer() for restricted CXL host (RCH)
    logging. This is not currently possible if CXL is built as a loadable
    module because cper_print_aer() depends on cper_mem_err_unpack() which
    is not exported.

    Export cper_mem_err_unpack() to enable cper_print_aer() usage in
    CXL and other loadable modules.

    Signed-off-by: Terry Bowman <terry.bowman@amd.com>
    Cc: Ard Biesheuvel <ardb@kernel.org>
    Cc: linux-efi@vger.kernel.org
    ---
    drivers/firmware/efi/cper.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c
    index 35c37f667781..ff15e12160ae 100644
    --- a/drivers/firmware/efi/cper.c
    +++ b/drivers/firmware/efi/cper.c
    @@ -350,6 +350,7 @@ const char *cper_mem_err_unpack(struct trace_seq *p,

    return ret;
    }
    +EXPORT_SYMBOL_GPL(cper_mem_err_unpack);

    static void cper_print_mem(const char *pfx, const struct cper_sec_mem_err *mem,
    int len)
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-04-11 20:06    [W:6.057 / U:0.120 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site