From patchwork Sat Aug 8 12:50:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 11706317 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D04D713B6 for ; Sat, 8 Aug 2020 12:48:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD910206E2 for ; Sat, 8 Aug 2020 12:48:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U5CvQ/2C" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbgHHMsI (ORCPT ); Sat, 8 Aug 2020 08:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbgHHMsF (ORCPT ); Sat, 8 Aug 2020 08:48:05 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E1BC061756; Sat, 8 Aug 2020 05:48:05 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id m34so2398182pgl.11; Sat, 08 Aug 2020 05:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=VeTKxr8w7VLVr4PGx0bAYjFSbETGJkL04gDai2o4qs4=; b=U5CvQ/2Cnvhn7c6MOZlq7QCryWur+muKFaIQcI4LrT4XcYibOrpe8G/L+GO091zjeJ FPxWh6HfuUcjO5icElHQhTK6rt03FgKfwaMz2DPDgXdibBViPLJI5h9Xkk1kGXDNXnip 9wRtjiMv6fxak8aeKsSbqth4OGZGT8a6P60vYdAYNdCz6mrRNlPvhsgUbeQN8KwIwBUZ lTarmCI5MVKr/1/QvBOMj1o2ryOzc/BCYXvlBfIiDvNwGeqfpIUwt2O6hVB+SZVoHYUF RYMNO3Dd4ifXPSDwTbqtwTtUud2ZI4dm0ReMGCUZVSa+M0fRwfrd59W1463IzyusXAXt zoUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=VeTKxr8w7VLVr4PGx0bAYjFSbETGJkL04gDai2o4qs4=; b=ay6+gGoiAAu7wFqa9sBeGkHZ6tFUIn6pySykOqri/TQLgB1beidPayMDlpcNsqGIXs wk08Iilm8lAcVOMe2DE7MPLcgwHgwhb8Nn82KBYnR6q2xZYnOleIBau6Kt9kH3Y0pQ6q KL79f9X0TOdiFMV/RaR+2xX59YdNhqFZe2zohOj+lQW+JFUfH67GsC0aRwh/LkuOf8Vv YKPAKkwQTdfuRA/PSqLCf96XOf7+St786WvFvDJ31oNypQuEZy19XrrbmO6vRzfpgwpi Rx/cctKdZRBxQaMKz+I3rRT28F3xl3jNEfF5vSM3Zk+F2Vl9L8cOFiT+M2l6Wb9fZLru vUkw== X-Gm-Message-State: AOAM530Dbxab4tiyBAYGQplnwESpBWdCvaVO8RnMXToXcLsW4BGy3r7K a8P7UNGjIxppdkKK9wZcO0M= X-Google-Smtp-Source: ABdhPJxhzrk/tqVULXH30q6hg12JI5TtBQTTTXXABv1XWrscmxSMa2C+RDwJcctCkcGojQ5FGR80lw== X-Received: by 2002:a63:1a49:: with SMTP id a9mr15391246pgm.110.1596890884864; Sat, 08 Aug 2020 05:48:04 -0700 (PDT) Received: from software.domain.org (28.144.92.34.bc.googleusercontent.com. [34.92.144.28]) by smtp.gmail.com with ESMTPSA id k12sm14023458pjp.38.2020.08.08.05.48.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Aug 2020 05:48:04 -0700 (PDT) From: Huacai Chen To: Paolo Bonzini , Thomas Bogendoerfer , Aleksandar Markovic Cc: kvm@vger.kernel.org, linux-mips@vger.kernel.org, Fuxin Zhang , Huacai Chen , Jiaxun Yang , Huacai Chen , stable@vger.kernel.org Subject: [PATCH] MIPS: VZ: Only include loongson_regs.h for CPU_LOONGSON64 Date: Sat, 8 Aug 2020 20:50:52 +0800 Message-Id: <1596891052-24052-1-git-send-email-chenhc@lemote.com> X-Mailer: git-send-email 2.7.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Only Loongson64 platform has and needs loongson_regs.h, including it unconditionally will cause build errors. Fixes: 7f2a83f1c2a941ebfee5 ("KVM: MIPS: Add CPUCFG emulation for Loongson-3") Cc: stable@vger.kernel.org Reported-by: kernel test robot Signed-off-by: Huacai Chen --- arch/mips/kvm/vz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 3932f76..a474578 100644 --- a/arch/mips/kvm/vz.c +++ b/arch/mips/kvm/vz.c @@ -29,7 +29,9 @@ #include #include "interrupt.h" +#ifdef CONFIG_CPU_LOONGSON64 #include "loongson_regs.h" +#endif #include "trace.h"