Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp736374pxj; Wed, 16 Jun 2021 12:21:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoNvRg+RQ8BTVfShGGChqyOqUtHqbd1bGY+0uuEvItrHmpxbYeFy5RzgKQlDeqCso+S2cn X-Received: by 2002:a92:dcc6:: with SMTP id b6mr843100ilr.146.1623871290363; Wed, 16 Jun 2021 12:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623871290; cv=none; d=google.com; s=arc-20160816; b=Ru1hnajmXImqdRx7W3Mdq4fAgbXw6Rqj/nuM+vCvVJAS0opJZREIvdTGD1FgTmhmUB 77xqFVE2uMytNDDdqv1giF1mrUdHHV1w8Tz4hZzUQ86fHgJ2Ht3dx1rZUYGlMIfomax4 vQ9Wax6lOE+dLrL1gxu0/1RyOvSPbNHRRuihjaIyEZH4WUo01cQ9XIRl+MlG8gFhRWSu OxgZ9I7yoThsBI0YJaN5jCob8qL/MgGlk2jjiA6GdLrJ21F7oqIsCEQuicSHa3T6O2mL v2ETHLPstem9Q7+aQKt/cWZy4spUsx+fLxXqFi0sw8R+CGABNQxjJg72UYKhPDXqzlwb KP0Q== 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=2tNS+SX5Cd8wquTO79BQgrSrDCQz8oAeXDAIQqfgP9w=; b=v5tTWP/PrMiKik4hQ1lFnoXfOA5qI/aFyJGlb8KKWCmPOsV67aQG+qKDVxTUsYJ2pv owRqZC9lW1No5435ZWIHZq90a2KUQdYhtZuN3jsdOKog5WeeT001zQNtDqnNycRGi4NN 1HEvTOIilVAaqH0w0HeYQxXxRsPfC7r02zV4xCTvIVBFNLQ3YRHtxW6UfmFwx4TcvaZt 3IjcSxX8hIney+UBMfSl6sSToVzxl2toOu9ej3KdAHhUZZO7RMHU/nBOvc3nk9+h/aVD HEN5jqqA0W0ZNBy4Bx3tiX4TVTzZrqrZN/PsW5j7NL050ADA6FK0/+pqF6PBgP5eWO4m z5vw== 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 m4si3245467iln.52.2021.06.16.12.21.16; Wed, 16 Jun 2021 12:21:30 -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 S234469AbhFPPNU (ORCPT + 99 others); Wed, 16 Jun 2021 11:13:20 -0400 Received: from mail-ot1-f43.google.com ([209.85.210.43]:35379 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234390AbhFPPNU (ORCPT ); Wed, 16 Jun 2021 11:13:20 -0400 Received: by mail-ot1-f43.google.com with SMTP id 7-20020a9d0d070000b0290439abcef697so2829483oti.2; Wed, 16 Jun 2021 08:11:13 -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=2tNS+SX5Cd8wquTO79BQgrSrDCQz8oAeXDAIQqfgP9w=; b=FBGPHekCfkTbffym0CKdWpW00Lsjrbg2DF7gTpJKrKkRtwfrXtVi9f6UkNZSstj8Zu UquI+360IOZ+uEXontHo8mVIRvQVWug/QvHgLmgCFhb97m+dXUV+5Zr9rfS+eUGO8MtM 6uxDyDEPOEfn/22IfJF15ijfM4iHAHx4cAYeJ0P5+MMtyYPGMWiEGNjv2IiWnbGY2YuC pVMV32Wyy19cNSWSJZxCmvSIpVqvGrszwElXO/t02MqM3rb52CD5nC43iVLtss2CLtzw +T+VCJbKrCjQRINjhMekGdb+bq80Bre8l2HCf/oQkp30ZXL3JwZfkNpf7aUuQDjwOs75 piBQ== X-Gm-Message-State: AOAM533xPYIenS4/Ji24JLl65uiPuecFc+SDdPJSw7koyS/yOkscwyBD FYECrQ5yNpXXTTb/XiqtzJpFEPJ/MX/S2AUqXIhg4WRV42A= X-Received: by 2002:a9d:6c4d:: with SMTP id g13mr302741otq.321.1623856273053; Wed, 16 Jun 2021 08:11:13 -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:11:01 +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 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. If it needs to be exported in the future, that still can be done. ATM the export isn't necessary. Thanks!