All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1]   MIPS: Loongson-3: fix compile mips cpu_hwmon as a module build error.
@ 2022-06-07  2:17 Yupeng Li
  2022-06-07  9:31 ` HU Zeyuan
  0 siblings, 1 reply; 2+ messages in thread
From: Yupeng Li @ 2022-06-07  2:17 UTC (permalink / raw)
  To: chenhc, ralf, paul.burton, jhogan
  Cc: linux-mips, linux-kernel, caizp2008, 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 <liyupeng@zbhlos.com>
---
 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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] MIPS: Loongson-3: fix compile mips cpu_hwmon as a module build error.
  2022-06-07  2:17 [PATCH 1/1] MIPS: Loongson-3: fix compile mips cpu_hwmon as a module build error Yupeng Li
@ 2022-06-07  9:31 ` HU Zeyuan
  0 siblings, 0 replies; 2+ messages in thread
From: HU Zeyuan @ 2022-06-07  9:31 UTC (permalink / raw)
  To: Yupeng Li, chenhc, ralf, paul.burton, jhogan
  Cc: linux-mips, linux-kernel, caizp2008

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 <liyupeng@zbhlos.com>
> ---
>   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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-07  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07  2:17 [PATCH 1/1] MIPS: Loongson-3: fix compile mips cpu_hwmon as a module build error Yupeng Li
2022-06-07  9:31 ` HU Zeyuan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.