Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp207694pxb; Thu, 2 Sep 2021 02:16:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1gRgfwLDp0G+mAPkOl56gOvYKy1BwbgeONoOLZU1nmkkei5XfqMnT4/bbut1yByVodmZM X-Received: by 2002:a6b:fd05:: with SMTP id c5mr1912314ioi.102.1630574206148; Thu, 02 Sep 2021 02:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630574206; cv=none; d=google.com; s=arc-20160816; b=LfAYQow0x+zLbdXHjkzyw/7GSqeaLWvdwYYv+MkbAWniBUB9OnnLO5rgvr6NRbT7ee lMyiU6eIEuY6+FziT64a1XhZz4om4klXeipU2CZtOt+88jZZRb7FYOjs6xrF1E9rfuuT kwcw6ZrS49mO5RCf3NEjjwnTANJLc1UwQ0bHCnGf6Qk0DovuxfNhqn4619MzIqShV6CB 51p/n33HBcwULalgAgNyuhqReuthYTRDHRNk6V5y0IymjN07q8UbN1Ku39aDVpj8IBHi 0C3J6PF6bEXNvqTswem8FGXSXDm9hB0VIlHH2cndXDPkfQuw4VQrWUTHczStWnj8/c70 cpbg== 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:dkim-signature; bh=b7w0R6VDMHv6UT6JVPqf/kPPNWm6Bp4/tXYIQLznWTU=; b=XpXBwzulnB1TYZ6ytoDBRGSVerMblRtYFKykl4iTMTz+CypOGMZDs2r+ZD775x/Wu/ OQ9+NDWc6Fezxk9hDTRPObQlo5STGNzZgUc7UtnCPX5DbViJA4sF3/rGY9XbhOeG1qAa N9ZZkQ4vItNH/Vrp96FGbgRO4HH8HcP2Y2bhi4xZ3eKBZ5FgBKbFYKfRoq48j5zSG2cy fz2qVeKf83oj5sJZ68z6V108FCJ8+OyZOeSv/vQufQy252cMW2OCL5btgwFZhervuQ6w slqSP/iy7Why7/nNvdv7KjN3KfVZJ3Vyl6S8S/giM82k5BCEEY6YqM9ZjIGS1D9dn9kI Nm2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k1YBKmWE; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si1805669ilu.56.2021.09.02.02.16.34; Thu, 02 Sep 2021 02:16:46 -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=@chromium.org header.s=google header.b=k1YBKmWE; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244989AbhIBJQV (ORCPT + 99 others); Thu, 2 Sep 2021 05:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233624AbhIBJQR (ORCPT ); Thu, 2 Sep 2021 05:16:17 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C6CEC061757 for ; Thu, 2 Sep 2021 02:15:19 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id s3so2264083ljp.11 for ; Thu, 02 Sep 2021 02:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b7w0R6VDMHv6UT6JVPqf/kPPNWm6Bp4/tXYIQLznWTU=; b=k1YBKmWEwL6N9mTcLBnnh9GXkTMM6CzZR88O0IWOtw1nWLcAZ73gDLxqtcTBWTtiyB qbhxJjU4nHODlJYbvWegWLmzBsHnWZrVEjLUO0RbEmuHzI8C4gwPuYD5ak6btJdmnDGo GKRyY3efJIqpC1MF3zaxCuTZ1MJEfK2DGCpdM= 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=b7w0R6VDMHv6UT6JVPqf/kPPNWm6Bp4/tXYIQLznWTU=; b=VOyCcuVemGR9OtD+0tYhdW2cD/hjpmhEMrRsG1W50VfkLeKislfzdVlOenr1areG5n 4boxuES6yivoGrBAdrDsiJhvXVaDU2+F/vCDYd+4gjFd6+cOxWQlXRfbNW9KZrZv9Etu liL9jwb4omb7WCBuk5YFUF2mFMk3MsBJtPdZK4KmJ+z/zAZSbNxO/Y2q7m8HJi1AJdQR QxqySJssbw0bJau/vNIdn0qPXUqteG9KfmlAB3sy0GA50KdtUZg0bKUaSpA7mSEIpv37 7/aoD3bbYt41BpUqpM57WA+x+bQAojVGWylkTLfCkj7lcpjgFy7ms59It3MWOolzAPwc ylYg== X-Gm-Message-State: AOAM533poOeiDVmQUKOpYUgjiBqwsY0En1SbH9VjXROqDUCZjAMnLftN lqQB2LDZ2Uxlj+LM6RcnmsuJZYZpthP+JDIwMDzDWA== X-Received: by 2002:a2e:b16a:: with SMTP id a10mr1736095ljm.18.1630574117548; Thu, 02 Sep 2021 02:15:17 -0700 (PDT) MIME-Version: 1.0 References: <20210901181740.3a0a69f2@canb.auug.org.au> <3ee0b878-b78c-2483-1a0b-7570bda0132b@infradead.org> <299c7f0a7b1dede1e2f704a0133f4045e85641b5.camel@mediatek.com> <43d231a765a2106b6ef0cbbe842ba3ec37b45878.camel@mediatek.com> In-Reply-To: <43d231a765a2106b6ef0cbbe842ba3ec37b45878.camel@mediatek.com> From: Chen-Yu Tsai Date: Thu, 2 Sep 2021 17:15:06 +0800 Message-ID: Subject: Re: linux-next: Tree for Sep 1 [sound/soc/mediatek/mt8195/snd-soc-mt8195-afe.ko] To: Trevor Wu Cc: Geert Uytterhoeven , Stephen Rothwell , ALSA Development Mailing List , Bicycle Tsai , Randy Dunlap , Linux Kernel Mailing List , Liam Girdwood , Mark Brown , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 2, 2021 at 4:52 PM Trevor Wu wrote: > > On Thu, 2021-09-02 at 10:22 +0200, Geert Uytterhoeven wrote: > > Hi Trevor, > > > > On Thu, Sep 2, 2021 at 4:37 AM Trevor Wu > > wrote: > > > On Wed, 2021-09-01 at 13:55 -0700, Randy Dunlap wrote: > > > > On 9/1/21 1:17 AM, Stephen Rothwell wrote: > > > > > Please do not add any v5.16 related code to your linux-next > > > > > included > > > > > branches until after v5.15-rc1 has been released. > > > > > > > > > > Changes since 20210831: > > > > > > > > > > > > > > > > > on x86_64: > > > > > > > > ERROR: modpost: "clkdev_add" [sound/soc/mediatek/mt8195/snd-soc- > > > > mt8195-afe.ko] undefined! > > > > ERROR: modpost: "clkdev_drop" [sound/soc/mediatek/mt8195/snd-soc- > > > > mt8195-afe.ko] undefined! > > > > ERROR: modpost: "clk_unregister_gate" > > > > [sound/soc/mediatek/mt8195/snd- > > > > soc-mt8195-afe.ko] undefined! > > > > ERROR: modpost: "clk_register_gate" > > > > [sound/soc/mediatek/mt8195/snd- > > > > soc-mt8195-afe.ko] undefined! > > > > > > > > Full randconfig file is attached. > > > > > > > > > > Hi Randy, > > > > > > The problem is caused by the dependency declaration, because it's > > > not a > > > driver for x86_64. > > > The dependency declaration has been added in the following patch. > > > > > > > https://urldefense.com/v3/__https://patchwork.kernel.org/project/alsa-devel/patch/7e628e359bde04ceb9ddd74a45931059b4a4623c.1630415860.git.geert*renesas@glider.be/__;Kw!!CTRNKA9wMg0ARbw!wMq130mAo-s45pP6ShQ1S8UIRuJLhwOnCbQNAQHIE2zvNhjAd67h1rlqkIDxJvC5_g$ > > > > > > > That is not sufficient, if COMPILE_TEST is enabled. > > > > Looks like it needs a dependency on COMMON_CLK, too. > > > > Gr{oetje,eeting}s, > > > > Geert > > > > Hi Geert, > > Because it's a ARM64 driver, ARM64 will select COMMON_CLK. > It seems that some dependency should be checked if COMPILE_TEST is > enabled and the driver is compiled on non-ARM64 environment. > We don't expect the driver can be used on non-ARM64 environment,may I > remove COMPILE_TEST to solve the problem? > If the driver only depends on ARCH_MEDIATEK, it must be compiled on > ARM64. The whole point of COMPILE_TEST is that it gets compile-tested. It doesn't have to actually run. Since the driver is using parts of the common clk framework, it should declare an explicit dependency, instead of implicitly depending on other symbols to enable it. ChenYu