Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp728408pxj; Wed, 16 Jun 2021 12:09:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzboyG8Y/Aoz4dTuqhPvhwSGxjWN6TONOlHNex4Piop1KX+kEiao5KKiAwyPJhzdb0WRqTM X-Received: by 2002:a50:9d8d:: with SMTP id w13mr1555484ede.94.1623870588557; Wed, 16 Jun 2021 12:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623870588; cv=none; d=google.com; s=arc-20160816; b=B64l/F1hrbXO2IpgtUnk6AtRnM9Fi+0Kqbq5ZSUWf/xIGMgR/+ImZn/pxv6GWm6tlF z8nv45VQ4AanMMeCUgcFp9srhBW4Ola18iFZtC8ivv9i0X3moxZZD/L+7bfnGi608JTB /aEqoJEhxKcyzNK2Xa00IXkHTVrL5lcTElzJNU9+Eveikqjllr+tL2Am2Tz4zaH9g/+D 5cwxWyrhYdsCk6+a19P7P1lkqCekvUieH5ghNukekj6frza/H96hNF5s8CKnCYAvU/aD 0VYQXALXJkACetxVx0jT0rnvBP26mKybzOVumjVvP2tpAgum9MFOb0Gvy22nff7ZW3/x y1pQ== 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=B+PXhKOf63rqgz17Mp21KFa0/4EVfUHas/7VbEfyln0=; b=W24y6zpI+HX1HnQSAI0CSeYQDhE5ZaHIU6raGV4YHosweNcvS2ylACwirqOkTX0WvS SO6zM28jy/nnsbgycKJYsLMa83SBzUu1arWRiyzKXd/HkWur79tgq/jfsFndvPH/llRh Oy8m7LOBRFVc4TIpAoFdoruPyJTSvLaTfegEnD5hmVTZHBK4dYnNxmJO6HOMfqBiTLAh WDdc5Tm3cIRO0burzGFdOM4HBx7SFxohC3TcriWWfYj6HCiN3k1ALBLyYC5lBBR8WPNt CYQZtg3eRnrp55BQ0ZPlwa4AkPtCR+NpkVjeuGZDTne7rrksA4RIdB8aNRWxjP6BS/bW CTpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si3166530ejt.172.2021.06.16.12.09.25; Wed, 16 Jun 2021 12:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234033AbhFPO2h (ORCPT + 99 others); Wed, 16 Jun 2021 10:28:37 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:51626 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234006AbhFPO23 (ORCPT ); Wed, 16 Jun 2021 10:28:29 -0400 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 2.1.0) id fa8fdf3f9a700f0c; Wed, 16 Jun 2021 16:26:21 +0200 Received: from kreacher.localnet (89-64-81-4.dynamic.chello.pl [89.64.81.4]) (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 C8FC866993E; Wed, 16 Jun 2021 16:26:20 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Hans de Goede Subject: [PATCH 2/5] ACPI: scan: Make acpi_walk_dep_device_list() Date: Wed, 16 Jun 2021 16:22:50 +0200 Message-ID: <1881350.PYKUYFuaPT@kreacher> In-Reply-To: <3140195.44csPzL39Z@kreacher> References: <3140195.44csPzL39Z@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.81.4 X-CLIENT-HOSTNAME: 89-64-81-4.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrfedvledgjeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvjeelgffhiedukedtleekkedvudfggefhgfegjefgueekjeelvefggfdvledutdenucfkphepkeelrdeigedrkedurdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeelrdeigedrkedurdegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohephhguvghgohgvuggvsehrvgguhhgrthdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Because acpi_walk_dep_device_list() is only called by the code in the file in which it is defined, make it static, drop the export of it and drop its header from acpi.h. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/scan.c | 7 +++---- include/linux/acpi.h | 3 --- 2 files changed, 3 insertions(+), 7 deletions(-) Index: linux-pm/drivers/acpi/scan.c =================================================================== --- linux-pm.orig/drivers/acpi/scan.c +++ linux-pm/drivers/acpi/scan.c @@ -2145,9 +2145,9 @@ static int acpi_scan_clear_dep(struct ac * negative value is returned by the callback then the loop is broken and that * value is returned as the final error. */ -int acpi_walk_dep_device_list(acpi_handle handle, - int (*callback)(struct acpi_dep_data *, void *), - void *data) +static int acpi_walk_dep_device_list(acpi_handle handle, + int (*callback)(struct acpi_dep_data *, void *), + void *data) { struct acpi_dep_data *dep, *tmp; int ret = 0; @@ -2164,7 +2164,6 @@ int acpi_walk_dep_device_list(acpi_handl return ret > 0 ? 0 : ret; } -EXPORT_SYMBOL_GPL(acpi_walk_dep_device_list); /** * acpi_dev_clear_dependencies - Inform consumers that the device is now active Index: linux-pm/include/linux/acpi.h =================================================================== --- linux-pm.orig/include/linux/acpi.h +++ linux-pm/include/linux/acpi.h @@ -668,9 +668,6 @@ extern bool acpi_driver_match_device(str const struct device_driver *drv); int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); int acpi_device_modalias(struct device *, char *, int); -int acpi_walk_dep_device_list(acpi_handle handle, - int (*callback)(struct acpi_dep_data *, void *), - void *data); struct platform_device *acpi_create_platform_device(struct acpi_device *, struct property_entry *);