Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2172667iof; Tue, 7 Jun 2022 22:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJBAB6j4+Qb98N3Lm6g8XuaMCBEG7pVYe0hnPnnhCW2/n3O1en27h+9CCZT0Hr5SArbmVF X-Received: by 2002:a17:902:d4cf:b0:167:735a:e7a1 with SMTP id o15-20020a170902d4cf00b00167735ae7a1mr16197358plg.161.1654664905873; Tue, 07 Jun 2022 22:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664905; cv=none; d=google.com; s=arc-20160816; b=WFpVz7JXCziMUG8+C+kzr/x69L2fSNXlYneteppb9fBcn8V3JglPC0jk9vo4CMI3K/ UHR2/3s49u9erwVaMu4g+POoSINRiygFmdDOiNzkPYrstSafhnQ1Z7xKEiX5Xog9Q1lj WXyB5E6BY2PZEHYIt3zslkK9FNk4FqvGjZn5Lzuz9bNquLxcQtkjbC5m1nkFk0Tw6lw0 bn+1zx2Yspox4XI0afjecAZ+Ka/3N00zD2hKLly4K23y1A1jCEw9HPzbtSSC1fejSUOX o7yfmiBxd8BMQSM7+HZqP4wTHhIdb7bJMlLLfNYPKNyYyyVERoN4UotGX4lcc6JptHrC 5SNQ== 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=hnGMjW/s8XYWu2sx90QH/nWuvyKK0y58c6RJaV8ECFbgiv8ZyLhiomuE2QA7r+swbS GALbcfm9kVIEaoFMboor9/UX7xjDz3zHYKChCpOPRpqZzhf2oxYyh9MtA30fL3Z24qI+ 4xZer1VyT2OS8TTL7ZyW1LCH7BzKP++BTGAa98D3WMxun27Bbd7ScZ1ttmiJKx5NCrBw ozxUKfLNNx2uLDGGd5Gxad9dKcVcJJlGfzLoXRRWKVOGFzUBVkJmVZQevagbrsVKqF2K ZskI9NdwidIfcxVfpt4G+/+k6yY3WiT6M8IWl5l+ik+gONUtnlSpZPvUwV0WPZG+sZVV beiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KEjAZvOH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id pi19-20020a17090b1e5300b001e86f11b4c0si16587327pjb.18.2022.06.07.22.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:08:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KEjAZvOH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 960F73B51CB; Tue, 7 Jun 2022 21:35:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381945AbiFGVpx (ORCPT + 99 others); Tue, 7 Jun 2022 17:45:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378691AbiFGUwX (ORCPT ); Tue, 7 Jun 2022 16:52:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F79E2B6; Tue, 7 Jun 2022 11:42:51 -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 A395061295; Tue, 7 Jun 2022 18:42:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4219C385A2; Tue, 7 Jun 2022 18:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627370; bh=WXRcVCPP2UKRCYY2jK+D9kxdNOkgPnIo2N2sDgEC/Ls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KEjAZvOHa+snbgeFB7EqtWmXOnNeZGqQyTl/Up6A4MTjHaaPutG+XMTXPJuuRDZ6d gNULFcyBaZFL1KqcQTHbgdC265NIhn0ERl4qH6fA5jC/qphrLe005NLhpxCqgcSfyX S3VGKnhE3/rjsEAnA69JrqyZmF4pZKOL8lfYxtwc= 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.17 715/772] um: Use asm-generic/dma-mapping.h Date: Tue, 7 Jun 2022 19:05:07 +0200 Message-Id: <20220607165010.113455787@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@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