Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp799064pxj; Wed, 16 Jun 2021 13:58:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPAkBJfVkV7UvGPdSk46KAoVG+pLXY09Ih9juxPYAz7MUNsI8SRDVHIVP3EIVbMzLuC4Ll X-Received: by 2002:a05:6638:13c3:: with SMTP id i3mr1141812jaj.140.1623877088390; Wed, 16 Jun 2021 13:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623877088; cv=none; d=google.com; s=arc-20160816; b=sTXgXTOXTPogyJ8CSrkvEPCkHcig164CZiv5fzMfZHR0VoF/vp1nFh1wfVwE2fVir9 MO7A6X+ikipAmO3HlcPW0qL8w808ZqGey737KSsOiHFQobASyn1Kl2vZ05EjSxERceX3 4Zjld3UUoH/xPBubOge/ct2zmokK64SabvEZlBhO5cOmdmH4aViinfbfQ8yVjwApgLoP W7krY11nEBNaaH5G+BaC5FuBfKWgdoOPPh9CCdWMRiyvGrn+237KnWeVka4cKbKr4cWc S8WLUMrQHaDQgF0H1HZKzktBJ+iLbaXp2dxWXgNgm2yStF9QyjMfVz8KWwCx9EB++2Zq NJ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=EFf58MJ0hBtlReoLX8yfknJv/OdwkcjxbCN+8el/7bI=; b=BSbZw/JC1210fgdoQTelQGVEajzSiiGvAh+OXRA1qa8RIFsMUn7iAuI5fIxVbuHfHD tWgS09coOEeLkKhXE5YPVQcLYdtTEoUB7qswPEKvHijzJlaKQqAvbvXfaZ5dn1AJ2/vP aQ5vCTHmgooGF+hiUU5kC18ZAULGTaNPHKVO2VtYpHBVP6kpVJ5hLufz7vcg76vaXyuO r6At9MalelmB/B12l1O5k4DfUeIyfqdez8mNPwTOouv9H8axbVbb8KQ7wHFcLFe+i6aD 2kAuSlq0ZNvzzp752BBcaSBw9ZHYqRQC0Sx9+aTB7j3kGt3c+cJ463Y2VzgMZNJjtni/ +OKQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si3815145ilm.31.2021.06.16.13.57.55; Wed, 16 Jun 2021 13:58:08 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234605AbhFPP1a (ORCPT + 99 others); Wed, 16 Jun 2021 11:27:30 -0400 Received: from mail-oi1-f169.google.com ([209.85.167.169]:39755 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234531AbhFPP13 (ORCPT ); Wed, 16 Jun 2021 11:27:29 -0400 Received: by mail-oi1-f169.google.com with SMTP id m137so2918220oig.6; Wed, 16 Jun 2021 08:25:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EFf58MJ0hBtlReoLX8yfknJv/OdwkcjxbCN+8el/7bI=; b=A6UizmM7z+vAA0j8a1MjLY2/pWzKv7HUAKVceUhFFRU0U+dQ5ao49KtJZeGMRxTHD8 rUPM1rEFVJiyRNp8LMNC3vuv9tyJJXsitbHz/MbHdroLdkU6+xWFIqvIkVss6ohUqv3m YICViQSXF/QsQfZGbzf7gjEgvq3C83Dozn1Qektce0m2R/wgc8+GH/U10a8Uto/REdGB vI+8lQtKNLNmcib4V1s8g5ePTIjhuDO96hVO+DjCgAX6Bb7A7DPYYLAUxBlp3IHqkIhJ z6HYQUpL1One7MQUmy8iQLGlmlYLgAYuF/Cc7+VoTFLNhVV7xpz6RMTgiS1BSYc7gyik Uj/Q== X-Gm-Message-State: AOAM532kxp/eq1k1fo84TDmZt/VF+0PYz9ZinXczZ1Z3T4OJw8V1UL+c e7uKqUATTSTAQFMHOW20s/cGRqe3rfc/LpJ/scEtBiHr X-Received: by 2002:aca:49c7:: with SMTP id w190mr7526616oia.157.1623857123194; Wed, 16 Jun 2021 08:25:23 -0700 (PDT) MIME-Version: 1.0 References: <3140195.44csPzL39Z@kreacher> <1881350.PYKUYFuaPT@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 16 Jun 2021 17:25:12 +0200 Message-ID: Subject: Re: [PATCH 2/5] ACPI: scan: Make acpi_walk_dep_device_list() To: Hans de Goede Cc: "Rafael J. Wysocki" , Linux ACPI , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 5:11 PM Rafael J. Wysocki wrote: > > On Wed, Jun 16, 2021 at 4:41 PM Hans de Goede wrote: > > > > Hi, > > > > On 6/16/21 4:22 PM, Rafael J. Wysocki wrote: > > > 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 > > > > Actually, acpi_walk_dep_device_list() was split out as a > > helper function used to implement acpi_dev_clear_dependencies() > > because it will be used outside of drivers/acpi. > > Not exactly. > > > Specifically it will be used in the new intel_skl_int3472 driver: > > https://patchwork.kernel.org/project/platform-driver-x86/patch/20210603224007.120560-6-djrscally@gmail.com/ > > That driver will use acpi_dev_get_first_consumer_dev() which is based > on acpi_walk_dep_device_list(), but still defined in > drivers/acpi/scan.c. > > > Which I plan to merge into pdx86/for-next today, I've just merged > > your linux-pm/acpi-scan PULL-req which exports acpi_walk_dep_device_list() > > as preparation for this. > > No, the acpi_walk_dep_device_list() is a leftover there AFAICS. I mean the export of it. > If it needs to be exported in the future, that still can be done. ATM > the export isn't necessary. > > Thanks!