Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp799832pxj; Wed, 16 Jun 2021 13:59:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOM4BD+EtgM4g72qnXscRA50N1qjWLy861ORxYb774CB8iywX3gvG6MDYtuVEh5OkcE0GZ X-Received: by 2002:a02:3506:: with SMTP id k6mr1168766jaa.39.1623877172337; Wed, 16 Jun 2021 13:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623877172; cv=none; d=google.com; s=arc-20160816; b=h/93TFtpMcNHkWcgrgSiUaU1pI7VMI9q4Gq84gGVA3RdBT7bHz9wF5E3N+aGeJIwcM Y6xTfoE/E/NnHY7SAmEzCXgKpWfZgA3Gl1a2yeF2EOIN/DFfUgad8bgi1CE6y3Z/7rux hGXqAtr4KqH2quXutHH3UywYQBVKFSQInX/qfAXstw4MtoQcrrwdY846t58B/olMyRBT Xs1xwsx8wtIeMt5UIYRGDoyg8vr+oP7EhcvUr4ZNuEDFzBSo/yAzNHfrijrZVf1yhjD/ +aXThnDn/a0Ge1Xx2z0n87WoqpMtBp4YB6W6t2sJ/z1HSWKIV6s/u5JP5KJqpRdRIu0R qqng== 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=BLas3/nFvDzs67dkoqE0uPTj+WWCmULhYvLflkP+fWo=; b=jzSkjKnLAFKTuovo5CfO424SuLyFbg7K/Uv3FWoYKimQ9rIx+LJH8r2o7gHWUmeGOS 956f84McKHR3Sp93vg50jjuKD6g/Ym9oZ+VwNBQDqxHnbfXoK2zYietA1pw9Yaua59W4 P3/xARAfRBdskBJ9ZmURTa18sqxj0QI4frSd1sYBtuUDg2AGpHuG2R1dRW08b8cvBgl2 uWCCQMaBA0jSZPzxXEcAB1w0yVfirlwOYgBUZXQ4wO0rl897/jVEuZastXkNpDFvCdjd O/fce4tuHhPEpwsA8De7OMvdmpWtL66f+2NciswZbIFCAQGNFXfmgYndaK5YDIZAkxf+ C01g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GGkC1mWr; 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 d25si3991716iop.15.2021.06.16.13.59.18; Wed, 16 Jun 2021 13:59:32 -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=GGkC1mWr; 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 S234077AbhFPPab (ORCPT + 99 others); Wed, 16 Jun 2021 11:30:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:48432 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234357AbhFPPa3 (ORCPT ); Wed, 16 Jun 2021 11:30:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623857302; 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=BLas3/nFvDzs67dkoqE0uPTj+WWCmULhYvLflkP+fWo=; b=GGkC1mWrAWu23uiP2Y0xREcTmmf7C3JuBaGHskSMoxQP4Ar5qrmZ9b6YsTImHrkmlaJbqY zBidF4nAqAE1SGhScxDaxwXV4vupAOqlCZ/26lBu6KOF9y0G8e8K5GA+6ckdywo1xncNlI ir20uQjLiKw2A/7BP8EBuOl6R/9LWUU= 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-543-kD5j4zOvND6YXVSds5LdBA-1; Wed, 16 Jun 2021 11:28:21 -0400 X-MC-Unique: kD5j4zOvND6YXVSds5LdBA-1 Received: by mail-ed1-f72.google.com with SMTP id j3-20020aa7c3430000b0290393f7aad447so1244471edr.18 for ; Wed, 16 Jun 2021 08:28:21 -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=BLas3/nFvDzs67dkoqE0uPTj+WWCmULhYvLflkP+fWo=; b=biqCOmblYBHJZHPuBsfF2ghRt94HwaMb753WjyL9cwMLiTKoTyyZE+hD2H67JkeZQR 7jDGfwdNUhDgItHFMJ4Biw5VTkezaotE+g82jfMM/9+70WNQJ1mrqJdlTTfhBTusC44X jyllXh/8hfZs7in+sM1a5Qfs5zTZCSQO8vE6iynh2gCWXp6EiorMOHUN2SYQfnTowThS 8KHpFVGHTMq4Y+KHTm5HvF2UKCzX86/441fdruNRVAGlu18C5vq56PI8wfWHXRzaHnP1 CMub/B437nR39WzTSWTQDSACwmAEqwubsvY9y7QFjEmyLHWLYrgqma7HsejxE5hOaSlw 5Ffw== X-Gm-Message-State: AOAM530eGVjK3Mr46yGaXIXaIAGnW4EPipGPiqndP21WWPWqxXahVeRG BUu7WU/IDGQUoeJ1mHLyLf5Jj6E9jt+cjGppQtzYbQvBIZ4KD6XkcDBWxeXO6+WhgYoVZplyep2 1kXHj3w2NjDdwQWne0Prd6a8srNKFrldSNvu+6JQA+sHEQ0oPuJLGvEq8udAdnBC+vNMw5gb3LI ZH X-Received: by 2002:a17:907:6f2:: with SMTP id yh18mr80065ejb.5.1623857300211; Wed, 16 Jun 2021 08:28:20 -0700 (PDT) X-Received: by 2002:a17:907:6f2:: with SMTP id yh18mr80047ejb.5.1623857299995; Wed, 16 Jun 2021 08:28:19 -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 n23sm2136526edr.87.2021.06.16.08.28.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 08:28:19 -0700 (PDT) Subject: Re: [PATCH 2/5] ACPI: scan: Make acpi_walk_dep_device_list() To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux ACPI , LKML References: <3140195.44csPzL39Z@kreacher> <1881350.PYKUYFuaPT@kreacher> From: Hans de Goede Message-ID: <4a08edff-df90-aeee-1d1d-76e6e0b9af4d@redhat.com> Date: Wed, 16 Jun 2021 17:28:19 +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: 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 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. You are right, my bad. So with this resolved, this patch is fine too: Reviewed-by: Hans de Goede Regards, Hans