Message ID | 20241224-const_dfc_done-v5-6-6623037414d4@quicinc.com |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=P+6C=TR=vger.kernel.org=sparclinux+bounces-2905-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=icloud.com header.i=@icloud.com header.a=rsa-sha256 header.s=1a1hai header.b=tOGU5Dh5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=p+6c=tr=vger.kernel.org=sparclinux+bounces-2905-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4YHb66293Mz1yRL for <incoming@patchwork.ozlabs.org>; Wed, 25 Dec 2024 00:17:34 +1100 (AEDT) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4YHb612c9yz4wcn for <incoming@patchwork.ozlabs.org>; Wed, 25 Dec 2024 00:17:29 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4YHb612SDfz4xdx; Wed, 25 Dec 2024 00:17:29 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2604:1380:4601:e00::3" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1735046249; cv=pass; b=h/7qg1AbRTytFxTbxTMF6PjYUX+RZGhqe/KrRjQc9wl3aftjEvoNHSh41515meMB0yzm7A+JPwV5+Y21vvE2NTZkUwV2JQd3t9XCwSNLCDFEljtUPWw2PTqdXq3A1z7pf0Nh0+L/AwlnDujAjZH1ex2DX9wbIpHNu4McXl5SHSEOgOl4pHjCeUJbmfj2US4a+lwx0IVgxYFV8fJsoBGmCdifNgEJW3Nm+QVzF1Iqf+qU0HgRkBFix8HFOc7heWAyXcwPxKqPVH6Prgwnck+EHutsz8g7LRmYrGIWgRy1vz19BOqpE8rJH92tEITZb8vAL00usBw32DRulm8w6Cu+AA== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1735046249; c=relaxed/relaxed; bh=Jt48mzcZsDvcIJ8hyXp8Xzg4ryRkD8wyI4/dt9mexIg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ykKe1rsyqzK90mnQ6x0s8v9A2rPMyukIf/beF1LTazT/ldCOQDKLrN9mthZY90WuI8HQm44XjfxpysJ31RWf51mIRJZh1HYou2YoL6T54k3EuQVGr0dVIpo2xasKZfD6ltHCO8GI8tcsFoW/AZzKBUMokEl4/r74AGkkgE9jGPprOH1KAB1URy6IdAUxnPe7QupoV5VYMiK9heyjs121qTS6v+L57XJM6JD/5gr8NtIs9Ku/elG2oNNuSBJpGSRMH0S1jmTO+Es4YHp1qWTQdGfNnO8uy7BskniP1HMKKtwHcMf4OKf85S28rsFOd5fyzXEPvpmFxJnNnOuLQgmE3g== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; dkim=pass (2048-bit key; unprotected) header.d=icloud.com header.i=@icloud.com header.a=rsa-sha256 header.s=1a1hai header.b=tOGU5Dh5; dkim-atps=neutral; spf=pass (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=sparclinux+bounces-2905-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=icloud.com header.i=@icloud.com header.a=rsa-sha256 header.s=1a1hai header.b=tOGU5Dh5; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=sparclinux+bounces-2905-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4YHb5x61kcz4wcn for <patchwork-incoming@ozlabs.org>; Wed, 25 Dec 2024 00:17:25 +1100 (AEDT) Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7BF271887CA3 for <patchwork-incoming@ozlabs.org>; Tue, 24 Dec 2024 13:12:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DD1B1DED5A; Tue, 24 Dec 2024 13:08:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="tOGU5Dh5" X-Original-To: sparclinux@vger.kernel.org Received: from pv50p00im-tydg10011801.me.com (pv50p00im-tydg10011801.me.com [17.58.6.52]) (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 6B3AA1D9A7F for <sparclinux@vger.kernel.org>; Tue, 24 Dec 2024 13:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=17.58.6.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735045697; cv=none; b=Jp6X37HP7k6t3sZjEI/YVJJUqmiRHEGT9CW+g07o7nSyfgYIFd7VEJouaD80HTo1JImyG7nsqaa4I1GW2FN7JK3Tm//JWJoVsj86xTkAd8cb3ATYps+hw+nNtULCBYaT4JFREhgSdETMqaEf4gCk3iL2NiSGzXlGBzO/FiLJutI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735045697; c=relaxed/simple; bh=qc4X9YeT7SYjapxfdiarddKzvMLje/02yb0Qjs7e1p8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lAlZJAaKiCK1N+aWqwGlzsWrcllnMyasqnUb/0klVbg+i/QmWIRm32ZBCTmgAR5v5LatMENC4qLUmmKXBE1TleV3DioI22HUkWEyLt9liBChXHJh+dOC9w4vWOpDwxqIwULczLDeg0T9FRhPF09eNf5sY7/7d/JG1lg/rjIp+SA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=tOGU5Dh5; arc=none smtp.client-ip=17.58.6.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1735045693; bh=Jt48mzcZsDvcIJ8hyXp8Xzg4ryRkD8wyI4/dt9mexIg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To: x-icloud-hme; b=tOGU5Dh5LcwQzLdLUC216bepTW02CMDs88nzSZNN2Mkpu+NFI5z6SRczXi3PkL7Le Rdvcif3SsQkJsg0ZvNfMSx6iOH1PCbud6O8GDSzTF7Oz/5etNftpjRBeRhPXzBDJ2e 8INF+Rn3tN1ExMZSschWZtmzU/b0+68qr7f1//b/JmC9oL4NJNc8gHhdfYnhncm/Qy LQUFYCWSTxuX22F8ehLx+FBh16m+BV7OI32bkqgA1zv9Y4c73zIdLGi29uBFN4oqad zj2EK7aahHgF1IFwW7Kley7yWCYXjIFpTlaBs2OHKQ+1F066FzqDBnEjwUGbMYc0yE 6mUOPlCKwqAMg== Received: from [192.168.1.25] (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-tydg10011801.me.com (Postfix) with ESMTPSA id 8108680025D; Tue, 24 Dec 2024 13:07:58 +0000 (UTC) From: Zijun Hu <zijun_hu@icloud.com> Date: Tue, 24 Dec 2024 21:05:05 +0800 Subject: [PATCH v5 06/12] driver core: Remove match_any() Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: <sparclinux.vger.kernel.org> List-Subscribe: <mailto:sparclinux+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:sparclinux+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241224-const_dfc_done-v5-6-6623037414d4@quicinc.com> References: <20241224-const_dfc_done-v5-0-6623037414d4@quicinc.com> In-Reply-To: <20241224-const_dfc_done-v5-0-6623037414d4@quicinc.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <ukleinek@kernel.org>, James Bottomley <James.Bottomley@HansenPartnership.com>, =?utf-8?q?Thomas_?= =?utf-8?q?Wei=C3=9Fschuh?= <thomas@t-8ch.de>, Zijun Hu <zijun_hu@icloud.com>, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-sound@vger.kernel.org, sparclinux@vger.kernel.org, linux-block@vger.kernel.org, linux-cxl@vger.kernel.org, linux1394-devel@lists.sourceforge.net, arm-scmi@vger.kernel.org, linux-efi@vger.kernel.org, linux-gpio@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-media@vger.kernel.org, linux-pwm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, netdev@vger.kernel.org, Zijun Hu <quic_zijuhu@quicinc.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com> X-Mailer: b4 0.14.2 X-Proofpoint-GUID: SFI0r5Flu7jT8FrHDD6Zfyf-tOrlpy_B X-Proofpoint-ORIG-GUID: SFI0r5Flu7jT8FrHDD6Zfyf-tOrlpy_B X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-24_05,2024-12-24_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 clxscore=1015 mlxscore=0 spamscore=0 mlxlogscore=837 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2412240113 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 X-Spam-Status: No, score=-3.2 required=5.0 tests=ARC_SIGNED,ARC_VALID, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on gandalf.ozlabs.org |
Series |
driver core: Constify API device_find_child()
|
expand
|
diff --git a/drivers/base/core.c b/drivers/base/core.c index 8116bc8dd6e9eba0653ca686a90c7008de9e2840..289f2dafa8f3831931d0f316d66ee12c2cb8a2e1 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -4114,11 +4114,6 @@ struct device *device_find_child_by_name(struct device *parent, } EXPORT_SYMBOL_GPL(device_find_child_by_name); -static int match_any(struct device *dev, const void *unused) -{ - return 1; -} - /** * device_find_any_child - device iterator for locating a child device, if any. * @parent: parent struct device @@ -4130,7 +4125,7 @@ static int match_any(struct device *dev, const void *unused) */ struct device *device_find_any_child(struct device *parent) { - return device_find_child(parent, NULL, match_any); + return device_find_child(parent, NULL, device_match_any); } EXPORT_SYMBOL_GPL(device_find_any_child);