Message ID | 20240716150336.2042-10-shiju.jose@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2752DC3DA49 for <linux-mm@archiver.kernel.org>; Tue, 16 Jul 2024 15:04:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 85A306B009B; Tue, 16 Jul 2024 11:04:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E0F56B009C; Tue, 16 Jul 2024 11:04:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5BDCF6B009D; Tue, 16 Jul 2024 11:04:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 3C8FA6B009B for <linux-mm@kvack.org>; Tue, 16 Jul 2024 11:04:48 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D3F79C068C for <linux-mm@kvack.org>; Tue, 16 Jul 2024 15:04:47 +0000 (UTC) X-FDA: 82345937814.09.1624251 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by imf28.hostedemail.com (Postfix) with ESMTP id F2EF3C0010 for <linux-mm@kvack.org>; Tue, 16 Jul 2024 15:04:45 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721142247; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F93fuiYNl6Q27hD862498JBBQxXlQqyCf924P+Qz0zk=; b=cFoR2DzrQLbZUSUBns6fH07p8aaPBBiGpxsN+pT0teDJ3N1XCoBVeDYx0y3/5W3Xi7SDg1 0AfJvp4Aq7rZ6YL4cy5LoK7qIOxx7/QTzu/5oXN8nGyn8q0WwtrStBOy2GaKRofFK9mMLB cvz34Y3pPZAyoHl+fsG/O1M3AkgeIMI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721142247; a=rsa-sha256; cv=none; b=2psYc6KbFt92xpjZADB4+GOaXU+SxOX4Kr7MUTILV1KRbYvGuorJAuGnsNaafLABaWxNH6 n/HbeFVUe4sMtcCsNICGc0GS+0tsaKw1H/zLSZzqlAaT5BHbrBRdWkfbCERp3n0QOCA++S EneAb7VEzJuZoe//S0+BA7JBy4qry68= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4WNj4b6F0Vz6JB4C; Tue, 16 Jul 2024 23:03:27 +0800 (CST) Received: from lhrpeml500006.china.huawei.com (unknown [7.191.161.198]) by mail.maildlp.com (Postfix) with ESMTPS id AFB331400CF; Tue, 16 Jul 2024 23:04:43 +0800 (CST) Received: from P_UKIT01-A7bmah.china.huawei.com (10.48.159.153) by lhrpeml500006.china.huawei.com (7.191.161.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 16 Jul 2024 16:04:42 +0100 From: <shiju.jose@huawei.com> To: <linux-edac@vger.kernel.org>, <linux-cxl@vger.kernel.org>, <linux-acpi@vger.kernel.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> CC: <bp@alien8.de>, <tony.luck@intel.com>, <rafael@kernel.org>, <lenb@kernel.org>, <mchehab@kernel.org>, <dan.j.williams@intel.com>, <dave@stgolabs.net>, <jonathan.cameron@huawei.com>, <dave.jiang@intel.com>, <alison.schofield@intel.com>, <vishal.l.verma@intel.com>, <ira.weiny@intel.com>, <david@redhat.com>, <Vilas.Sridharan@amd.com>, <leo.duran@amd.com>, <Yazen.Ghannam@amd.com>, <rientjes@google.com>, <jiaqiyan@google.com>, <Jon.Grimm@amd.com>, <dave.hansen@linux.intel.com>, <naoya.horiguchi@nec.com>, <james.morse@arm.com>, <jthoughton@google.com>, <somasundaram.a@hpe.com>, <erdemaktas@google.com>, <pgonda@google.com>, <duenwen@google.com>, <mike.malvestuto@intel.com>, <gthelen@google.com>, <wschwartz@amperecomputing.com>, <dferguson@amperecomputing.com>, <wbs@os.amperecomputing.com>, <nifan.cxl@gmail.com>, <yazen.ghannam@amd.com>, <tanxiaofei@huawei.com>, <prime.zeng@hisilicon.com>, <roberto.sassu@huawei.com>, <kangkang.shen@futurewei.com>, <wanghuiqiang@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com> Subject: [RFC PATCH v9 09/11] platform: Add __free() based cleanup function for platform_device_put Date: Tue, 16 Jul 2024 16:03:33 +0100 Message-ID: <20240716150336.2042-10-shiju.jose@huawei.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240716150336.2042-1-shiju.jose@huawei.com> References: <20240716150336.2042-1-shiju.jose@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.48.159.153] X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500006.china.huawei.com (7.191.161.198) X-Rspam-User: X-Rspamd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tiZ9pq4t6xtwt IepoIKTv JWBTG/M7wtyz7ZGmWZ+KhGK/bvbhizh3cUm8uGM+yUhkuVlyslUgYQz4YzUYBMiptQAcPtLMqPAfLiAllS+itx97SpAsYT002y0B9lBqRkbby8lFuGcbA3VKkJSmFNYF2Iy1PxLKdnqrc2LKEnjpTaxS/qIKmXL5dSxQuUBIPjHMa4b7GVaKQB0NGwVrsJXC9kUEBdSooKUabhBd87T4N7LB0HWFAx8UBz/PS2dji38J+ZuIq96kPxUniMdc509akdBiNuIun6gbF0uynXQYJXLqIYjkIo+oVYDRAMyGr0/F0+/w= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
EDAC: Scrub: Introduce generic EDAC RAS control feature driver + CXL/ACPI-RAS2 drivers
|
expand
|
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 7a41c72c1959..1ddc35623b4c 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -232,6 +232,7 @@ extern int platform_device_add_data(struct platform_device *pdev, extern int platform_device_add(struct platform_device *pdev); extern void platform_device_del(struct platform_device *pdev); extern void platform_device_put(struct platform_device *pdev); +DEFINE_FREE(platform_device_put, struct platform_device *, if (_T) platform_device_put(_T)) struct platform_driver { int (*probe)(struct platform_device *);