From patchwork Sat May 15 19:08:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12259967 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 33EB9C433B4 for ; Sat, 15 May 2021 19:09:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A6E4613B5 for ; Sat, 15 May 2021 19:09:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234634AbhEOTKN (ORCPT ); Sat, 15 May 2021 15:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234609AbhEOTKM (ORCPT ); Sat, 15 May 2021 15:10:12 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C3DDC061573; Sat, 15 May 2021 12:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=pOAXp/hARmNfIeDbR6g75usgQPdXixVcFAZ7QXoop+M=; b=dqkaPuuLQteMf+jPfC0ZXbRxG5 IQyj7LffrKjDHTFYQaAqR9fzqQBXCTjECVH9MqsOSqIIbGvtNy3A3oHDgyOQT/jK5/oVyOn42K//R 4NxbuJDmHT0TtCal31ulNTUz9ndzZytg85bQb+n53VlxsrrHgH2xhG36khk+BhZ1775g3juBNRavT ns9eGWacFIGsbKz9MYxLO8g6uoB+oTNNmIqM0k1ezzJGUuq5MNUKrZmqYXSDOCJq12vBGmYP0vwcY JzdGn2DwxhMl7U3/OrCYqb3o/+iuW1WzAsJrdymiNmJ+Lm5Lk3tQD67jAAoDEbEhBy9kaMbHuGhvP JM+TBeaQ==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lhzej-00Cegg-CS; Sat, 15 May 2021 19:08:57 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Alex Williamson , Cornelia Huck , kvm@vger.kernel.org, Jason Gunthorpe , Eric Auger Subject: [PATCH] vfio/pci: zap_vma_ptes() needs MMU Date: Sat, 15 May 2021 12:08:56 -0700 Message-Id: <20210515190856.2130-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org zap_vma_ptes() is only available when CONFIG_MMU is set/enabled. Without CONFIG_MMU, vfio_pci.o has build errors, so make VFIO_PCI depend on MMU. riscv64-linux-ld: drivers/vfio/pci/vfio_pci.o: in function `vfio_pci_mmap_open': vfio_pci.c:(.text+0x1ec): undefined reference to `zap_vma_ptes' riscv64-linux-ld: drivers/vfio/pci/vfio_pci.o: in function `.L0 ': vfio_pci.c:(.text+0x165c): undefined reference to `zap_vma_ptes' Fixes: 89e1f7d4c66d ("vfio: Add PCI device driver") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Alex Williamson Cc: Cornelia Huck Cc: kvm@vger.kernel.org Cc: Jason Gunthorpe Cc: Eric Auger --- drivers/vfio/pci/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20210514.orig/drivers/vfio/pci/Kconfig +++ linux-next-20210514/drivers/vfio/pci/Kconfig @@ -2,6 +2,7 @@ config VFIO_PCI tristate "VFIO support for PCI devices" depends on VFIO && PCI && EVENTFD + depends on MMU select VFIO_VIRQFD select IRQ_BYPASS_MANAGER help