Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp668647iol; Thu, 9 Jun 2022 11:17:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6O8iJTqO9BayKh8rznaCriIzworvY2RPONFf6UaxycqXNQKIWumMSkxuIIZ6kbq7M1CNy X-Received: by 2002:a17:906:7217:b0:6fe:9448:6142 with SMTP id m23-20020a170906721700b006fe94486142mr24781463ejk.241.1654798669540; Thu, 09 Jun 2022 11:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654798669; cv=none; d=google.com; s=arc-20160816; b=0nGHOmwdohPcPQDtra4j2X9t0ngbNHlTiNiH6w9MwiG70knEtPlssvDYqlJPVTzGgY QRCbs3kDngd34IZld3pYE+ukp58YK/g9CFTpiuVWnTXuuUkG+x3tQ8jlAjUPotj4/pKy N+yZuO/0Eiw+PpZphNgV6JMVJs2N6gmjsql9W/kdTaROggC7zwUFN28HJUbRqF+wd7i2 U0qDiPWJzW1vWCGbR25S5K5Q2E6rXM+RV17xBQS7er291LoAt/+If+wx0Y869u4RME+Y YngNQ7VmGcmJ7Hi6Jkf3aYVviPGEEevydkANtVXiZCebIHw53L1Z5xG+zCCZoAoYgqP1 +YKw== 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=VC+T5gNopDGm2JXb4Q0gD1ESudpir+AKQBEND4sHjLs=; b=yCPtgDaIauFHmVeqblbs3iZkox48fcUPTWMO6ouIVpF8H+Uap+NRPZ6bK/Ik61sVHd PbPOFSKpkCjiu6KCLlkoce92wCA4DR2X/ax2aj1tV8sq7IBZ9g5xUfN76I21eCJ99821 iNVs7HmwO8L67nzmdxYIB3mVKVKZuTJKX+d0+T9TMOSRVQdpsdw7G4AtefWgiSdWwts0 sLyRGFBE5+2SsHx1WXTHCmQbsU0Ta6vSBmN+v+u22wHCGwU4oudaY/u94Anqqw7anhq0 WuQ3u9WWD1WBmJP0MJdH18SY+inIIosSErxkNyIA4hwP6+tuvwKgnU6EzD5AnjfFG8PR B3TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a05640240cf00b0042fadee7b8csi6426182edb.538.2022.06.09.11.17.22; Thu, 09 Jun 2022 11:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S245512AbiFIRfy (ORCPT + 99 others); Thu, 9 Jun 2022 13:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232387AbiFIRfx (ORCPT ); Thu, 9 Jun 2022 13:35:53 -0400 Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 426B7169E2B; Thu, 9 Jun 2022 10:35:52 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id p13so42956978ybm.1; Thu, 09 Jun 2022 10:35:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VC+T5gNopDGm2JXb4Q0gD1ESudpir+AKQBEND4sHjLs=; b=430MJSkaxs7KMOw4QhH8X2FHZuBzUIbs704MKdJjhDzvZXtt04U421Ttkq6Hjvf6Ns ZcF9gFlthCSGBRvWEWbVopNf5xItqCs4ZFbIxD8N/GpCwEQ/eMZ/SeJJgwyjjwWwGr4u aaH7ZmKgP0aZwEtPO8VYYEz+rI9AuFkm1PNP4TqoDQlyihLB1gnqBhqJXc7X2JpopANI ZSg+30MckJsBgE5vBaB0+4WuV5mXVr5TopNwwTSRm/gzuqPd/2o4fZ/mvWkt6dpF1X7w FeQNHBIZ+MRUopoaL3Gc1yock+I8UqN6hHHzwO2yqtsattw9NfTcxAT+gZs65Z0NeB0s nJlw== X-Gm-Message-State: AOAM532xGFYOESj0mNy2eEZmFXeQqG4w5TeRx1NKAjMqVva2zjl++kwf GgZ6aj1czNZDXvPRE17OwzwHb+aSp8ZE686CUx0Rtpzq X-Received: by 2002:a25:d748:0:b0:65c:6b00:55af with SMTP id o69-20020a25d748000000b0065c6b0055afmr39672546ybg.365.1654796151473; Thu, 09 Jun 2022 10:35:51 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <5296779.Sb9uPGUboI@kreacher> <63d7f3ed-b5a9-c869-5d25-a33a1d4e63c8@linux.intel.com> <7652ddab-53a5-ac8e-33f5-d25527acb1a6@linux.intel.com> In-Reply-To: <7652ddab-53a5-ac8e-33f5-d25527acb1a6@linux.intel.com> From: "Rafael J. Wysocki" Date: Thu, 9 Jun 2022 19:35:40 +0200 Message-ID: Subject: Re: [PATCH v1 14/16] soundwire: Use acpi_dev_for_each_child() To: Pierre-Louis Bossart Cc: "Rafael J. Wysocki" , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Linux PM , Mika Westerberg , "Rafael J. Wysocki" , LKML , Linux ACPI , Vinod Koul , Hans de Goede , Sakari Ailus , Sanyog Kale , Andy Shevchenko , Bard Liao Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 9, 2022 at 6:21 PM Pierre-Louis Bossart wrote: > > > >> Shouldn't the return of sdw_acpi_find_one() be trapped, e.g. with > >> > >> return acpi_dev_for_each_child(parent, sdw_acpi_find_one, bus); > > > > Sure, I'll do that. Thanks! > > I also added this EXPORT_SYMBOL to work-around link errors, not sure if > this is in your tree already? One of the previous patches in the series is adding the export. > diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c > > index 86fa61a21826c..ade6259c19af6 100644 > > --- a/drivers/acpi/bus.c > > +++ b/drivers/acpi/bus.c > > @@ -1113,6 +1113,7 @@ int acpi_dev_for_each_child(struct acpi_device *adev, > > > > return device_for_each_child(&adev->dev, &adwc, > acpi_dev_for_one_check); > > } > > +EXPORT_SYMBOL_GPL(acpi_dev_for_each_child); > >