Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3445094iob; Mon, 16 May 2022 23:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynu31hKUcn3L6I8dB6LmcoMSQckHcAEDr0n8cYCwtcbK8dOXGbYoj6DhNQBxKgrUZRDLYQ X-Received: by 2002:a17:907:62a6:b0:6ef:8118:d3e2 with SMTP id nd38-20020a17090762a600b006ef8118d3e2mr17821099ejc.605.1652768808234; Mon, 16 May 2022 23:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652768808; cv=none; d=google.com; s=arc-20160816; b=f6bNozhjviAsAk9Xi7AhTM3Pg9a4ciqM6VYOG+MLNwCx1bSRqf7xW7aGl/fuc1MmO5 v57POYDS9HHdUUVXhSs1VwbPWD+IuNzxar4jvNX8uR1ykG1xrtU3KD1UH5aryraTTjwk mnsRGYB4JEMes+0nh/0L7KE3MnnpOmt/lG41t4382FDA5VjfwdAaLDGXfj+QWOsE035g FNz09N+0D30POANdXQkxuCc4O0hpWTHXIVeKmNOV9kfb9kzXWw5Ah0+fjheIQIi5lpas u/pKmCHBZ/ygfoqlBXZwmmu14a3R1gLgZ7XP57bB+ZxKbeLNB+i3jyAuwLi/hjDnaBeX JhDA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0sin9bYg2NjNFxHbUemkVVOh2StuhhVVv4ch0m5sNQs=; b=W8RKjrcBsJTH9x8A3UzKe4Tl9nwZ6BCVri48Ohd6tOOsmIbVqUe76VW3DNz6s0kcfq f3zXWIPxGhLuyeE6ZzQdJwzbDwnQ9rOmBedGQJ2IguKsuc6dWYaiErSSiqoq7aEsjy1r CzlImCB0f3E2p3WGbupC1hQr5c652SeapeIs8uF6cH78gC56zKmpzmRBiR78JWQ0tnra ezchkq8ZSTyWnT1HAEsPwz7Tx8CsgnRnjpwbhnGxfvB/5DmFIJASYIS31n9JpO7XpqsY eJ/I3iw5Q/cHWv/nJAlG11UBmNnrzRcpkH/sljZ/1nGV/AGWNNYZLEJ89hKfaAa+WAKp cl6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BPPPtz2r; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw32-20020a1709066a2000b006f458a898ddsi1762775ejc.42.2022.05.16.23.26.22; Mon, 16 May 2022 23:26:48 -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=@linuxfoundation.org header.s=korg header.b=BPPPtz2r; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346213AbiEPTsb (ORCPT + 99 others); Mon, 16 May 2022 15:48:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346167AbiEPTlp (ORCPT ); Mon, 16 May 2022 15:41:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C70B240A1F; Mon, 16 May 2022 12:40:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5D39EB81609; Mon, 16 May 2022 19:40:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5E1AC385AA; Mon, 16 May 2022 19:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652730014; bh=1FCKJMN0MJmqV7ajFwcNL1MwM/QBhB975KHGaMqgc84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BPPPtz2rih0dHwVHl4uEQA4bnPCFsxVhsSvrHSKAgR3AEz1ZAdtYn1uhLCJhvORnr Y1uj2vEJEdd2YZOrYw7UyGiMKrIA8i5u+F8B3Y8IHzXFUm4IOhX8y/95wH7A9qLrSZ fLJ/Iwh16tJ4XjsFrb0e3afA2ybbWiMNHoZ76+4g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Florian Eckert , Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, Sasha Levin Subject: [PATCH 4.14 06/25] hwmon: (ltq-cputemp) restrict it to SOC_XWAY Date: Mon, 16 May 2022 21:36:20 +0200 Message-Id: <20220516193614.877587840@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516193614.678319286@linuxfoundation.org> References: <20220516193614.678319286@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Randy Dunlap [ Upstream commit 151d6dcbed836270c6c240932da66f147950cbdb ] Building with SENSORS_LTQ_CPUTEMP=y with SOC_FALCON=y causes build errors since FALCON does not support the same features as XWAY. Change this symbol to depend on SOC_XWAY since that provides the necessary interfaces. Repairs these build errors: ../drivers/hwmon/ltq-cputemp.c: In function 'ltq_cputemp_enable': ../drivers/hwmon/ltq-cputemp.c:23:9: error: implicit declaration of function 'ltq_cgu_w32'; did you mean 'ltq_ebu_w32'? [-Werror=implicit-function-declaration] 23 | ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR); ../drivers/hwmon/ltq-cputemp.c:23:21: error: implicit declaration of function 'ltq_cgu_r32'; did you mean 'ltq_ebu_r32'? [-Werror=implicit-function-declaration] 23 | ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR); ../drivers/hwmon/ltq-cputemp.c: In function 'ltq_cputemp_probe': ../drivers/hwmon/ltq-cputemp.c:92:31: error: 'SOC_TYPE_VR9_2' undeclared (first use in this function) 92 | if (ltq_soc_type() != SOC_TYPE_VR9_2) Fixes: 7074d0a92758 ("hwmon: (ltq-cputemp) add cpu temp sensor driver") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Florian Eckert Cc: Guenter Roeck Cc: Jean Delvare Cc: linux-hwmon@vger.kernel.org Link: https://lore.kernel.org/r/20220509234740.26841-1-rdunlap@infradead.org Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index d65431417b17..e02d7bfc4ae4 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -793,7 +793,7 @@ config SENSORS_LTC4261 config SENSORS_LTQ_CPUTEMP bool "Lantiq cpu temperature sensor driver" - depends on LANTIQ + depends on SOC_XWAY help If you say yes here you get support for the temperature sensor inside your CPU. -- 2.35.1