From patchwork Tue May 25 03:02:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wanpeng Li X-Patchwork-Id: 12277701 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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 EBCDAC2B9F7 for ; Tue, 25 May 2021 03:03:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CAB1961422 for ; Tue, 25 May 2021 03:03:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbhEYDFM (ORCPT ); Mon, 24 May 2021 23:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbhEYDFL (ORCPT ); Mon, 24 May 2021 23:05:11 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1B9C061574; Mon, 24 May 2021 20:03:41 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id t193so21590819pgb.4; Mon, 24 May 2021 20:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=th0hO51xkkKq/t6d5uQ7ST6KQWCdJeF/YWkbLeTlsMQ=; b=oXkCJZmK7YDZdH3kbjADAbiU6xMfWRM7txtP0+FnLgWoisTyYofcNxJWcUuEc+iUbj l4+w9moNcxtOh4x9FVjvBrxK/uK7RMJoJmaf6K8UWylW1GCt6Xx+SUVMyGQFispcAxA/ Zqy4oULaPz9ZS1Xy7DeiQaNApGn3b1yk2mo1fqpSXEwj4CV6JzRudejASZSrP+W7ZNJB NZ1ROubJP7qiEJzc+XanG8ATxUW15AeLpT31aFcpIb/P/GNZZvaADhNjodjj/wPRvF55 r+3PxhjC4eEKR1iIKzoF19e5qKRxbiHdTLzSeoN7aiiHr+xTsyey4c/N6i9pxZ1g5yeC sBkw== 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:date:message-id; bh=th0hO51xkkKq/t6d5uQ7ST6KQWCdJeF/YWkbLeTlsMQ=; b=QHhxDN1v37pa9ipWZsl7MJbsmv06UsT/mzf4jOGnoNvzjoKmiR+B/Pwq/D+OYaBmmb PVDEHToc6u1KPU1384fZDkVbTRcz8Z3T0PpMWj2Ei5WP61VHvCgf3+NrTec6OrkdCZw7 Mp3lZV7jC5sEcSuOT7nREvIgUXIhvf2ryjfC9DtUPSJsdl2Kwec8QovAKig6gj3Gr56D THdNJbjC6uPwT1L94IIyeXeJAG9GApkQ+diFs0C1LK1Hs7x0N5Hi4Hf8l9JhMMGvABtB AXBk/FqN3V6ojtKe+eCm53TUbL6c4iiGebgOEz4sTq+9yv7o677OMhHSVGbcyJIK19uB d9eA== X-Gm-Message-State: AOAM530xs0vylXYvMoxn3lqSrpRQd5gUetAOBel8tF0Bnk973cEVqr7i H7SMs0+Uvkczt1/FMAzVHYkHQOJUQPU= X-Google-Smtp-Source: ABdhPJz2SC9zFEh96aoyYZTXx+YAmOIV/m9ECRaadpA9Gbekovi/WDSGkA+eX8gLdtjYaMAq6DuipA== X-Received: by 2002:a63:1d09:: with SMTP id d9mr16608036pgd.302.1621911820997; Mon, 24 May 2021 20:03:40 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.53]) by smtp.googlemail.com with ESMTPSA id x23sm637521pje.52.2021.05.24.20.03.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 May 2021 20:03:40 -0700 (PDT) From: Wanpeng Li X-Google-Original-From: Wanpeng Li To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel Subject: [PATCH] KVM: Fix ERROR: modpost: .kvm_vcpu_can_poll undefined! Date: Mon, 24 May 2021 20:02:50 -0700 Message-Id: <1621911770-11744-1-git-send-email-wanpengli@tencent.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Wanpeng Li Export kvm_vcpu_can_poll to fix ERROR: modpost: .kvm_vcpu_can_poll undefined! Signed-off-by: Wanpeng Li --- virt/kvm/kvm_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 62522c1..8eaec42 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2949,6 +2949,7 @@ bool kvm_vcpu_can_poll(ktime_t cur, ktime_t stop) { return single_task_running() && !need_resched() && ktime_before(cur, stop); } +EXPORT_SYMBOL_GPL(kvm_vcpu_can_poll); /* * The vCPU has executed a HLT instruction with in-kernel mode enabled.