Message ID | 20240911090447.751-13-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 4A825EE021C for <linux-mm@archiver.kernel.org>; Wed, 11 Sep 2024 09:08:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5E8A9940020; Wed, 11 Sep 2024 05:08:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FB7394001C; Wed, 11 Sep 2024 05:08:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 325B794001F; Wed, 11 Sep 2024 05:08:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 048D394001C for <linux-mm@kvack.org>; Wed, 11 Sep 2024 05:08:03 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id AB514A7892 for <linux-mm@kvack.org>; Wed, 11 Sep 2024 09:08:03 +0000 (UTC) X-FDA: 82551880446.28.C6F3634 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by imf12.hostedemail.com (Postfix) with ESMTP id D617640013 for <linux-mm@kvack.org>; Wed, 11 Sep 2024 09:08:01 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726045677; a=rsa-sha256; cv=none; b=oX7WErtx2jZa7C+SFwqC526f1lIsF2aRDG1RK0341LVVSHRXHleKAPyOCbYCq4WRGk6N/u O6M7ZzDqPMBS1FRPjHpIjhYnmaQo0+7Gz50rhEgO+NPKH4PKFLuSdsYS1qnxRBSgf3Yoyc 5ysiYmlk5ZSnrOKZ8R6zx/s71oIy0RM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of shiju.jose@huawei.com designates 185.176.79.56 as permitted sender) smtp.mailfrom=shiju.jose@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726045677; 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=xQn+K7uau8gfzBOtxde9J3S4vks7fEmCec582j5fvco=; b=uKFPgq68R6dBslBAhjOIah+GQa0pqSYNLERFy7WI/onlHrAo4ci2OJRKr+uen64nxd7LG1 GafzjWK7V/AaCLuFfws8zh1+xvyQB2gQlRiujm25e7vx8MDSRggE+RLcxFSGaSOMy9QNv8 aVD0FeBZAGoz24BhddWmEw1g6J5JKMA= Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4X3ZNC3fSLz6K6mx; Wed, 11 Sep 2024 17:02:51 +0800 (CST) Received: from frapeml500007.china.huawei.com (unknown [7.182.85.172]) by mail.maildlp.com (Postfix) with ESMTPS id 4EF04140B38; Wed, 11 Sep 2024 17:07:38 +0800 (CST) Received: from P_UKIT01-A7bmah.china.huawei.com (10.195.245.151) by frapeml500007.china.huawei.com (7.182.85.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 11 Sep 2024 11:07:35 +0200 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>, <jgroves@micron.com>, <vsalve@micron.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: [PATCH v12 12/17] platform: Add __free() based cleanup function for platform_device_put Date: Wed, 11 Sep 2024 10:04:41 +0100 Message-ID: <20240911090447.751-13-shiju.jose@huawei.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240911090447.751-1-shiju.jose@huawei.com> References: <20240911090447.751-1-shiju.jose@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.195.245.151] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To frapeml500007.china.huawei.com (7.182.85.172) X-Rspam-User: X-Stat-Signature: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mSd06HxPTtFPBacmPffDqo+kNvt/yBvMXS9OY0Y2vrOTyyOqqUF+UC1MWKEuk8WYp/tNLlCp5mEXQJeGamfYomeXEcOHlcgm2kLsBl3Sw5lg2Sh7RptSUjHuhZcMP728KF5TvgobvbzX9lvFD7J5EKMRgpdUa0LfFTV81iAAo1kJRUObj9h7p4uR3pNt+J7JVdPIutk763U1jHM/RzaUtQ4eZYGwGzb0ZFnN0zIkLTMSBjOMy0VwUvdhhW0YEBwcVJpiAnBRynDklISIAzb1oqU7eeHHhkJSZDP4rVkFuHxww= 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 d422db6eec63..606533b88f44 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 *);