Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1734024rwl; Fri, 24 Mar 2023 14:55:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bzeqJwgY2LfrDWkJQV8yGquzfk9ZGV3E29D3dAKMFuowBQbHiBrUgYzWcmzlQiHfTCviLe X-Received: by 2002:a17:906:6543:b0:93e:b4a9:ae1b with SMTP id u3-20020a170906654300b0093eb4a9ae1bmr2039151ejn.24.1679694950631; Fri, 24 Mar 2023 14:55:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679694950; cv=pass; d=google.com; s=arc-20160816; b=V55/qGAYEm1hPOUIev+Sg9HztCbJP2xwrHg4GWISnETVfm+5iCG8C+PZ9FqkdHthiX wNIV+rr3K4abRmgXOIWhlwAmuFF3m0bCHGdoDP7WHTPGAMIkkLaYsLObRtNvD9e6k3qk qdNdm+S4WbTjDwpaBegYmMJlM0DGNpTsrBzFeVR9LeAZ+XcmIqX1B/EOYeav6w26ApDz 2PD1Dvdpxl6qCv0u8d6tmOU21PsNbzPiAKOGfl07cV4cVT6IjIl5YQg1vdURLzgqB3je REyt9QQKgshCcigjOyOkB2L0zkGYO8d0q1XtQ3i/d/PtKkZ4SZuqMEABEOHbmj2wZ1HC ZIUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=nH3YGonJc8BH+9GQXa4T7aINm6Vu+Ymg/3lTC+X8Jtw=; b=TVhEeR+KzsuWeXRJaOFF9reYK6ZpA6Z6lsHq6lELnC+hGnicS/2Miz2mBlO0MU+557 TTEntSxBxrwqyw0kAgSmiQL9LZ8UGG78T8Z4NSoCbvt+5vFdN5bpmL3xcg7n2GXS07xA awWDZ0IOw7nGdgDvUT/9ykCMO8tKOfSMRM9hM23/NaCDtGGYnXgzD5NFRhgsMlvM6x5Z TUisU/ofHuo46KPIcdgYpCcK+hoTrLa/G102dAxc6L+8u3D9wnu9uRYYpD1ZrUUNiePS sga4brMUPMOFmdH/AcbfgRwoe4fBji8sI9BLcdsib493QxOLu5Ix6evkv2kbdheg3P+L oFRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sualB6zZ; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=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 sc16-20020a1709078a1000b009333e2401d0si23075398ejc.48.2023.03.24.14.55.25; Fri, 24 Mar 2023 14:55:50 -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=sualB6zZ; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=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 S232131AbjCXVwX (ORCPT + 99 others); Fri, 24 Mar 2023 17:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232002AbjCXVwV (ORCPT ); Fri, 24 Mar 2023 17:52:21 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2071.outbound.protection.outlook.com [40.107.92.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE33C18175; Fri, 24 Mar 2023 14:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MqQyDXn3PgXlGjyqwnjhAxq4waE4rV5Cw+DNYnNkCrAZXrrjHcfeHeQEjJ2TuLW3u/KQQ4tnKfa8F1P3IPg/qKnaOymWqsDnVeEnvtyCBPjpgPWv+1/W8uemlVBnsF0KZFFyLLRmzdal2z7/o9v2kxG6/XSxW0xt/RH4NC0lhOW/sPLOMKX8QCJOlhiGWxs0eMrpRwvX7CCwMB8ngxnOn3SqX5l+HOEs7KKMlg2734O1IgQYxCntpKiA0UR5Q1MvYujGglyhLJmIIJSG/0FMN2LZLbRlRfqPHDIn2PwQ+iEkAdAGVU7thIqMnaN2sx0FSiceKEmVnCzvnWFXvM74wA== 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=nH3YGonJc8BH+9GQXa4T7aINm6Vu+Ymg/3lTC+X8Jtw=; b=MpvONAWFTVZtDR6mtHvXKU9ZdU0AUfaZz3gQiOLPPpL/1PWdSN/39Np2s421VnYNnqZ6KQ3YiRvjbnmrO1UI5zIB9KYa7iN8Sm6PphoU0vnTemr6i0INwueA2XHN18Whi+H+Kim/4GcGfpaV715maoI/HVVv6otV5AuSQmzfWqKGv4Je5vsMopEl43prPPpTviy29P2c4hIAYyrUAa5xup/eldubxDaMamoQmG3FVPVYYytqDPs/jhh3P7Cyh9jQaZoPLtrFvVI4NyPBce6BAmDV6CONqJ7GP8tAg+W6c1SQVDTidFoHHvjgM8JxiylPdMimmiV9NbXlu9wwzC8M3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=nH3YGonJc8BH+9GQXa4T7aINm6Vu+Ymg/3lTC+X8Jtw=; b=sualB6zZydp10VYl39p0D3oHoZQDXxDMdjBSmuDXwgD7XydvP/wBumWueUN1uzJg+R7NdnScn8ZaUY78F+w4l3Q7s7Volxv7JDqJbtUx959o1groXG4A6KFWFraN575HnHF/GULES0/bkuWP8uObWNUuKj/EPYEG56VsfccXJ4Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) by MN2PR12MB4470.namprd12.prod.outlook.com (2603:10b6:208:260::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.39; Fri, 24 Mar 2023 21:52:18 +0000 Received: from DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::8ffc:be4a:e730:2bbc]) by DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::8ffc:be4a:e730:2bbc%5]) with mapi id 15.20.6178.038; Fri, 24 Mar 2023 21:52:18 +0000 Message-ID: <3a21a541-d725-a199-0237-ed16cad29a28@amd.com> Date: Fri, 24 Mar 2023 16:52:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2 3/5] pci/aer: Export cper_print_aer() for CXL driver logging Content-Language: en-US To: Bjorn Helgaas 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 References: <20230324214159.GA2660001@bhelgaas> From: Terry Bowman In-Reply-To: <20230324214159.GA2660001@bhelgaas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL0PR1501CA0007.namprd15.prod.outlook.com (2603:10b6:207:17::20) To DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB6390:EE_|MN2PR12MB4470:EE_ X-MS-Office365-Filtering-Correlation-Id: 38760abe-c25c-4946-cacc-08db2cb209c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TeL7NHPMaX22PFxW4Iijh7iJW2KeyP+UatpJUp2wCmI+k2pjPNW2vEuRyyHtuqo4ews8ON/Z8Afcx7kDqXfWGWzw2lsUfSYyfeZcGDg3YQn89AMK8ADxBurpTBMHEVpPZMXHwwzgSU8zhK/o33sDw0hDh93edYYOYBjsiyMugSGXaU6StIFKn5MoLCrDynme8z+DCIRiKthrqr2TcwzkcrGgzjHRUj3x9EcWzW432dCjSr8BdnyBFiONT1V1+nVBhhNS26FxT9bG6ZtakQDshq0ISI9K+G764Y31cdeeUoeXk5hHgWAGfLVrkTr3uvghLQvaybpHMKKVp0mCZylMylat+jPeJn4cY1oT217orLCCsZBsyp2babDPBoe4lsI6/uit9mslOPucfSEicUJ6ZzlRA8+D6z6wc3XP4jCG22WJ8KKN73A1mZxG54OlceAC7kCUoXLzGJaxx5dD/0xCVHZE1H7Z4dEa2/8RQ7fyiJNXC8pe+OhaFafWVJcIAGd1UpCA1M/A/1alRHLJ8hbAR4A8JBIWiVkLycwugR4T/4bpiBmONAz5suA19dBNKSeoEzqV2M4PEbUm8RhMG/rJ3o+dg8xhHYwlE1dsVOLVMH+e2JIJrBnlddQfKV61qiNXD+bwLjz9a7mgu4n4FhFOJoSGboXKisvLKeQsEjXDl7XKJnDDBaPuCsXTV+fnMK0hFoVir+0WYyK0lKYFza9QOCn3mD8oyImNMg5ReqDl7Ig= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB6390.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(39860400002)(346002)(366004)(396003)(451199021)(83380400001)(2616005)(7416002)(5660300002)(6666004)(6486002)(316002)(478600001)(2906002)(6512007)(66946007)(66556008)(6506007)(8936002)(66476007)(8676002)(6916009)(41300700001)(4326008)(36756003)(53546011)(31686004)(38100700002)(186003)(86362001)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dmdBcXN6Z3hZNEloMEhkeGlkdmxGMXZKVHkzQUJML0tkUGNldXBBeHJOV2RT?= =?utf-8?B?YUZOZ3J6UHhCTnljUVNTTFRhYnQ4b2JoK2tKSTYzZWZzeEVRYTdlL0FqL1VH?= =?utf-8?B?Vk1ONEw3K1NXYWkyS0xVQkI3VENqcWJZaCs2QVB4WS9hL1NSZTgyUDFJZkpW?= =?utf-8?B?c0VCa2NYU2IrYng4N3NuVmM5aUdYVW5MR25sbUFqTnJhdm03Z25xVG8xZTBW?= =?utf-8?B?bEdJdFljSHB1ZjJCMmRZTExNcWw5ZTkxejVyRHVBbERGZ0NRUmsweXhQaldJ?= =?utf-8?B?YWxiQWU3cUNwd3ZxQlZvejUwVVFSQUtJd1EvVzNwZmdvdml2RlRvNHNTWEJj?= =?utf-8?B?WDhzUjlGemZLSlp3bHg0ZXAwTWNBbjFkVDhKTGJVQXNKZkVBZENWRmxmTEk3?= =?utf-8?B?Ymp1SGhVd25xK1BPTlBq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exchange-CrossTenant-Network-Message-Id: 38760abe-c25c-4946-cacc-08db2cb209c2 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB6390.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2023 21:52:18.4493 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PRKNrR6N2vYR4y5Idc/RkOIhAUE2uqzmPA5QkJUPYLbN2ExhNdpiIl8nY5kvuNxSOQRegq6x4XJNCcufiUdY0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4470 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, 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 On 3/24/23 16:41, Bjorn Helgaas wrote: > 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. > Hi Bjorn, Yes, I'll update the subject line. Thanks. >> --- >> 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 >>