Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2933602iog; Mon, 20 Jun 2022 07:47:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tC1jvRh2xeNePawVxlmYNFFJ/DbIf8pF0TCnptRsK4RX7JZ1T2wHV6Wurd1VguVKq48GuV X-Received: by 2002:a17:903:11cd:b0:167:8a0f:8d44 with SMTP id q13-20020a17090311cd00b001678a0f8d44mr24195791plh.72.1655736424155; Mon, 20 Jun 2022 07:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736424; cv=none; d=google.com; s=arc-20160816; b=IJgb76N9TofBSw8ceBGJ9bzQXUqKw8Z+mqsBaq+bC9kBaRUIU5QIH6QDXfSX0Jspc3 I7XmuygbblRpnZnpSXXzPPQ8H3CxdMvEMbPP6IT0be+boYlLxqvbyVtTfJ5C13z0SyhC 009eUrMUXAnChEhoxkhPLGRwbrY2yHnKmVoqerjiQi9QhVcAxsnLEW/egI4wFzBRwpzx 3a2Dt+QvRlPWk1ehYMWzLmiGczWHcr0e1HThC8ZP/rxzUeWA4u/ChZdvE1HDuG4Y6Fy0 QCU+pCw1UA/Uf0tH5o/umzznBAeLQHfXsbaAggRu7xyaDGJh/gcESM6L+YGXVlARBPBb 0L4g== 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=YmUpJF6U96n2AQHdPlrCqtnO5daMRsGySu9hcJXm4Co=; b=y1XlLvczEBcyBMwn1H+Ldq0WE++P8dhAQwPIJBEY+IXPxEcs+qw4oFzKDnjjvzkVO0 Ff2X2FpmE7AHbcRasRvRYQ6iQgwPGQpMoaFtNr7s8BgFGyZEOtnXZjtajjLaeTVvm2fU ZywP9hpTh3EGfNBaemqVoVordT3ezOqyckysmGLUwL6qS5MimCdjDz9lArJ/3mVTeBhA 5ATp4+939T4sa3FWMk8KYaAQ1Lc7FPoy1hI8BQYUDEeedx/4mZ1oAeHHd1J3/mRpSvYn Sy5ovRcng6emVdlvaaMKQJWbwkBghXo9kRnKU0mC8ROeNpEImfHLUjyVtZbbt5WFsYaC 3/9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vyJG/wHu"; 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 r14-20020a63204e000000b003c6c6e29bc6si16549644pgm.416.2022.06.20.07.46.52; Mon, 20 Jun 2022 07:47:04 -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="vyJG/wHu"; 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 S242952AbiFTM4X (ORCPT + 99 others); Mon, 20 Jun 2022 08:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243369AbiFTMzs (ORCPT ); Mon, 20 Jun 2022 08:55:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74C9B19F95; Mon, 20 Jun 2022 05:54:51 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D4BD5614CE; Mon, 20 Jun 2022 12:54:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4D06C3411B; Mon, 20 Jun 2022 12:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655729690; bh=YGPJSIN4rLQzhxISScC7BKlrycx2fKnKwDHRfnaUlJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vyJG/wHuU33FtiGHzui43jTn6r/n3BiNcyaOT10OHwKj7OYrTgWn0b4si6vWzl//k 0heR1GoP84mr4jP+9M3AYt47YEIFmt4fRYkNOCtZ5cz9MGopjIDtwUJKPRLxy/ZtIQ ET17wXaZpgk+r8/mKZusOcrLyh854A1+WbSJGUP0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yupeng Li , Guenter Roeck , Huacai Chen , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.18 044/141] MIPS: Loongson-3: fix compile mips cpu_hwmon as module build error. Date: Mon, 20 Jun 2022 14:49:42 +0200 Message-Id: <20220620124730.837456177@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124729.509745706@linuxfoundation.org> References: <20220620124729.509745706@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.7 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: Yupeng Li [ Upstream commit 41e456400212803704e82691716e1d7b0865114a ] set cpu_hwmon as a module build with loongson_sysconf, loongson_chiptemp undefined error,fix cpu_hwmon compile options to be bool.Some kernel compilation error information is as follows: Checking missing-syscalls for N32 CALL scripts/checksyscalls.sh Checking missing-syscalls for O32 CALL scripts/checksyscalls.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC [M] drivers/platform/mips/cpu_hwmon.o Building modules, stage 2. MODPOST 200 modules ERROR: "loongson_sysconf" [drivers/platform/mips/cpu_hwmon.ko] undefined! ERROR: "loongson_chiptemp" [drivers/platform/mips/cpu_hwmon.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92:__modpost] 错误 1 make: *** [Makefile:1261:modules] 错误 2 Signed-off-by: Yupeng Li Reviewed-by: Guenter Roeck Reviewed-by: Huacai Chen Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- drivers/platform/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/mips/Kconfig b/drivers/platform/mips/Kconfig index d421e1482395..6b51ad01f791 100644 --- a/drivers/platform/mips/Kconfig +++ b/drivers/platform/mips/Kconfig @@ -17,7 +17,7 @@ menuconfig MIPS_PLATFORM_DEVICES if MIPS_PLATFORM_DEVICES config CPU_HWMON - tristate "Loongson-3 CPU HWMon Driver" + bool "Loongson-3 CPU HWMon Driver" depends on MACH_LOONGSON64 select HWMON default y -- 2.35.1