From: Seung-Woo Kim Date: Thu, 1 Jun 2023 02:05:27 +0000 (+0900) Subject: arm64: cpuinfo: Fix build error without AMLOGIC_CPU_INFO X-Git-Tag: accepted/tizen/unified/20230616.172401~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43ed060a7cbf93c8d3776dad519282a89b535d5b;p=platform%2Fkernel%2Flinux-amlogic.git arm64: cpuinfo: Fix build error without AMLOGIC_CPU_INFO Fix build error without CONFIG_AMLOGIC_CPU_INFO. Change-Id: Ie1727b8052b588166cac946e7534449829914123 Fixes: cf5cd5b660e6 ("add device model to /proc/cpuinfo") Fixes: c99869fc131c ("ODROID-COMMON: arch/arm64: Add device information to /proc/cpuinfo") Signed-off-by: Seung-Woo Kim --- diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index ae5a7b27b432..b0dbf73d4b8e 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -203,11 +203,13 @@ static int c_show(struct seq_file *m, void *v) seq_puts(m, "\n"); #endif #endif +#ifdef CONFIG_AMLOGIC_CPU_INFO #ifdef CONFIG_ARCH_MESON64_ODROID_COMMON seq_printf(m, "Hardware\t: %s\n", machine_name); seq_printf(m, "Revision\t: %04x\n\n", system_rev); #else seq_printf(m, "Hardware\t: %s\n", machine_model); +#endif #endif return 0; }