Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2524690rdg; Mon, 16 Oct 2023 07:08:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+8AL4T0GUMu1Sld5mWpAGcRFj9cskrpHoiazPwdoMxIfpnHGgFn5fqR6oTRyszACAacNS X-Received: by 2002:a17:902:b7c9:b0:1c9:d908:d60c with SMTP id v9-20020a170902b7c900b001c9d908d60cmr10017294plz.63.1697465294589; Mon, 16 Oct 2023 07:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697465294; cv=none; d=google.com; s=arc-20160816; b=zJ/XumOKjzOhWYfxXLZ9WUjr63HZvDg0k3poXdImlgZI0YYYGcSBk7QvqDu3yMQNry 2yQmg6/1zkfYnvoOj2k7sD4ylo1+aBd3LiX3EL9jRyCmmFq2cheHgdNP0i/FLGfQM1Q3 hg7Vwkj7im6l7QADGpSHr9R9N6xmt6BLp1BJc25xDPPnLUFjqx6v+J7UW69ueuzzUbNs gYh5ah9A9ZLW+Ryf5GeOq3GJ28qkpvv0+TXMhWu6G3//Serlnw6w89mVTYHEoU/gRog/ bSvgYeMHjuMCktieIcsySHAQQnOfaZx0l0HjZfxyaYcUiuxQ53EnZjuHYdqSdgGCkIIS FQfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=mxFqkTycQMFv/Cg6+S2NF7HPepd2PVWWFH/waINUH20=; fh=vQJLulDCtgSPEFKkd/MHRHRCegYAElDDJhEtOcjAi6k=; b=EZaWjCahX+FNgTdbofxBfRbRGStODZY6SH8CnheyzzVsLlqNUcmlhMd7VM342Sm1Vw OFyuMkjOWA1bEeN6zPNi2ChRrfhj8KUKJnJOgDv4PHdwj+7Oje/SZWu/rjr8pq7ifXj5 MRFUvuh5FVpNHpB2JUgs0NHN4v4nJDK/KiGbuLlBCsdJwMg+ydmaPdantV4mRdLt7MwS Y3oCQtO54+E5pR85alLXibm98aed1YZ27fWLEkdenFCrIxMPV8pZ+wu1l70YnpaLz4yj w1jbOdG7s28wtzQu+6bMPKR3LvP2XhfuKFBoBKrmk/W1HKgcbXSmgCa+z1w62GhAh8nM Sqgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e6-20020a170902b78600b001c432da203asi5440522pls.270.2023.10.16.07.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 07:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B86D880C5FA4; Mon, 16 Oct 2023 07:08:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbjJPOIM (ORCPT + 99 others); Mon, 16 Oct 2023 10:08:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbjJPOIK (ORCPT ); Mon, 16 Oct 2023 10:08:10 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3470483; Mon, 16 Oct 2023 07:08:08 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4S8JmX2b8Pz6K6SG; Mon, 16 Oct 2023 22:05:48 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 16 Oct 2023 15:08:05 +0100 Date: Mon, 16 Oct 2023 15:08:04 +0100 From: Jonathan Cameron To: Terry Bowman CC: Robert Richter , Alison Schofield , Vishal Verma , "Ira Weiny" , Ben Widawsky , "Dan Williams" , Davidlohr Bueso , Dave Jiang , , , Bjorn Helgaas Subject: Re: [PATCH v11 10/20] cxl/pci: Introduce config option PCIEAER_CXL Message-ID: <20231016150804.000054aa@Huawei.com> In-Reply-To: References: <20230927154339.1600738-1-rrichter@amd.com> <20230927154339.1600738-11-rrichter@amd.com> <20231002154628.00004f9b@Huawei.com> <21fa3d41-3585-40b4-b919-d3b66557e9d8@amd.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100006.china.huawei.com (7.191.160.224) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 07:08:13 -0700 (PDT) > >>> diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c > >>> index 04107058739b..61ca21c020fa 100644 > >>> --- a/drivers/cxl/mem.c > >>> +++ b/drivers/cxl/mem.c > >>> @@ -157,6 +157,8 @@ static int cxl_mem_probe(struct device *dev) > >>> else > >>> endpoint_parent = &parent_port->dev; > >>> > >>> + devm_cxl_setup_parent_dport(dev, dport); > >> > >> devm calls can always fail (because if nothing else you have to register > >> some cleanup and that involves an allocation. If you want to ignore > >> that I'd expect a comment here. > >> > > > > We will add error handling here. > > > > Regards, > > Terry > > > > Found devm_cxl_setup_parent_dport() is a NULL function without return value. Hmm. Then it's not a devm function. I went looking and can't find it registering any cleanup so just rename it to cxl_setup_parent_dport() > > Regards, > Terry