From patchwork Mon Nov 16 17:40:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324490 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3506278ils; Mon, 16 Nov 2020 09:41:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLENr+QhE71gVFtP8kXLxd3GFsNK9Ku+zXjP71I1YOun6XbfRZJulvLCrPGdpFoqCaSqLG X-Received: by 2002:a62:768e:0:b029:18a:d54d:3921 with SMTP id r136-20020a62768e0000b029018ad54d3921mr15269425pfc.31.1605548505573; Mon, 16 Nov 2020 09:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548505; cv=none; d=google.com; s=arc-20160816; b=aXjtNOEbI2FLitT07+8eH553URvMVHrWCzS5PqjQ1180qxjIJZco8ZUC54N4n9sHjU PlHN7Q7Ew9kQ1eXZrwt0tmOdETxpxkjUZfzzQnsgDNym2fVEOjst5dJgce1LXO/zgeeO g7LBMXScNBlGWC+lyYEe0/yQJLHjiiktPaur1XaPakoOp4WuMU0pNKb/c1S+GJCvW4Iu SqsJ4+ycy4P0PZyd/I4xP8ZuusFT6qFRiKW5aGqox3qq0hZtcXqZ6Cyqi6ueX5e65vti jBAzfCDESxkOLUNldLoYIWxOPp80hIcC2ee5ij97gDb1vtd17H184XPoYr2FqZJ3P6xp ZJFw== 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=L5SnWoFqLny7zephRLa+J+UKZ4Qt7yXeF1cu8u7JBt1IY+1q7oi8DSmMujtzIbaghI ouMhHvULpMFdqtIryrB++2ukYkon6w1q6KzHM2vJm1kVLtfDiKjJleMP/fswjqnMMr0j qWimZoaonDWcCD5K3lC20LeUYcmGYDFatIi5iGtZafJImpDaXBVh2oOiEcFb33FEvJDK iMEi8vwQrI9SeEUrBLgX94Kd0etD06SWGJTzaO9I9qzz87XqDlhg867VkelBpeSOTUR7 hqs1w+w/1bm32MHn+uX6byoFvcWzsz5bxLRqvFok72aPSBuqlOUrVUWIpt0+g6COZKLI SXOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=k6Jv+7mH; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id mg20si18625pjb.86.2020.11.16.09.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=k6Jv+7mH; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 850D26E9F4; Mon, 16 Nov 2020 17:41:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 53E896E9ED for ; Mon, 16 Nov 2020 17:41:37 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id h21so44051wmb.2 for ; Mon, 16 Nov 2020 09:41:37 -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=k6Jv+7mHwhLKPJA/QCG06ugtxDKWpQTKy+20nzwFKSS58MARf4S8W8ACDDJb9At+kN Zj7BRm0cL5pJuZG03JgKNEOyxkFzKQDZEoeq6JKwur3GNW3waj1+cD/cATWqphXb/N3E Hwel7NdYgPQ30GBKTzLyGySsqlcZlYoScXIJf5HNpiV7Q9NiuYvKyh5I1UrBg1kr6UbV iCLuVTvJ0zQs9VHfs2J9H/qqPEg7slFJP5MGKs7bVItDI9ChEjoM5eM4spQGw5YLHt1S zBTagqyBF4NDMKbJ0sdlBYLtRa1aopP+KNyfSJbABRD/2iFY3eTiXtqFZBU8xFpxWZ8o d/bQ== 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=giynKuwiYrE1k+WYogb58wu+W/6vHVxVnzkGMt5lhOvEzEiA+se9vwWlPTgPyn/WdD p77+Oj3eXenMUYe6cEScbiUNj9W0dvqlkiGXe0fuL7fISmjkNAYbPBjPCf3MmoZx+ugw Fw1juLxADLzmqBwHNr9Cz7YEKCiP1ternpMgZ/mTlG3YboMk35tMzZjzQGI8z+7Ur2c6 ibwq3W7xQr9CWpRITF7awwpn1/9+h1+PXylTNiSP4VGIOyx07jLtCP+vxyWRMYqD7UuM F8MlRCBhR/l/aS3xxMr8iw/Ip43OlGz5HKRtpfMz1IlbOQ1PzRDKiYNqOa8GtMu7g1Cy xDgg== X-Gm-Message-State: AOAM533pFrKIbGUu4JZ4vqDu0lkBzPejlfEM0ei6BLZ97IwF1H0xboYS Vhe1Rr3IduQIkMnB4UqFlwigFw== X-Received: by 2002:a1c:5f83:: with SMTP id t125mr30364wmb.82.1605548495973; Mon, 16 Nov 2020 09:41:35 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:35 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 12/42] drm/mediatek/mtk_drm_drv: Staticise local function invoked by reference Date: Mon, 16 Nov 2020 17:40:42 +0000 Message-Id: <20201116174112.1833368-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116174112.1833368-1-lee.jones@linaro.org> References: <20201116174112.1833368-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;