Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1798711iof; Tue, 7 Jun 2022 11:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmxFHgT15HXWbFNU/p7+bVxw+1vlevHGyCGn6dJf1MFw2t+w/jIOBfjANV0KgHHLAz+1Xo X-Received: by 2002:a17:907:9958:b0:6e7:f67a:a1e7 with SMTP id kl24-20020a170907995800b006e7f67aa1e7mr27285820ejc.400.1654626300598; Tue, 07 Jun 2022 11:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654626300; cv=none; d=google.com; s=arc-20160816; b=NiFJbK1K/xvdoMM0dxjRTOlIVDOYeBN3F1gO7rBopbZCDV8BjnTFkGgRjWbxfE5L6l qmXhu+z+Luaj7Edt4VvUZWMEOEfPGLBAUezLpqpfYHgNSET8Kx0Qsv+QSwKzSCo600Vc dEtsAJD2wxFAOsU9pAnXv4CGaDIPtpkJnQmNsX4nDntdDbYzn8YdVwTmQsgW+Zn/gUAw NQOjLVEedr2dam+p3p+bEUutVbu9OY3mI3UYfIBt+nycpZY30NSLb2qWJ5VGDzHfE7p+ tGvcFqDIu7uJUeDYqUE3SUUkl0fmA7y3rHOEJpy9d4IlXwDgpmDQJEUI6siou8nPoKSI hnsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=cfg218K7jRtubm34kwBggWrrMNLPy1o0QyS0nrvNkoY=; b=TZnQGa+dSPJvAneGYSueRkzYkgjUX+FyOLcVxAmjYvXfzcjl8w9mwjoHlwzK1OFXmk WMldXTEyBHuWNB0NhnzOjt8XLWZ4lmF/ijol1c2wfZ1b+CO4vdMu0Y4vwipnGiDsHw3c PsYrneioJItIo/YfUV7opW8tSjjrXBYkSS18uCsBxZjBOhdvFysgNuRiiGN3X36UbRMG f5HMoua0vjeGRe4hRgURNtz/dh6+JUga+6rtBwWsCRMmoMDL8VagBVjpjwoHXq+42Uk/ DXEFKiIbgo0oxdGX8fYcEnsKNw6GTDD6i22Po2Y7NWrvycm1rfbUW3/9SOiuKLd8DKo5 gKjw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk11-20020a1709077f8b00b00711d21eb4fcsi473329ejc.236.2022.06.07.11.24.25; Tue, 07 Jun 2022 11:25:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239713AbiFGJgK (ORCPT + 99 others); Tue, 7 Jun 2022 05:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239702AbiFGJfK (ORCPT ); Tue, 7 Jun 2022 05:35:10 -0400 X-Greylist: delayed 191 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 07 Jun 2022 02:35:06 PDT Received: from n169-111.mail.139.com (n169-111.mail.139.com [120.232.169.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E85AEE64D7 for ; Tue, 7 Jun 2022 02:35:05 -0700 (PDT) X-RM-TagInfo: emlType=0 X-RM-SPAM: X-RM-SPAM-FLAG: 00000000 Received: from [127.0.0.1] (unknown[60.213.227.6]) by rmsmtp-lg-appmail-13-12002 (RichMail) with SMTP id 2ee2629f1affaed-e6591; Tue, 07 Jun 2022 17:31:44 +0800 (CST) X-RM-TRANSID: 2ee2629f1affaed-e6591 Message-ID: Date: Tue, 7 Jun 2022 17:31:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 1/1] MIPS: Loongson-3: fix compile mips cpu_hwmon as a module build error. To: Yupeng Li , chenhc@lemote.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, caizp2008@163.com References: <20220607021702.3224369-1-liyupeng@zbhlos.com> From: HU Zeyuan In-Reply-To: <20220607021702.3224369-1-liyupeng@zbhlos.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,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 Hello, If you want to submit patches,please send the email to the correct maintainer(s),and CC the correct mailing list(s). Zeyuan 在 2022/6/7 10:17, Yupeng Li 写道: > 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 > --- > 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 b3ae30a4c67b..c2f1ede1caca 100644 > --- a/drivers/platform/mips/Kconfig > +++ b/drivers/platform/mips/Kconfig > @@ -16,7 +16,7 @@ menuconfig MIPS_PLATFORM_DEVICES > if MIPS_PLATFORM_DEVICES > > config CPU_HWMON > - tristate "Loongson CPU HWMon Driver" > + bool "Loongson CPU HWMon Driver" > depends on LOONGSON_MACH3X > select HWMON > default y