Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp589052rwe; Thu, 1 Sep 2022 04:55:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR41rMoRYhsLraN5CY38DLS6eYbQgXCno8gU1O6lBpRBeMyVOI/KKaHzauMK0VtjJgws+KQl X-Received: by 2002:a17:902:d501:b0:174:c4c9:9b77 with SMTP id b1-20020a170902d50100b00174c4c99b77mr18632241plg.67.1662033341126; Thu, 01 Sep 2022 04:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662033341; cv=none; d=google.com; s=arc-20160816; b=IU1FM/06FUsIQBRiULD4rPfydU0ACjHCasQHNpyvHk8vAFVoXleshyaORTWLfIR1SV DAKojeG/20QwRaYuvEXk3yseQdm9xyi/BtsEgSlJDeuXbz6zk98taSWsnl/CB8fzr2Dh 5COso/aSLjFipRgich6EI2BVUqI3BcWtnb142a4LjgmCyZh67Zd0nJGwk4Q6OGQi6sej ti/9FrtkWcArd2oans6ehJJB3CaK0HHtfvVGjXn5TizzM3QloZLELBaRrwsPTIvV3wg8 ThWfSxkUNdDQS9i78RNVj2taVHfTjI3XiNiItTeBa7/vMTsarxNk/BpwdPZe1ehlkeRs skSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=64K6de8/WYbFY9mQuRbf7StfNJYaBkUUYkjBkby97iE=; b=om6pNkBW6KPFPr46PQzbNpxM3DyNnNAiJuKK0HSIoCQBVHlv7ONbMYcn9tMZTvVsBG Oelhdtij+D+7lkq/xjhMMZQKjcWeS8vri4ZaPDMd6HY5QSb7mkZzN+j3yJjVxtSsDF5/ 5buPLqQJUev0AU/E2Zjt78P7abiZ/cTMKT7mhrWBxuRnnCM8Ix0tS3b6z4jVYpRT4Wk1 zNpsN+u3YoLB7nN7auoC92d+9VsC5md4q6p7YB9Bo7pUpZjZjW/K4TKb5vOcwkv1YMf2 Ay6lmhJjILdsEJia46/z+lCDYnsh8L4ohlghvC95+ZkKKXTf/M78L02VdEVHU7F/YBzP 7qNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=LJbzIZvX; 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=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a170903120700b0016ed87fd1efsi6244566plh.467.2022.09.01.04.55.06; Thu, 01 Sep 2022 04:55:41 -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; dkim=pass header.i=@cutebit.org header.s=mail header.b=LJbzIZvX; 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=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232389AbiIALee (ORCPT + 99 others); Thu, 1 Sep 2022 07:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbiIALe3 (ORCPT ); Thu, 1 Sep 2022 07:34:29 -0400 Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC17A11519C for ; Thu, 1 Sep 2022 04:34:26 -0700 (PDT) From: =?UTF-8?q?Martin=20Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1662032063; bh=64K6de8/WYbFY9mQuRbf7StfNJYaBkUUYkjBkby97iE=; h=From:To:Cc:Subject:Date; b=LJbzIZvXhb5XUcSgRAC6Eu5+ldNP5RqOgTHgRXWJbqEgRO08yUwNmOaJm92Y8GcnE X59dRQe1LOpgFJNtPQSlkSyYZbhk8PStP+BUrxFwMvgNetA6uWd53VFbZ3+XiAaQOX aLQ9Aomr4d0baGByf/w+uvTLODMhaU+t6whgiWYQ= To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, asahi@lists.linux.dev, alsa-devel@alsa-project.org, =?UTF-8?q?Martin=20Povi=C5=A1er?= , kernel test robot Subject: [PATCH 1/2] ASoC: apple: mca: Unselect COMMON_CLK in Kconfig Date: Thu, 1 Sep 2022 13:34:14 +0200 Message-Id: <20220901113415.27449-1-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 The MCA driver selects COMMON_CLK, which leads to misconfiguration on platforms with HAVE_LEGACY_CLK (under compile test). Kconfig catches the conflict with the following warning: WARNING: unmet direct dependencies detected for COMMON_CLK Depends on [n]: !HAVE_LEGACY_CLK [=y] Selected by [m]: - SND_SOC_APPLE_MCA [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && (ARCH_APPLE || COMPILE_TEST [=y]) Eventually the build fails with errors like: >> drivers/clk/clk.c:867:6: error: redefinition of 'clk_unprepare' 867 | void clk_unprepare(struct clk *clk) | ^~~~~~~~~~~~~ In file included from drivers/clk/clk.c:9: include/linux/clk.h:303:20: note: previous definition of 'clk_unprepare' with type 'void(struct clk *)' 303 | static inline void clk_unprepare(struct clk *clk) | ^~~~~~~~~~~~~ which appears to be because COMMON_CLK is selected but HAVE_CLK_PREPARE is not. In the end it seems we had no business selecting COMMON_CLK from an unrelated driver like that, so remove the selection. The linux/clk.h API is there anyway. Fixes: 3df5d0d97289 ("ASoC: apple: mca: Start new platform driver") Reported-by: kernel test robot Signed-off-by: Martin PoviĊĦer --- sound/soc/apple/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/apple/Kconfig b/sound/soc/apple/Kconfig index 0ba955657e98..793f7782e0d7 100644 --- a/sound/soc/apple/Kconfig +++ b/sound/soc/apple/Kconfig @@ -2,7 +2,6 @@ config SND_SOC_APPLE_MCA tristate "Apple Silicon MCA driver" depends on ARCH_APPLE || COMPILE_TEST select SND_DMAENGINE_PCM - select COMMON_CLK default ARCH_APPLE help This option enables an ASoC platform driver for MCA peripherals found -- 2.33.0