Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1723585rwl; Fri, 24 Mar 2023 14:44:13 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8raRNSb8oVoz10waB/G+uXfG/hG45jsTeeP7LNiLCL9xalew4Sdp+LwJU6RHtF6W0410j X-Received: by 2002:a17:906:3e95:b0:932:be78:a728 with SMTP id a21-20020a1709063e9500b00932be78a728mr3480567ejj.68.1679694252821; Fri, 24 Mar 2023 14:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679694252; cv=none; d=google.com; s=arc-20160816; b=RJ5h1buH4jfw3s/N1WmiwtT65nH7SPiytdSlmAVCk1+wHRDUCNbQlX2QWueeVy6V95 pqx2unHCK/IJzP9B8TgJ+ZdyyiuLto68Uz8skhAQxMeew2ImyIpJ7yGC7H8bPqAaQeN1 vp+Olu+wcF4LvhVqY1ZEkINtqjumdBmY9+WyQhyPGH/KcmRnVRP9zyC09DLoCdls6DYv ZNEwe63UXOwxIDCoVs0H9CN/RPH2joN7U+aV4KvyufnVP9P6Om9m+M5LlI/EmISXN2C2 zrICMVo7IjZztfey0G/ptneF5qG0x5hDIrA1k83M3kxYXalW0RrJLG3xqovGY8HyEQWi vQHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=u7n/aUIZreO3Fwplmo9Bz/yeqkHMli4Ms+J2K93H6/4=; b=llIQZfSFxgOt+ne2KIEbdbeqS4YzfFh/cy81hKkB0+TMoIwVa7LGeLOd13oHVm399v y/sNSX2yaXfN5SDUK08VHzOwF/KPUIdToP+sOS+RIEyrlr3hr2pYANPL7j0AId9ft4mV RCWm0R5zK2BD7GGWtpbSygtvoa5euY05ubcxsgOcA01XN9g1baJn1miivTtEAalC3bDE EuXsG9yaZW1pRvoOkH8S4Mj1rkSL9PbB6PKVCKVganCqB/FI7KD69IGnPoMqEfvC8E2J D6axXgWwaDMzhvM5uCEz333UNdlyN1/emIXslmt2dt5dVAfJPPu8I9U8tViHO3mcZ0Zs U29g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y1C0yqHV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a170906a10b00b008c8b1a72efcsi20078764ejy.816.2023.03.24.14.43.46; Fri, 24 Mar 2023 14:44:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y1C0yqHV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231862AbjCXVmE (ORCPT + 99 others); Fri, 24 Mar 2023 17:42:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbjCXVmD (ORCPT ); Fri, 24 Mar 2023 17:42:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C88B1B57A; Fri, 24 Mar 2023 14:42:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D4C762C87; Fri, 24 Mar 2023 21:42:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 439E3C433D2; Fri, 24 Mar 2023 21:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679694121; bh=xRa+m0mHGF8D1AxbZaKzDTDZQwY354virrBeCtIyB18=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Y1C0yqHVuhxPHdfidRKUzK0ojng5Vs33q9VzcX+HPooy6IwHpiLex6g5UrEn2/5BL ODkgGgWqXgkgXOUOgZg6QXyQk/07XcH+VVcZgM8XeuPsi0XFIEFTxIHINfPX6h3FCP mOx5MXWRdC83YI0uKf7h93RRXWndCD0XtiNr+dFg6RBRr7toDpqDDJPpsQcbBR3rg0 1Z28B42EBITIaMObyiBfUaPz7Drpr+P0Ny29YxizRl4kSjvyEmhT7omtSOEPqTEkvw UlRJjxmyHSJlYSD7uImzOUxndnlkq9WhsN3CZOJJZBPjml5Y7sN3iRcs2kbwJ6SSON dPgXLxtdnhqfg== Date: Fri, 24 Mar 2023 16:41:59 -0500 From: Bjorn Helgaas To: Terry Bowman Cc: alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, bwidawsk@kernel.org, dan.j.williams@intel.com, dave.jiang@intel.com, Jonathan.Cameron@huawei.com, linux-cxl@vger.kernel.org, rrichter@amd.com, linux-kernel@vger.kernel.org, bhelgaas@google.com Subject: Re: [PATCH v2 3/5] pci/aer: Export cper_print_aer() for CXL driver logging Message-ID: <20230324214159.GA2660001@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230323213808.398039-4-terry.bowman@amd.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023 at 04:38:06PM -0500, Terry Bowman wrote: > The CXL driver plans to use cper_print_aer() for restricted CXL host > (RCH) logging. cper_print_aer() is not exported and as a result is not > available to the CXL driver or other loadable modules. Export > cper_print_aer() making it available to CXL and other loadable modules. > > Signed-off-by: Terry Bowman > Cc: Mahesh J Salgaonkar > Cc: "Oliver O'Halloran" > Cc: Bjorn Helgaas > Cc: linux-pci@vger.kernel.org Acked-by: Bjorn Helgaas But please update the subject line to: PCI/AER: Export cper_print_aer() for use by modules to match previous history. > --- > drivers/pci/pcie/aer.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c > index 625f7b2cafe4..7f0f52d094a4 100644 > --- a/drivers/pci/pcie/aer.c > +++ b/drivers/pci/pcie/aer.c > @@ -809,6 +809,7 @@ void cper_print_aer(struct pci_dev *dev, int aer_severity, > trace_aer_event(dev_name(&dev->dev), (status & ~mask), > aer_severity, tlp_header_valid, &aer->header_log); > } > +EXPORT_SYMBOL_GPL(cper_print_aer); > #endif > > /** > -- > 2.34.1 >