From patchwork Tue Oct 26 08:34:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 516176 Delivered-To: patch@linaro.org Received: by 2002:ac0:c404:0:0:0:0:0 with SMTP id t4csp52703imj; Tue, 26 Oct 2021 01:34:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg6BMHSOiw6ix306TPWvhtxl6ozObL8K4ELAHM7WMQu1KzOXHlC4kxPurGvMNuuss6POsU X-Received: by 2002:a63:87c2:: with SMTP id i185mr12852638pge.280.1635237270835; Tue, 26 Oct 2021 01:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635237270; cv=none; d=google.com; s=arc-20160816; b=nwBA7MXqcq0FCmeBtCIAQhOAjNn6JZH5JcSHkhMSnrJrYOBtpqIdWGWEMkJdqkL/8S JrHfUT5XO1kMFTivtZKiXrNMMAE/ou6I48hhbAA7SvmBb+FW6kH+JMIZJe6KlKUmHLx6 TZXC9TVGxvc9ZCfpirmnXkn5NFar7RBU3av+KtC/hVgVvvV5kQgbwPNay0DGHi77PhQP QotUexmKl4C2XswJN2fepso+lr58wSaIT384u2ZBswdNzoTFN1YHqsh5pxffpNSwzH4z 4bS5Ik9GGrvaNVw5hTKvQrCgMMtIJTY1dRFYFCHApEc0bBSPOsOaJdfs0eKlAFP4555t 4XkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=sWWZCUkT8pZbQPkMJ2sLQyFsaFMh6Bxbd+knp1t+0XU=; b=nKo2Z1gLUCMeaSYlPkbCdO+27LIZsO6Vevc/9hFEIbsglBVf9NnYVwFZaDL5HH880u W3o9zdG88/wRe8XujXB1nR3RXjaoIgLMYC6pKB4CuaRECE01Updlh9xbD5Y5Cn1NYtKQ 8v9K4RVgi768Nx3KF3tXJSBcoyHQH7etOCjlWHfNLP+o2oL7cncsZYhP7b2Nwo4BdmhR HjkiSfcBNzhW1Xmrz9JFgZW1bKwQklRWiq1Za5nLU9E4jHtDUdZU4f5Arppy11wsebRd tYuYeEJGVNg3uQMOwK7+aobbh/FPt8V80x86S+klo29dfcTXRIRR2XWcxm0H0IZ+WyBS lD8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNJHjft9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id q79si7764830pfc.217.2021.10.26.01.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 01:34:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNJHjft9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 913E76E442; Tue, 26 Oct 2021 08:34:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6DD4E6E442; Tue, 26 Oct 2021 08:34:28 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C8B360FE8; Tue, 26 Oct 2021 08:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635237268; bh=aqX/BUKmfRta3pa2yzNOCRTmiB629p+qvxg28trH85k=; h=From:To:Cc:Subject:Date:From; b=iNJHjft9O86KkRz1OcOu6OlAUgJTcpntFvQIEV3zRcSmiDlHR9wHIh2oKUmeftdmZ fDZvWx4W/ZgFPMiM0fLzo+s8oD4uw6V2/VxrhDCicRY1czWpHU6VtwVcOL4uZ+L952 Y3PJcyLBWwrxQP+MbLX3jnNmjqCn8eksHoYTKgW6JBbh9X84YW5nJYIgX+4xcEKy3X T3XpgTNXz9Tr1GMgom3opfnJ9F/WTpluH0aTyEq4Yd+DBbujOsqhIJKfob2LLB6q6d JyrFWvbQmabjCL5a+M1rcn++qxb8dwe9k3cYNyaZQ+LT+iDcx7/boLm52YFmb1Hd+D 8r32CVf7MC1KQ== From: Arnd Bergmann To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Matthew Auld , =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= Cc: Arnd Bergmann , Chris Wilson , Jason Ekstrand , =?utf-8?q?Christian_K=C3=B6nig?= , Maarten Lankhorst , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915/dmabuf: include asm/smp.h for cache operations Date: Tue, 26 Oct 2021 10:34:16 +0200 Message-Id: <20211026083423.3461555-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann The x86 low-level cache management operations are declared in asm/smp.h, so drivers that call into this code need to include the header: drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:248:3: error: implicit declaration of function 'wbinvd_on_all_cpus' [-Werror,-Wimplicit-function-declaration] wbinvd_on_all_cpus(); ^ Fixes: a035154da45d ("drm/i915/dmabuf: add paranoid flush-on-acquire") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c index 1adcd8e02d29..853a989fcb9b 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "i915_drv.h" #include "i915_gem_object.h"