Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp347355pxb; Fri, 3 Sep 2021 03:34:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRT9yf33bgl/HUq/B9Z0eaLGhiYVfQDISvAxcNddAfaWdYDt/71YALb55LL/WEGco3c6HX X-Received: by 2002:a92:d3cf:: with SMTP id c15mr2045823ilh.131.1630665273152; Fri, 03 Sep 2021 03:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630665273; cv=none; d=google.com; s=arc-20160816; b=HoW1nm+bO3XKtuXnd/fQ9Cx31uBa7kVDz3Tf5TNXVCKQg78z9DmLB8HK9Hcb5EL1ZI qOAFfKnq5sysFHBGHcJbYe3DgFc9PqLboaJ/bp3mrrLjJSxlpDsaPwHKZ1WGY3YltRMQ luFi0akpxuVY7D5thTyU4lSJ0QMBHbXfub1Rx10DJQEQf035199RCEjDpE9yaYuZvgGY n1UL63+J8VVbFyYLLSW2hFipVYt5FPz+7DSh9g9EZCoLkCDhFqT+No7HC+SEMLbx1L+3 FO/qoivwiSh4qLKq/P3WBtS9ET5ftL7TCeFGTQKJtqtTH7DSqm/HzXuymgZ67SVAcUXU EU+Q== 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=fBPFZDdudXT9nLyNa5jIhm1InOCc+X/nullyt3ssKfA=; b=IahgoitEJd3WUW3qGx1VHMF4cr0MPz/s5smM9dOCz3sBiZsdTT1ONSj9R9m4zt3AcJ dsbGHzDgk5TDDRo4duyQa996LKpIqK1TRoYaiNlfEDJmDLqlt6/Ug2Gn7/47ZNIHk5a7 t6xEmlobqQrgLC3+HOx0EzSuKbflm1qVddy1/fUT5DqMTe/vm5LMuI5V6AG3HqE3/aGF IF6s7yozljArEmgK5xW4SszZbaITp9Sf0PWZoyBboI71NwJa0L1DjIqY7tFWiU5Y7KHe 03xyPffeHsKCSz2XmD9t5xxb7C3oZXuIf4lLtJpeMd7HfMOJeVJ3kxAoigC5DzZWoiYc CHVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HMYZWGRV; 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 k17si4695865iow.29.2021.09.03.03.34.19; Fri, 03 Sep 2021 03:34:33 -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=HMYZWGRV; 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 S234713AbhICHSk (ORCPT + 99 others); Fri, 3 Sep 2021 03:18:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347601AbhICHSj (ORCPT ); Fri, 3 Sep 2021 03:18:39 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B97BC061575 for ; Fri, 3 Sep 2021 00:17:39 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id s3so8126932ljp.11 for ; Fri, 03 Sep 2021 00:17:39 -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=fBPFZDdudXT9nLyNa5jIhm1InOCc+X/nullyt3ssKfA=; b=HMYZWGRVfbuPlEk2Fi9n+aluSUDZFov3xnXvw3NkJsZxgQOhzS4UEfd6AmNC0MjomZ pVetIl95zkIc+acmuL7xJ2uCWVrE0Fi/S3Yrz96OQIXepcuHzo3SJlV+C+D/8YY36ObQ 2czD+fZyOqbil310sVL6vVE/l8pi1r2EzZTfE= 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=fBPFZDdudXT9nLyNa5jIhm1InOCc+X/nullyt3ssKfA=; b=EMKw6mbBCESvhmYbhb8G+D3Qz5V/iFS0dPOX8wj0s/pBn6XhPG5YoqzLJ1TiDP9+lq nz08Du6jETabBznu9l5DVzHd3tapBzqXsM52qtlK4NeE47j9vBVKgFuj2u6f0aCmPkWI nHN+gcIiujRlDgVEhSxGGuj3FShaObjz2wzBs50PxExsPUnZvGqOsjXh+KZCTxnrZ4EK 40d8amrT4wKTcKcPxSi+z1ARsZEebRzEcLH0ititNwIWXRmDClkHduRXobJLK8Tny4Lc 8xF447Zjcix7e4xCEw1Rzmi9XM5CmykKc3/5/KpW9fYzdH+Cx7vSYQljYATzkSoExCzk 1w0Q== X-Gm-Message-State: AOAM53141kSvWWeYqhLTKGhahdu9ibVONLqTsgo/xRAVEi5pVrGumjpv OVer4h8uiaxv210/4aHGxKQO5ot/Y9e+bD3fv6P3XbGZg5o= X-Received: by 2002:a05:651c:211a:: with SMTP id a26mr1840127ljq.305.1630653457485; Fri, 03 Sep 2021 00:17:37 -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> <13a16d4b47d4cb36061add729eca6c35ad84c814.camel@mediatek.com> In-Reply-To: <13a16d4b47d4cb36061add729eca6c35ad84c814.camel@mediatek.com> From: Chen-Yu Tsai Date: Fri, 3 Sep 2021 15:17:26 +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 Fri, Sep 3, 2021 at 3:05 PM Trevor Wu wrote: > > On Thu, 2021-09-02 at 17:15 +0800, Chen-Yu Tsai wrote: > > 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 > > Hi ChenYu, > > Got it. I will send a patch for the problem. I believe the background for this is that the kernel gets tested the most on x86, even for build tests. We want code to get tested more, especially for API changes for which the authors most likely do not have hardware to test all combinations. ChenYu