Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7043721rdb; Wed, 3 Jan 2024 02:41:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFh05Pjfw+3TOaq4EFgvj9voWZnnHecz4b4ATrIBr9aZWLLN9i58wynw+IyW1hirIJDv7j9 X-Received: by 2002:a05:620a:384d:b0:781:611d:fef3 with SMTP id po13-20020a05620a384d00b00781611dfef3mr10034731qkn.137.1704278490004; Wed, 03 Jan 2024 02:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704278489; cv=none; d=google.com; s=arc-20160816; b=HNwiqulkHozGtXIy7MFiJ4zgxo6FXO65XI5k7IHY/XGn4kQmPJetQPh1q7hX/jppsv 0Rpe/mfvrOcgd6P9S90zaRSeGqnMwzcxEhPmvshuYR4lNX7IDXdR3YfJHxv871hWul4s Jy5SV6f9USZHcH4gw+Xp168/WjRexnGIk50L3RJfRqfcd4UMfJW3YO3zych8J9gwyL1d 8Hcln42FFAeLmuMgLqdu8lu9LqTALpTpGWoqEFS/Pd3Hz3OSzwWlcKxnzPR69Bj3HX+v yHi+V4VOeM5knLGPpaT2c47aEAmhsev+MIGNTJPl4MF7FGVssMXemUR+8ZruNqTRRUNt vbtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=kFKdQ4fEmiy96LTK+KFAoFi28Ghbi5e6lRu9RepppYw=; fh=0W5f0lO646H9ej4e207bbRNxdVmEdA5bSqgVnTXYIq8=; b=NfokVf8BGScMBMJ6OTit3RQwulBlT9IGqBpU+JTJ8RgsszI+XN0bfNfLDT6IImF94C dJXaGNVfna76yiRS3A/26nNlbz2pd1blarwvdjFcn2gMy+y1v4bQMkwdczApUHzUyrmO +4BH2QlVDXrW5GoknGZClNTJTdgUYS+KF9o8wszbHqThq8NTzGQCzeeiXyykdWQOFX2V knhsgVtkcufXHf3KTlPosNmomglTbK4oaYldPu+mH7HXaQAXmUYSKBrFwrVdIYvLwhy0 abfVq38I+LtZpDxF/fZ5uor1NytODrhmT5j/ozDUqb0vQFMsCcUVfd62SNhWetPzUH3E R84A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f16-20020a05620a409000b0077d9abb901fsi30059863qko.242.2024.01.03.02.41.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:41:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BC6241C2287A for ; Wed, 3 Jan 2024 10:41:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAB9B18E14; Wed, 3 Jan 2024 10:41:21 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBF5518E00; Wed, 3 Jan 2024 10:41:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4T4mSP48zFz6K6Jp; Wed, 3 Jan 2024 18:39:49 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id D418A140B2F; Wed, 3 Jan 2024 18:41:15 +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.35; Wed, 3 Jan 2024 10:41:15 +0000 Date: Wed, 3 Jan 2024 10:41:13 +0000 From: Jonathan Cameron To: Ira Weiny CC: Dan Williams , Smita Koralahalli , Shiju Jose , Yazen Ghannam , "Davidlohr Bueso" , Dave Jiang , "Alison Schofield" , Vishal Verma , Ard Biesheuvel , , , , Bjorn Helgaas Subject: Re: [PATCH v4 7/7] cxl/memdev: Register for and process CPER events Message-ID: <20240103104113.000024c0@Huawei.com> In-Reply-To: <658235548ca6c_2edf029490@iweiny-mobl.notmuch> References: <20231215-cxl-cper-v4-0-01b6dab44fcd@intel.com> <20231215-cxl-cper-v4-7-01b6dab44fcd@intel.com> <20231219143732.0000181e@Huawei.com> <658226c9a49f3_277bd294fb@iweiny-mobl.notmuch> <65822909ebe4c_269bd294f5@dwillia2-mobl3.amr.corp.intel.com.notmuch> <658235548ca6c_2edf029490@iweiny-mobl.notmuch> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) On Tue, 19 Dec 2023 16:29:08 -0800 Ira Weiny wrote: > Dan Williams wrote: > > Ira Weiny wrote: > > [..] > > > > and drop the = NULL above. > > > > > > Done. > > > > The NULL assignment was more about making it clear that > > __free(pci_dev_put) will take no action until the pdev is acquired. > > Otherwise, any future refactoring that introduces a 'return' before > > @pdev is acquired needs to be careful to assign @pdev to NULL. So, just > > include it in the declaration more as a __free() declaration style issue > > than a correctness issue. > > I think he meant the assignment to cxlds. At least that is the NULL > assignment I took out. > > Ira yup. The other one is correct as Dan pointed out.