From patchwork Fri Jan 20 15:53:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 46445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp276700wrn; Fri, 20 Jan 2023 07:59:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXtIdvjaeTxLixke/fd55XlgrEA1oouGbCU60mCJz5sftOb60gYzKBwDKUYwsGePd2ZmMJga X-Received: by 2002:a17:90b:513:b0:225:ec6a:2d02 with SMTP id r19-20020a17090b051300b00225ec6a2d02mr16382801pjz.0.1674230347168; Fri, 20 Jan 2023 07:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674230347; cv=none; d=google.com; s=arc-20160816; b=P+ipCk1x2AhiT5VppJSk7G/rzN2J6vR2Wjt7CR/drCTFqAhus2MfCo7lb6sJmYKqVq gyTN6BNX02KZNwl99cTIiv8u+/M4CRHDfGaCmXUG/QcMqgGsiST5JGyDLPZJhC7xvU+P WDOAzclqNDOdEXldWS+8hM2ZWI4VNVIuZ9X2OiwADhvuMKN9NtJixyKun2QvuYGRT9zz wJT1IytrETXq7sc5uHUVdgBTMq6G87f58j0WR+x2oJR14GwNMWrCeNay9W/9CTZjAl5K Tj6JV9NDnYeTU0WZON7aM4/NR5q0TBhodVTGSz3eyxjdLYWoafI1+RrYacfzyDBaSULa Ec+w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=E3oo+JHyXWkN8LQE/Aw6D6zWcOrom4C/9FyKvZhcWUA=; b=iA3g/PMF/1ECQRD+FhXvdBiBrNLhsyGZSGcVb/uf5Am3NXIenVhoE95M0Kuel2AdmD ZTzu3nJsC2FuJqoezGtPj692EYo9j8mXEhvoC+zErsfdwlSpQEEPrgfSZQZKuD+bIgt7 VBxBoPG8tJxzb6lSqy2aFOESKfi96jG2VvJPHHGpleg9JTaQTMZWjC9O6ybE0NeJpa8E 7go95wJ46W13oO0vIvYfLMJJPcacIMQe+ZA5usk2VVYXLmWkgGl9I/7G7qTzymeiuJBG mzqUDGN4un7IsmDBNheXfB+Zh5+CNoX2adjElevXrL7QQdalmblbFBsvLbIMcojvoUwO J0Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M9FJRCXu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t63-20020a638142000000b004cfeacfba88si10123476pgd.320.2023.01.20.07.58.55; Fri, 20 Jan 2023 07:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M9FJRCXu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231569AbjATPxa (ORCPT + 99 others); Fri, 20 Jan 2023 10:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjATPx2 (ORCPT ); Fri, 20 Jan 2023 10:53:28 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94BCCD23C; Fri, 20 Jan 2023 07:53:25 -0800 (PST) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:39c:df77:ee30:30ed]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1516D660230B; Fri, 20 Jan 2023 15:53:24 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674230004; bh=Cp5VUuqqJWZfxAGM2uaTUY9gCqzgtCRO8doDbJe8GqU=; h=From:To:Cc:Subject:Date:From; b=M9FJRCXumXZyllfBUymJDAg/xqqBxgux2WaLhsqhCKIrAjfXjcilBwr7G1XiPTcbg 9sHeggBzESOuYrHxZDbzQ2iRMtL/okHAY2zis9Nrkq9J4i/cvMbvJIJtQmilvUzzh/ BCupkNeJhvg3EJj+bXpTuEAKvx3+pacIZI8A1hR513p7pwVSy6bqy1j1IMuOC4Zz3P TTr74jFzrH8J/ShW9G7RPd4jAOSYzWikhEUFmcy43YO4aWUQ+6xPVSWYRE7nYxZNRb Aua1yVCinmdNZ9p2wpiW4EvHBwBuZLWWzDqmV9QUQRtaMKDBGdMRQKjqaq6AJg2kV6 nqhNuUrOK0PNw== From: Benjamin Gaignard To: inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, m.szyprowski@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH] drm: exynos: Make g2d_open() and g2d_close() static Date: Fri, 20 Jan 2023 16:53:17 +0100 Message-Id: <20230120155317.819786-1-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755557760293340677?= X-GMAIL-MSGID: =?utf-8?q?1755557760293340677?= Fix "no previous prototype" warning when compiling with W=1 by making the functions static like the ones above them. Fixes: eb4d9796fa34 ("drm/exynos: g2d: Convert to driver component API") Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/exynos/exynos_drm_g2d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.h b/drivers/gpu/drm/exynos/exynos_drm_g2d.h index 74ea3c26dead..4631c0579fb9 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.h +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.h @@ -34,11 +34,11 @@ static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data, return -ENODEV; } -int g2d_open(struct drm_device *drm_dev, struct drm_file *file) +static int g2d_open(struct drm_device *drm_dev, struct drm_file *file) { return 0; } -void g2d_close(struct drm_device *drm_dev, struct drm_file *file) +static void g2d_close(struct drm_device *drm_dev, struct drm_file *file) { } #endif