From patchwork Fri Nov 13 13:49:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324293 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1212784ils; Fri, 13 Nov 2020 05:50:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIOWuNIuT4fMoWBCSv2XcSRtx1bGfkPVrP+u1+OZBIbrcij0bv07LOp+QxfbtDnVKKIWUU X-Received: by 2002:a17:902:6943:b029:d6:bd35:c84b with SMTP id k3-20020a1709026943b02900d6bd35c84bmr2240220plt.53.1605275409497; Fri, 13 Nov 2020 05:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275409; cv=none; d=google.com; s=arc-20160816; b=ybZy797KmH1HTCKUN8dMtZv5unQdV/F0VIvA5tvS2LDoHoE92Cq5CE7gyXiqr+KoRv TE5T5BkS9rV9CYZgcZq5gIoaU1P+LhRLedIzIabdEAKQTwYLeI41CDd+udlIMnP57OhO I/4EmmSj+xRQ6Ya0fODDNk67VQG6KYdH5Kcxi70L0F1sEjGaWHYWwXMfvfBlgMdD9lqV j0EnIg/n4obYkgJ3MGSvyzNwHBvrMo0VyvLRTD0A+RLPIMsLAyFCM4+ng/AYWdneaW7P /clYLdH+VJpKI+Io7yee77zds5oDTL9RUr/qtmRc3gJzXD0vPUVMASg14b1sym4rfCBz pbdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=bh2Afdo4XwdFIx2lHYNcFMxGMDf42YpFLrYcyxq6Mqo=; b=PWRE4XiUJrvXhylgF0QctJsFy764YXBq77xqCLgzaberHLT0D3TBiWT+exfWVrVgcc 6qblETFVexZIwp0Nj1D2YqHKF6khxGWAvcILGKhC42S544Nwc+3LulEgzdw8VQ4dBkRI AaR4pcq2n0D0yo8O1KSbIXRXPF/JZxljgwAvoqh6Ow1dchhAhQUXLkWF3jKg7tiBCK3m O8CbEDNJUiBL60QpfLrMYpXbp9pCU22qQzBwM9d+/mA/jwmppGPBesBhWApOJyk87dW5 2TmeR+Um6sRCMpyiULDueDZh4bMCosCldpTf6YJuLgOER4I9Unmjj0FhqjMl7kXQ6Gjs 0Jbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yv+njuEX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id h26si7671007pgn.499.2020.11.13.05.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:09 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yv+njuEX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C203F6E52A; Fri, 13 Nov 2020 13:49:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id D5BE26E530 for ; Fri, 13 Nov 2020 13:49:55 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id h62so8558676wme.3 for ; Fri, 13 Nov 2020 05:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e/knA7px3ItuZjnu7kmhshhnJxUB7qJyEjkrpKqZtiA=; b=Yv+njuEXEnBreJ8gLTiSi7E/xj85s7S1U0w/6zQmiPZ1aSp7ZCFuVeOXtQ700dVUZY 9cYICnqGX8VqTm9uswhkeCOG1WtAgHPlSd0c5esIEBrxnfKNGIGJ7N8p3mHPOWhQfTc1 nC3wfYKKdObN0Tc9WdhW5lnWd2XE2C8FVH/YwzSsMK/FEI4Sr8lWCjkLc40a3q/X6SyT UgKx9M745DJvAIjlEINmUn1V9VoRLqlMR+Mzj+ZgD/IZxefVR1P/a0fFZ2ta9U0SnQuq SE8cIQ/hFaUu8KdY84nozKy8eDIdoFOTixMUC5F5T/SUqdfdqRWs1tIjHdgcknmYQkwG RpPQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=e/knA7px3ItuZjnu7kmhshhnJxUB7qJyEjkrpKqZtiA=; b=to0ozNtPcWhJHgZybyZDRL9JATtbp1ssIrhHsfRW8axG/ErWhiS/rxw4VwQb99m2GY nkaXD9U9IgCpCX6lS8bhzLnj80o1PsV/Aa3edm3HLLKCChpfZbI4I8OkdMy81MoP0q0W FynHMHzyuALcDOn7MiMXWtTy5p6w3Ipggae/u4w/qJzax8c0ALVS5WkzfyifNV+jfJQy UqjzR5EituA/2czFBn48WBJL/7pPus9YHoKZ55rzi5sqodsLVbzPRV/E5gvoAl/I921y 2ic+HaxrrETMrsljlnH2+3x4YplTupFoIdqLZ5mQDEa5Syukh0Yk1Tg5Z+B+K5iUWnUw NHEg== X-Gm-Message-State: AOAM532vsL5yLgERDiL36knk63LtszrYsnpFRuZ/n6klfPY6NB8APoY7 kExMOjnBToQZGHOUSv97hvHB8w== X-Received: by 2002:a1c:9d08:: with SMTP id g8mr2624009wme.171.1605275394497; Fri, 13 Nov 2020 05:49:54 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id t11sm4561614wrm.8.2020.11.13.05.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:49:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/40] drm/mediatek/mtk_drm_drv: Staticise local function invoked by reference Date: Fri, 13 Nov 2020 13:49:08 +0000 Message-Id: <20201113134938.4004947-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113134938.4004947-1-lee.jones@linaro.org> References: <20201113134938.4004947-1-lee.jones@linaro.org> 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: , Cc: Chun-Kuang Hu , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mediatek/mtk_drm_drv.c:316:24: warning: no previous prototype for ‘mtk_drm_gem_prime_import’ [-Wmissing-prototypes] Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: David Airlie Cc: Daniel Vetter Cc: Matthias Brugger Cc: Sumit Semwal Cc: "Christian König" Cc: YT SHEN Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 2e8065b1e2bbc..401311453e7d0 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -313,8 +313,8 @@ static const struct file_operations mtk_drm_fops = { * We need to override this because the device used to import the memory is * not dev->dev, as drm_gem_prime_import() expects. */ -struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev, - struct dma_buf *dma_buf) +static struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev, + struct dma_buf *dma_buf) { struct mtk_drm_private *private = dev->dev_private;