From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6408064050730348135==" MIME-Version: 1.0 From: Vitaly Kuznetsov To: kbuild-all@lists.01.org Subject: Re: [kvm:queue 11/44] arch/x86/kernel/kvm.c:672:2: error: implicit declaration of function 'kvm_guest_cpu_offline' Date: Fri, 07 May 2021 10:52:25 +0200 Message-ID: <87v97vvsc6.fsf@vitty.brq.redhat.com> In-Reply-To: List-Id: --===============6408064050730348135== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Paolo Bonzini writes: > On 07/05/21 02:13, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue >> head: c6d517aecd40b25ea05c593962b2c4b085092343 >> commit: 9140e381e0f2f8cb1c628c29730ece2a52cb4cbc [11/44] x86/kvm: Teardo= wn PV features on boot CPU as well >> config: x86_64-randconfig-a001-20210506 (attached as .config) >> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5= a2a5836cc8e4c1def2bdeb022e7b496623439) >> reproduce (this is a W=3D1 build): >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/s= bin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # install x86_64 cross compiling tool for clang build >> # apt-get install binutils-x86-64-linux-gnu >> # https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=3D= 9140e381e0f2f8cb1c628c29730ece2a52cb4cbc >> git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.= git >> git fetch --no-tags kvm queue >> git checkout 9140e381e0f2f8cb1c628c29730ece2a52cb4cbc >> # save the attached .config to linux build tree >> COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross = W=3D1 ARCH=3Dx86_64 >> = >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot > > kvm_guest_cpu_offline must be placed outside #ifdef CONFIG_SMP. = ... and kvm_guest_cpu_online() too. > I fixed it up. > Thanks! -- = Vitaly --===============6408064050730348135==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BD9BC433ED for ; Fri, 7 May 2021 08:52:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 559C161443 for ; Fri, 7 May 2021 08:52:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235454AbhEGIxa (ORCPT ); Fri, 7 May 2021 04:53:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:46879 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbhEGIxa (ORCPT ); Fri, 7 May 2021 04:53:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620377550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kk51ztpoBo8Zvuxk9OuoeLtIDzxLHuq4PIJWw7SMpro=; b=jTfoq8LRernkd2qYblxMt2LcGtwaW86j9hwLynnjDeFMq7JnypuGAPloLI0sWf35I1WcXx zHSsTv5aF0yhfJcFfhfmrtPyPeYOnz1cMg5F3L0LTBV2vV+0+NpaP+zDyKNehL56qj6auP JTkZQldLApQI+it9bzo7gjfCqkTj2Hg= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-561-J9ECXxWwNHCfoS3eJsp0Pg-1; Fri, 07 May 2021 04:52:27 -0400 X-MC-Unique: J9ECXxWwNHCfoS3eJsp0Pg-1 Received: by mail-wr1-f71.google.com with SMTP id 4-20020adf91840000b029010d9c088599so3302255wri.10 for ; Fri, 07 May 2021 01:52:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=kk51ztpoBo8Zvuxk9OuoeLtIDzxLHuq4PIJWw7SMpro=; b=UBq/oYXMg0yr2YT6IpUpee+J2uHYxKF7YDh+8+1uWZho9gfxzEE1ZHcMzUPGs1BgfU 28Cb4IidMKOXBGG6OZWh0bICVhnNV8nk7SzSojhHfwOiqVMpuDg/lXm02aFltIzH4cV1 JiJnJJM2I9AKUb9GK5lwzKR+ISQFdzjJUTfLs7dtSW3jgUPPo+Y8ill1M9luSwE7Zrr3 VcjTAaqZcqJzI2nBhbuSXTxH1LJBEwPY6NfWj4OCSlUQMndm/Zd4NRdg+vJvr0HC7Tzo +ySYbaaOJ6nIx+Cm1It94zolo2tBKuv0lz7CiYMzeZJ9Ivx/ISs10wOC1r8Q9WwFVJSl rCpg== X-Gm-Message-State: AOAM5314OpPfqeMHXjdzlB5Lah+CKPsvkgl0PnfiLJMAsEkfTAj0zkAw tfQlT625M73zQCHvMRkgdCl9bjJBrWmqEJ9ycaJZQ0OHGzh9ssmBsU8gCmo6dVRPHmbe1KMKImN 9x9G+myENKKUd X-Received: by 2002:adf:cd06:: with SMTP id w6mr10724171wrm.93.1620377546892; Fri, 07 May 2021 01:52:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8NUi0XxZzefIeXt1PapQXTeV91tOCHaHhl9MTITyV5W/oYaino3SMQ2F5ksLu1/6OeQqhvA== X-Received: by 2002:adf:cd06:: with SMTP id w6mr10724160wrm.93.1620377546768; Fri, 07 May 2021 01:52:26 -0700 (PDT) Received: from vitty.brq.redhat.com (g-server-2.ign.cz. [91.219.240.2]) by smtp.gmail.com with ESMTPSA id i3sm8908664wrb.46.2021.05.07.01.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 01:52:26 -0700 (PDT) From: Vitaly Kuznetsov To: Paolo Bonzini , kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, kvm@vger.kernel.org, Robert Hu , Farrah Chen , Danmei Wei Subject: Re: [kvm:queue 11/44] arch/x86/kernel/kvm.c:672:2: error: implicit declaration of function 'kvm_guest_cpu_offline' In-Reply-To: References: <202105070840.f1TZQ4rC-lkp@intel.com> Date: Fri, 07 May 2021 10:52:25 +0200 Message-ID: <87v97vvsc6.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Paolo Bonzini writes: > On 07/05/21 02:13, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue >> head: c6d517aecd40b25ea05c593962b2c4b085092343 >> commit: 9140e381e0f2f8cb1c628c29730ece2a52cb4cbc [11/44] x86/kvm: Teardown PV features on boot CPU as well >> config: x86_64-randconfig-a001-20210506 (attached as .config) >> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439) >> reproduce (this is a W=1 build): >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # install x86_64 cross compiling tool for clang build >> # apt-get install binutils-x86-64-linux-gnu >> # https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=9140e381e0f2f8cb1c628c29730ece2a52cb4cbc >> git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git >> git fetch --no-tags kvm queue >> git checkout 9140e381e0f2f8cb1c628c29730ece2a52cb4cbc >> # save the attached .config to linux build tree >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot > > kvm_guest_cpu_offline must be placed outside #ifdef CONFIG_SMP. ... and kvm_guest_cpu_online() too. > I fixed it up. > Thanks! -- Vitaly