Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp730091pxj; Wed, 16 Jun 2021 12:12:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx7jdM+4t+dNdeH5PDuub8ceO07gXTO1UAL5Hhehl28FBhHzGqmElBc9quGhFIZ3Q305KV X-Received: by 2002:a17:906:35cd:: with SMTP id p13mr1104059ejb.24.1623870729978; Wed, 16 Jun 2021 12:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623870729; cv=none; d=google.com; s=arc-20160816; b=i2bK9iLDSGYTkjed6GbNI+LpIAmA7AqXkE4P9++FduoZvUjpYj6YZ1Zoi6fcALJW0K /7OVcOfMwhQ3YSvxP+8VhM+7SqfXAZo6Jdruo+kHN1hzFFha4Pb95WBgC14/FoLsWELn hY6SxvN49jtQIQG7Rbi+we8Hbn+LKm3Du+aFiO8857kGkFJ5IrBmgIMMT+lkNuqR1JO8 26Ip354y9LjmhzLsAXia8AhD7NoVZztHLP4WyFhYmUcYGYeV6dRgLW8SAtZ49Hb0HeIp ChB5Ra1p8KaR1wMoXj7DrTMyGNHWRCqIengKZRNn3P5KYDqaCx8X72dfbryjGAdA9dqb WMrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bfIrh+PtaBgYpVTZkV0P8aItcFgfK/vLpnJFRGQ1gH8=; b=dpgoWT9f7/5iFy+2Rd64oc/iLyohYYmWnAmo2amjYeCrMdfuU5axoBt57AyKcuuVwG c0Jmojf+UxC22WLtadFkISIC60fRgKvX6czSGwyykN3HDVW8giYFyLJWrDKObPjeAMBw 2v6niixeg0vWO+zg7DO0iu0DBUkJFe7a6F5aqs5Kp98o7pWdCvgIwHpd9UIL4mDO0WBn teL0HVBjlBuzz1B+PJnQ1AGd0pbBAb+pdpzGbaVPgRRHW4z2sYGrInQZ44+gTGn8ogGv 0jjEzKXzgoRE0DibrYZfTrtAe+/Vfn3KHp1Kms1DqDWrk4/Eh7EUG5m/bvSQqP66i6lW FtSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Usozt17A; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb21si866720ejc.42.2021.06.16.12.11.45; Wed, 16 Jun 2021 12:12:09 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Usozt17A; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234081AbhFPOnj (ORCPT + 99 others); Wed, 16 Jun 2021 10:43:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60373 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234069AbhFPOni (ORCPT ); Wed, 16 Jun 2021 10:43:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623854491; h=from:from: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=bfIrh+PtaBgYpVTZkV0P8aItcFgfK/vLpnJFRGQ1gH8=; b=Usozt17A2h0cQGlRMmOE80v1SDHa3aS7JAhjgGTQyKtKUJ8JJQtdBlZS5+MzWIhUgx2G9E w6zPoktYcNWzft6DQiBPxlJdh9RCqxqGqyhPQJ2Zw0lMSDw1GuhFdb4tCPmFhXGLrYvopH gFIiJ5FBHSeu7atWgggfhv35o49duik= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-237-WqqjcgeeNp2mEwtyu6UAfQ-1; Wed, 16 Jun 2021 10:41:30 -0400 X-MC-Unique: WqqjcgeeNp2mEwtyu6UAfQ-1 Received: by mail-ed1-f72.google.com with SMTP id df3-20020a05640230a3b029039179c0f290so1162072edb.13 for ; Wed, 16 Jun 2021 07:41:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bfIrh+PtaBgYpVTZkV0P8aItcFgfK/vLpnJFRGQ1gH8=; b=dz6e6Oihom+5X/NimDEDqqpkyM0mWLv7fXf2NTLQ51BJ+3HJZD+4u/cqigY7q2a5kZ BQ3jC/lTLV4NHGk5Js1CRYxHCW+jjF9pL0MpWHsHyk6ARZjL/MzR5OxT4bO4tQbf2naU Wkh2rUwPJYUYnAgVj2Dqrf2q7NuO/sZLFNECLAu14BCApMDkX/pZLVRIHzVELKdU9GVW VKHozX5zbCwYx75vCopHd3bCd18JuZ/DVI1mFMK1h1eOLzMszw+0/WE1nbL9pnC+eNu6 EwbBkCEu1iypfsuD+Ugzmih059trYrPo9QWmwF/zojYpVyEtEltZ4nm0EFrJ93bQh6ht 7etw== X-Gm-Message-State: AOAM530xnxm6ZICfhXQQB23T1qUZtZl7Xd1Wy2FRqqifQaS8Tbgz8eR4 IZ+nL1rBxR5/8dfU2q0naPA66pHSAeTa0SiRehpW9Du23E7HrSdxy9OVsZyZGKX8FF/dvX1p9+n QDqsojpAkgDT6bwwxMp2rnkhBY2yE23866zMOQpKw4iodafOb8HCPC+QTiRY2FMhxzHCeCMExbo nP X-Received: by 2002:a05:6402:40c3:: with SMTP id z3mr4640210edb.187.1623854489026; Wed, 16 Jun 2021 07:41:29 -0700 (PDT) X-Received: by 2002:a05:6402:40c3:: with SMTP id z3mr4640191edb.187.1623854488849; Wed, 16 Jun 2021 07:41:28 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id c23sm1774183eds.57.2021.06.16.07.41.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 07:41:28 -0700 (PDT) Subject: Re: [PATCH 2/5] ACPI: scan: Make acpi_walk_dep_device_list() To: "Rafael J. Wysocki" , Linux ACPI Cc: LKML References: <3140195.44csPzL39Z@kreacher> <1881350.PYKUYFuaPT@kreacher> From: Hans de Goede Message-ID: Date: Wed, 16 Jun 2021 16:41:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <1881350.PYKUYFuaPT@kreacher> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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/ 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. Regards, Hans > --- > 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 *); > > >