Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp468272iol; Thu, 9 Jun 2022 07:23:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxctWG859FWRke2w9ug129G/V/poZfR+moCRJAMViaMHk/ODSkLws/O34nYDmWIErklxZl/ X-Received: by 2002:a17:907:1c06:b0:6df:b257:cbb3 with SMTP id nc6-20020a1709071c0600b006dfb257cbb3mr36308790ejc.631.1654784613313; Thu, 09 Jun 2022 07:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654784613; cv=none; d=google.com; s=arc-20160816; b=eEGi2evMAO5oo8wCX8NGtZRarWFOSjXE7nGneMmeD7qpjEysjg7E5qNKYXLgWb4S9w mXKsbW64uKG7Xz9GXzz9CisYEYcDcK6/Fi5oFMvrMe3fPoTBvjaD7lAGaxQlCTh0cdS9 wJ7HNd1nPBxq1qgDs/J/WvLmJfhV607LVK+wV/amxH72bTWaDYY73LIq3RN8yAyGRkOy 81+1cZPmwG4zO/yh9ULYi/JPSZrbNsmLGIu76aejG8PajOy8CurNSbhj6kYB1BxnTFvk 1LhP+VmSufZtZuQGrnhGExbltFIoDmi+UFMM5F/ROFn96koEs/r5gBpIsPKtwKH5dqeG ibOQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GPjGZzNGXnCQDwF7D6TKVx+bz3RRzUc1P1eX740BK04=; b=LyHcGNSe79V4yC22B5WL/616mmUzxSLWETXbZ9kMefdqWHMgQWAsUTUxm3yZf9+bfL qVoVHRPSq6zB4jxbIHlYTkgqV/qNgmXWhmMETSKFgVDwppKKtpJiB1rZ0YVVHPJApdjr 2T6aoxd/tH9ONjaaI02npMlKxU7vJCcQsVL88M7JHV0wNqchrswp565gTLcvxJFfRI6u y5naGPr1CtvmLQVWPgCuQDkMSo9VWuuzINe1rGLLE/NRxNcem1HP3gRxN9zMSj8HCqKB nfySGe5BEsRB3o7cXkGyaSSlBE/0EDn8wIniwxaT2BbIBuc47c9aA3J1unOgvlwMJh1w bkzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb6-20020a1709071c8600b0070e06c11ecbsi3850374ejc.417.2022.06.09.07.23.05; Thu, 09 Jun 2022 07:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343944AbiFIOVf (ORCPT + 99 others); Thu, 9 Jun 2022 10:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239220AbiFIOUq (ORCPT ); Thu, 9 Jun 2022 10:20:46 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 168F12A68AA; Thu, 9 Jun 2022 07:20:44 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.0.0) id ed0530f86a5b08f0; Thu, 9 Jun 2022 16:20:43 +0200 Received: from kreacher.localnet (unknown [213.134.186.232]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id A05D966C7D8; Thu, 9 Jun 2022 16:20:42 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Andy Shevchenko , Mika Westerberg , Hans de Goede , Sakari Ailus Subject: [PATCH v1 08/16] ACPI: bus: Export acpi_dev_for_each_child() to modules Date: Thu, 09 Jun 2022 16:02:21 +0200 Message-ID: <3383324.QJadu78ljV@kreacher> In-Reply-To: <1843211.tdWV9SEqCh@kreacher> References: <1843211.tdWV9SEqCh@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.186.232 X-CLIENT-HOSTNAME: 213.134.186.232 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedruddtledgjeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppedvudefrddufeegrddukeeirddvfedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudekiedrvdefvddphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepjedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegrnhgurhhihidrshhhvghvtghhvghnkhhosehlihhnuhigrdhi nhhtvghlrdgtohhmpdhrtghpthhtohepmhhikhgrrdifvghsthgvrhgsvghrgheslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehhuggvghhovgguvgesrhgvughhrghtrdgtohhmpdhrtghpthhtohepshgrkhgrrhhirdgrihhluhhssehlihhnuhigrdhinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Rafael J. Wysocki Some pieces of modular code can benefit from using acpi_dev_for_each_child(), so export it to modules. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/bus.c | 1 + 1 file changed, 1 insertion(+) Index: linux-pm/drivers/acpi/bus.c =================================================================== --- linux-pm.orig/drivers/acpi/bus.c +++ linux-pm/drivers/acpi/bus.c @@ -1102,6 +1102,7 @@ static int acpi_dev_for_one_check(struct return adwc->fn(to_acpi_device(dev), adwc->data); } +EXPORT_SYMBOL_GPL(acpi_dev_for_each_child); int acpi_dev_for_each_child(struct acpi_device *adev, int (*fn)(struct acpi_device *, void *), void *data)