From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD137C433F5 for ; Wed, 13 Oct 2021 14:41:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B25DC61165 for ; Wed, 13 Oct 2021 14:41:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237311AbhJMOnT (ORCPT ); Wed, 13 Oct 2021 10:43:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:50538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237036AbhJMOnQ (ORCPT ); Wed, 13 Oct 2021 10:43:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BA91061154; Wed, 13 Oct 2021 14:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634136073; bh=tDFfvQ6Y5Er/PsDNRRoutIE4JMdB/Lr2Di5tJToSVvk=; h=From:To:Cc:Subject:Date:From; b=RVsTrvhG2JPVsb2kL67NK9nvOavH9u6hPDSZZXXb+A+TD04Ou9LEd6tqVnLgh/s35 qgVPLdBBbb+XRmfpJ+zeh0hCSx6SMSKFe9s7l0ILjNRb1Tor6f7VEyxJMFPSGNV6Ur RjoG470646xpDDPt0dqE9ybNvv9sZ3CGyytIGy9XLalbYQvpcRlBr3xdlrCgEpUx0Z eKz1rrZApZr359084SX81RkFAH8NckRZPX7M96dLQzu4iw8IUW7dow1qn8xtyHZpNm PEhSzMJhW2iiW4ksUiHlMIzAuIg6ZVXzeUaMWFHWWtj+230AK0LCRjqWJ7XS/4ltUA OUXDoqcs4kVeg== From: Arnd Bergmann To: Thierry Reding , David Airlie , Daniel Vetter , Jonathan Hunter , Mikko Perttunen Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/tegra: mark nvdec_writel as inline Date: Wed, 13 Oct 2021 16:40:58 +0200 Message-Id: <20211013144109.2191071-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Without CONFIG_IOMMU_API, the nvdec_writel() function is unused, causing a warning: drivers/gpu/drm/tegra/nvdec.c:48:13: error: 'nvdec_writel' defined but not used [-Werror=unused-function] 48 | static void nvdec_writel(struct nvdec *nvdec, u32 value, unsigned int offset) | ^~~~~~~~~~~~ As this is a trivial wrapper around an inline function, mark it as inline itself, which avoids the warning as well. Fixes: e76599df354d ("drm/tegra: Add NVDEC driver") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tegra/nvdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/nvdec.c b/drivers/gpu/drm/tegra/nvdec.c index 410333e05de8..791bf1acf5f0 100644 --- a/drivers/gpu/drm/tegra/nvdec.c +++ b/drivers/gpu/drm/tegra/nvdec.c @@ -45,7 +45,8 @@ static inline struct nvdec *to_nvdec(struct tegra_drm_client *client) return container_of(client, struct nvdec, client); } -static void nvdec_writel(struct nvdec *nvdec, u32 value, unsigned int offset) +static inline void nvdec_writel(struct nvdec *nvdec, u32 value, + unsigned int offset) { writel(value, nvdec->regs + offset); } -- 2.29.2