From patchwork Mon Apr 17 21:04:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13214750 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1168C77B76 for ; Mon, 17 Apr 2023 21:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gL3rSH6sfaaqS3GZLoKRnPqc4B7daTzXysO9cIVMbik=; b=wKepyCCRjp9nrK hocdeTabk6r0IRFzdkxFybkiLXJjChHR0wZCZAa4/Wh9ZLDk98epOan+ClGOUWrBkQkmTeH/TPbdV yqvGPv+miEifUWuqiMzX2nk0zFWJPab+1E22qGo723e/LlXOBaVZjUcEO0RsYO2uh+xO3J13lFHN+ jXmEyun17TftKV9csSOPjSWgISQgqggz0TLutUpsOPG9DNPKGnAtd5eCo+fB98NOqhDTOO6dl/b6w mSTHdpcZ1eERp9ZniH632fHyU3gnptOLUqHIxtVfuHsp1vhWLKhJR8pXM1XSLD1SesPiZAwhkLSSL bfg+1twNxNl66/GpySpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poW1Z-0000ry-1X; Mon, 17 Apr 2023 21:04:33 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poW1W-0000rE-0c for linux-arm-kernel@lists.infradead.org; Mon, 17 Apr 2023 21:04:31 +0000 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 BF1C3623E8; Mon, 17 Apr 2023 21:04:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73BCAC433EF; Mon, 17 Apr 2023 21:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681765469; bh=GZ9K1KS6S92HXEymJH/1OOdscHLQ4pFpaD9szsRvRwI=; h=From:To:Cc:Subject:Date:From; b=Mo1vyXUiSWYSoZmgfkUj9AByJ2RIWzLiJshkbOtVSzgczN3FkyWi0ow/UkYpN8MfD ZiCQxkeJa0y15kBA8mjl318g3vRRDB5SvhJ4dhwQvNQ/5kVpRIL9oRhW9e762nUjWI I5o7tirQ8G+gTV15nzmXSHdyZ9G2tXRvXs8Zd/gydjhNyy+4NEQ3OQhFoBvCRnCmUH rQMhc+GRkilTlRw/VgYeJnK68ZTA0FLm6dd2VtZgaEplx9yPHodylQ6l4uNb0smUwz qghw1dnuk2hS0QYykR/7+Weut4B0UKLBHSZntnARstERAmo1WLedOgWCAYoiPzFV3t xrJJ6qJ/b1o6g== From: Arnd Bergmann To: Inki Dae , Seung-Woo Kim , Kyungmin Park , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Krzysztof Kozlowski , Alim Akhtar , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/exynos: fix g2d_open/close helper function definitions Date: Mon, 17 Apr 2023 23:04:11 +0200 Message-Id: <20230417210423.2517593-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_140430_273425_8D8C3B18 X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The empty stub functions are defined as global functions, which causes a warning because of missing prototypes: drivers/gpu/drm/exynos/exynos_drm_g2d.h:37:5: error: no previous prototype for 'g2d_open' drivers/gpu/drm/exynos/exynos_drm_g2d.h:42:5: error: no previous prototype for 'g2d_close' Mark them as 'static inline' to avoid the warning and to make them behave as intended. Fixes: eb4d9796fa34 ("drm/exynos: g2d: Convert to driver component API") Signed-off-by: Arnd Bergmann Reviewed-by: Andi Shyti --- 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..1a5ae781b56c 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 inline 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 inline void g2d_close(struct drm_device *drm_dev, struct drm_file *file) { } #endif