Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3018570pxa; Tue, 18 Aug 2020 04:36:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwALBry+u6TiFoNujADmejVHw6HGGFi05JsCY/0QNF+1ikFnberP9QiTN6NuV1z85vg9/g5 X-Received: by 2002:a17:906:9609:: with SMTP id s9mr19406918ejx.232.1597750567271; Tue, 18 Aug 2020 04:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597750567; cv=none; d=google.com; s=arc-20160816; b=uQ0djB05tVwkzgHXWDK78jmI4rKQPS7kDhljAos+FqgCQD+B0j8Xdq7l0BVrbKePNj ivkyhrrwnbs87EDl8Q2jpQy/S9h4nLSmJ+BKfC/esxB1uv+mcRhuqqSSKFS+OvnzqBul 77dpAMmqzPeZXx3i3BI4rAYn0SHLbkWq7hfSYRzXfwWMcYqgRHpODTCkjtaj8+6cKmZp vjMxszUZNcWXuoU/6AxNfP7F6ixfvMIjunl30O9br5wuKpLrGecFHr9YFYg/Gvo+uBGc 9grXrgT0+fy1T9GvdEUSxdUoqoGbwsy4t8+RxtPt7W/K8eao2K7OpsGEDSWOYrp+PkqU 6hrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Za5/0GaKakpEj1m9bL54QbSj+Vmg8mG86JXzFRNtvrc=; b=Zrj425ZKe4dpi88e0DjTnOrmIvCjpTXsBwejd2OQ8i+nRgKeMIEelUG7nHCxeU3cGK 33FDC/RDheIBCcNmdWltWWfAu269rigzJXae6vk/xFPDe3z9Zh59o4NFW+jTzTDr/dBD ylFAch/523V1tzdoLAboJ04cDfZNxwRwJCQpj/ouBt7iRLrwP3vPUa/THN+MN8/a97AV gOYFpP+lMlwyNrCnzvvvuSnO5jY99Gle5HLrKKukIRGHdbsGEEGZhNOOhqryKYKQXEpY 3oKkqDnBSgfl6gSKH49PnsLh/S0EE4xrkCJIHFGdjtkNOMBLCpeOSohOWyBbqn/4OMtr sunA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si13404609ejq.668.2020.08.18.04.35.42; Tue, 18 Aug 2020 04:36:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726588AbgHRLfI (ORCPT + 99 others); Tue, 18 Aug 2020 07:35:08 -0400 Received: from mail.loongson.cn ([114.242.206.163]:44242 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726145AbgHRLdY (ORCPT ); Tue, 18 Aug 2020 07:33:24 -0400 Received: from bogon.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxD99gvDtfbm0KAA--.22S2; Tue, 18 Aug 2020 19:32:48 +0800 (CST) From: Youling Tang To: Huacai Chen , Jiaxun Yang , Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Loongson64: Fix build error about redeclaration of enumerator 'VIRTUAL' and "CONFIG_DM_THIN_PROVISIONING" Date: Tue, 18 Aug 2020 19:32:48 +0800 Message-Id: <1597750368-14086-1-git-send-email-tangyouling@loongson.cn> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9DxD99gvDt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qjv00gofq/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 39c1485c8baa (MIPS: KVM: Add kvm guestsupport for Loongson-3) Fix the following build error: drivers/md/dm-thin.c:116:2: error: redeclaration of enumerator ‘VIRTUAL’ VIRTUAL, ^ In file included from ./arch/mips/include/asm/mach-loongson64/mmzone.h:12:0, from ./arch/mips/include/asm/mmzone.h:12, from ./include/linux/mmzone.h:962, from ./include/linux/gfp.h:6, from ./include/linux/slab.h:15, from ./include/linux/genhd.h:16, from ./include/linux/blkdev.h:8, from drivers/md/persistent-data/dm-block-manager.h:11, from drivers/md/dm-thin-metadata.h:10, from drivers/md/dm-thin.c:7: ./arch/mips/include/asm/mach-loongson64/boot_param.h:198:2: note: previous definition of ‘VIRTUAL’ was here VIRTUAL = 3 ^ scripts/Makefile.build:283: recipe for target 'drivers/md/dm-thin.o' failed make[2]: *** [drivers/md/dm-thin.o] Error 1 Signed-off-by: Youling Tang --- arch/mips/include/asm/mach-loongson64/boot_param.h | 2 +- arch/mips/loongson64/env.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/mach-loongson64/boot_param.h b/arch/mips/include/asm/mach-loongson64/boot_param.h index afc92b7..a4ef4ac 100644 --- a/arch/mips/include/asm/mach-loongson64/boot_param.h +++ b/arch/mips/include/asm/mach-loongson64/boot_param.h @@ -195,7 +195,7 @@ struct boot_params { enum loongson_bridge_type { LS7A = 1, RS780E = 2, - VIRTUAL = 3 + VIRT = 3 }; struct loongson_system_configuration { diff --git a/arch/mips/loongson64/env.c b/arch/mips/loongson64/env.c index 134cb8e..623b3f1 100644 --- a/arch/mips/loongson64/env.c +++ b/arch/mips/loongson64/env.c @@ -180,8 +180,8 @@ void __init prom_init_env(void) loongson_sysconf.early_config = rs780e_early_config; break; default: - pr_info("The bridge chip is VIRTUAL\n"); - loongson_sysconf.bridgetype = VIRTUAL; + pr_info("The bridge chip is VIRT\n"); + loongson_sysconf.bridgetype = VIRT; loongson_sysconf.early_config = virtual_early_config; loongson_fdt_blob = __dtb_loongson64v_4core_virtio_begin; break; -- 2.1.0