Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp187586rwl; Thu, 23 Mar 2023 14:40:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bkVhntvr2WDa/ss5Fc7BI+KN8erEftw1/CwsTy+tSQKSIwuhrOZMmGeRlacYfDije80j58 X-Received: by 2002:a17:90b:3b4f:b0:234:2485:6743 with SMTP id ot15-20020a17090b3b4f00b0023424856743mr471558pjb.3.1679607616402; Thu, 23 Mar 2023 14:40:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679607616; cv=pass; d=google.com; s=arc-20160816; b=ZCxpVasAjexb9VTbIXth6Q/n+w7XkzjhrzOmu+X3oUgawzEqwI85eCd7XdpPWXeoez txvQXzwuUiHSVuIz5wCNAQda3kIUfFD7ek4X6Xbigjfw8fHkuJqSghb+kowrmkkyEaf4 iuLw38dO4BZFNVqgiwEodUZ86VCyA3BBvgfKVuUEqNVeqphBtQiFT985YHtF3DbsB9l/ w6ZqgV1AFglOU9iAOMFNdzYHFMhEVJqjg/b2j6X78gMUFhBYVBvfAljn4WWmBwpn4cRY PECkX6axSlPPfL4k+3KwSaITUKcFvA1PG1ABbUu8mUn2To0snqsOxMX3fkiMLEi0dK/3 n8iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=07J6IZKFhviOEMH2B3UgawtEh/IZiwn+zz+5sk0vlFQ=; b=qDF8ICIs3T1b0cf4jHd/bocUpXBPhEfePzhD54PQmupwG1CJAsVQrZTTHMgFJxHRca 32AjVEcB33ixUNey1bRX2/C5Pssd4jWVhyS2r9AEROfnZ0sPhROgEOjA73WPnfyCcwIb 9GqFWR4VYlFpeUrNERQV8HXZLMwBXP1+3F5Avn9oTdpWPKtID4gA3TRYPPTQ/BwplX/V 9YtP9OD6hqflgJixF1cYovZ6CR9GjQP/UjlXOBq2p5ETTiVdPhNC/Ivi1FdrVz7b9a/P nGMnMAsIaDZyeIC24+wNkDLTLpthwQLS+NFeGFNblcSsLuYtBEBxbB/BNhxCQ+OAVg16 O/Ow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=YXO2Zlzt; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a17090a190600b002308ac7a1b0si2725079pjg.117.2023.03.23.14.40.04; Thu, 23 Mar 2023 14:40:16 -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=@amd.com header.s=selector1 header.b=YXO2Zlzt; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231452AbjCWVjN (ORCPT + 99 others); Thu, 23 Mar 2023 17:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjCWVjG (ORCPT ); Thu, 23 Mar 2023 17:39:06 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2063.outbound.protection.outlook.com [40.107.243.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3A1726B8; Thu, 23 Mar 2023 14:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XhE9NLMw3MgZpy8eBH1KdBAepX7oP7olo7D6O03X/pZe/7e0bHJ6TpTKRSLRaeWsK+af4tIOFqRVcQLyAWwpm3qMTpYqH/net4A1VTAcHT6TLBt4pbKpcNCls/h3m1U5UVAYRNhe9ilVt9NtBSJEgOomGCR0tNHMMezOen/fdtyIi+TqnF18QIQ5n+RuX91V9Vj8o+FKMKWJza5IUO7s2Sa3Nw9j2wycwO/8sTQhWFeSsxhVf0rriFM3DL3ACOIahtc/vbRk0AV7nJ8FsMTLEKGFF9L1qJBYjhc9Vke4+cYkWww4YxJ8JfpVGtD9Vs43SL3BqzkMzvxkzVhVExG5dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=07J6IZKFhviOEMH2B3UgawtEh/IZiwn+zz+5sk0vlFQ=; b=Ok78CyEVZX6WsiIsBFDQcQGpx/9qRkB10CFAFi5FJMWLgFHIMKqJ/ZJqpJ/RvgRmPBBzLFim5W4aHftJgFmMu4R6NRsRI9VBlK87wAioujAUIjlkjpHcsbe/dTnZ76p/u4+lIpkvRziZDnJOpVPhgJVaDn6VtY1u/tQKa/xM91qcIurK1VgNntNu6Ec69+1MxZW7L+Qnm8Q4/KgWrNQfMDIscBP0D6JxKGyVR+HjOvKAMzCgKMG2CtXqo6bZ6FuGURFWQfF7wHCyDS2iBMW1Nsplxy6YMzQ1q3DAXLCO2jZY12LsFm86nwySO1WIdtVk2P4qBFkAlY7RZCzDj3QMqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=07J6IZKFhviOEMH2B3UgawtEh/IZiwn+zz+5sk0vlFQ=; b=YXO2ZlzthoNNqPDKWH7gnDahMdNCbv2MEG/Z8+iHJkbHq6dbdfDaUEMAf9C3tDVUzRoes5WVGeYi2CCIhhWjUsPyQipCmEGGTGzASToy750IQXAgqUzSgC/jx5RjM/BD0TLPaIuljSAqAF5x6et+N0kN8Qsb+bpjQUx6c1jtMPg= Received: from DS7PR03CA0032.namprd03.prod.outlook.com (2603:10b6:5:3b5::7) by PH7PR12MB8054.namprd12.prod.outlook.com (2603:10b6:510:27f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 21:38:48 +0000 Received: from DM6NAM11FT078.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b5:cafe::8d) by DS7PR03CA0032.outlook.office365.com (2603:10b6:5:3b5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Thu, 23 Mar 2023 21:38:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT078.mail.protection.outlook.com (10.13.173.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6222.21 via Frontend Transport; Thu, 23 Mar 2023 21:38:48 +0000 Received: from ethanolx7ea3host.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Mar 2023 16:38:47 -0500 From: Terry Bowman To: , , , , , , , , , CC: , Subject: [PATCH v2 3/5] pci/aer: Export cper_print_aer() for CXL driver logging Date: Thu, 23 Mar 2023 16:38:06 -0500 Message-ID: <20230323213808.398039-4-terry.bowman@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230323213808.398039-1-terry.bowman@amd.com> References: <20230323213808.398039-1-terry.bowman@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT078:EE_|PH7PR12MB8054:EE_ X-MS-Office365-Filtering-Correlation-Id: 39a495ed-7ef4-4e03-8a98-08db2be6fc80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QlCq3QwaTQzlgyGwXtSlQDYuevD/zK15CBkT6osL2wT1HnLbQugx+pAIZjBQOOMof90Y1ilmTimeY/ekIgIRQ1R99LoYrOFujrZdcNpDO/cyiaxwzKKcolLXVnJkDDm/CNdtTcPTicjld3RmYIKmX+potINNFQMqCMErvDC/3wFAK5ba+szOPy4fC+xv/1rbDtYwaJZlNN3xXtBbM0WvxI1t9yJLTW4acFIJ84hwNYO50vO/zeUnFQ/MfTCiql4m572NeB5uPVXuiYZe0Lx8fn3LGq6+rPU6umebOapxJeS7+M6rTNdM++VJ/j8EvMGJrwOCCxcBEAwptTGSrZeMO2kkUYWb0wmkxg2ZR4XYy/l6ezm76XGIOUoO6cOEKzwLxhS/u4LeJbL8WUqxnODdHYoFbdFSDVWONNrvYpUWrj+Y3qzC797kTmPm2Gs4XKAvqpQQipVThXV+kR1rZgivl79haA/l1Y64EEYJQqJ070PFXlOOszOe/ky95NyeqJlCXnkCEH9b9MgpnJvcbItzo4eW1/PuNTvDJRUAtub5q4aJfNFpUdk7IVBKvRBK51SROiI/RQHvtgkqgImzO5Rt3gmku2AphJl4fnzRvqROVXjB7Z2SY0kUFxPlWjUH/MVC9jPcfdFbhAmc+aII0LQ6xH9xbsvoUTKCCS2BIE0nksOqw4mxiuMZY/Cq8/5zJ8FcuGd47r34kVTTNr6WoU10YtIcbuIbpM3jfY9US/ViBSRFT1dOVp9cxwLGukutbeM0 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(346002)(376002)(39860400002)(396003)(136003)(451199018)(40470700004)(36840700001)(46966006)(478600001)(40460700003)(70586007)(8676002)(4326008)(4744005)(36860700001)(110136005)(70206006)(6636002)(81166007)(7416002)(41300700001)(5660300002)(44832011)(82740400003)(426003)(8936002)(26005)(6666004)(47076005)(1076003)(2616005)(336012)(316002)(16526019)(186003)(7696005)(54906003)(86362001)(82310400005)(36756003)(40480700001)(921005)(356005)(2906002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 21:38:48.1187 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39a495ed-7ef4-4e03-8a98-08db2be6fc80 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT078.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8054 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE 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 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 --- 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