Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2192626iof; Tue, 7 Jun 2022 22:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaPNR10Cnca5yfKuXTkoUKZMoiG2qIJ1bxX3kMiuY3vcP0mfg0/KKddKEylcCB5PoYsqv0 X-Received: by 2002:a17:902:cf05:b0:156:8445:ce0f with SMTP id i5-20020a170902cf0500b001568445ce0fmr32579822plg.99.1654667129048; Tue, 07 Jun 2022 22:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667129; cv=none; d=google.com; s=arc-20160816; b=KywItv+Hna42JJC13hzyS+2+RF879Vz9kuT9me1+ihBjdM/8xyACZIO9PdD9c90GOA 7UWrzpMlaRHoqxZt9M6px3HnSaouIRx2DekH4zORhMOO0DA8YfdUwEDz96IIAWohXDpX SMeWCYIgXLPcYW67CfiViXP9t0ndtRNQDz5D9Eru/wqg3ThWkfWY+eDoxDI4bgV3fCpa 4Ho5unUIc7fwnuFqzTow2O+FaVm05mROyPyb/NBpd27gL5qa20/GVs8En+UyTBnS85nn VDHfDeQckNmCR7Di0B/YAhCB0APPEYXU9Cc+WjXCqUgkZxzFl0F3oao75RMi6fvd2eX1 hMMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=k0qLXH+1E8SVvhjntcYHKwchjW7U7T34ZJEF14jCqc0=; b=COYDRERnsxnCRuBki3C7dWQDaENYPT1CZAQaFoiA6wHvg2d3yPWYZfbMyNqFz008u8 CW7y+NEYy5/c1u9tkvH6Fd1hl4/0HQDYABVP6WF2hZqBZuGzUH3jlqshwbBewtDqxV6/ OIJpNQLy+rEdPXUVDbU6eV/DdS1f2KyJc7A7yY/RwQ1abSFl1+KuF6qO+QJdsZtCX4lD pFCz2yjTQLVCr9g1m7FA1RQYVPTMvr9zNKMef8GoARP0rB4046aiNCzBbvSpJeUm5vmo RcJkkGDkBUj19wt4dm81IKV/yPBMNupkFejKSKhmTHXefl2ys07hIIHiGuxXUUsptlAn Wk0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rAfe5ZSy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q8-20020a17090311c800b00163d5e63385si29484945plh.381.2022.06.07.22.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rAfe5ZSy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF9B83CED15; Tue, 7 Jun 2022 22:10:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385963AbiFHAWJ (ORCPT + 99 others); Tue, 7 Jun 2022 20:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385260AbiFGW0q (ORCPT ); Tue, 7 Jun 2022 18:26:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80F23270428; Tue, 7 Jun 2022 12:23:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B48FE60BA5; Tue, 7 Jun 2022 19:23:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBEAFC385A2; Tue, 7 Jun 2022 19:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629786; bh=WXRcVCPP2UKRCYY2jK+D9kxdNOkgPnIo2N2sDgEC/Ls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rAfe5ZSyX26BqPN09JgplT2Bhy1gxxcaBE9hryuVNo+ApUHDE2fiqW9gLzdK0pHjM VjNz6VkSQrwY2wZlWxWr/OOz5YVkHEx9LXEeCcQxfAuHknNeMZk0pftvA/gPq52zpW JYytd31U2fKtJKGZU0dGf+/TywX350vovQmBe7ys= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Johannes Berg , Richard Weinberger Subject: [PATCH 5.18 817/879] um: Use asm-generic/dma-mapping.h Date: Tue, 7 Jun 2022 19:05:35 +0200 Message-Id: <20220607165026.568459082@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit 365719035526e8eda214a1cedb2e1c96e969a0d7 upstream. If DMA (PCI over virtio) is enabled, then some drivers may enable CONFIG_DMA_OPS as well, and then we pull in the x86 definition of get_arch_dma_ops(), which uses the dma_ops symbol, which isn't defined. Since we don't have real DMA ops nor any kind of IOMMU fix this in the simplest possible way: pull in the asm-generic file instead of inheriting the x86 one. It's not clear why those drivers that do (e.g. VDPA) "select DMA_OPS", and if they'd even work with this, but chances are nobody will be wanting to do that anyway, so fixing the build failure is good enough. Reported-by: Randy Dunlap Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver") Signed-off-by: Johannes Berg Tested-by: Randy Dunlap Acked-by: Randy Dunlap Cc: stable@vger.kernel.org Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/um/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild @@ -4,6 +4,7 @@ generic-y += bug.h generic-y += compat.h generic-y += current.h generic-y += device.h +generic-y += dma-mapping.h generic-y += emergency-restart.h generic-y += exec.h generic-y += extable.h