From patchwork Wed Oct 13 14:40:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 515722 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp6603838ime; Wed, 13 Oct 2021 07:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtjO7Ygd2644vcDYt+yZjwy6YGFHDuZVufzUDObUT1VV+w00k6ofQYVIRYW2KO/tHctu8l X-Received: by 2002:a17:90a:c688:: with SMTP id n8mr12555721pjt.131.1634136075449; Wed, 13 Oct 2021 07:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136075; cv=none; d=google.com; s=arc-20160816; b=VoRK71/6UP1MiIu/RhdgaEXiU9u1SeepI2E46oMNPGzRzQpOLhIa2PkhDDXLXFIaIH dXx1wcb9xlWqKjV3rSzQ1pcDLz4xOv+ewCeCY1+K5d/OafyLPnswQn0cT968ciDAv7gL ykqJ7CHCj2s1n3fyXtOuPosnYqJF5O0ICal+Kb4lVlWwLkrOElr1stlFYaeZQs2DVxoe Lqbqd61v0X2X93UEd8iAGSp9b1gJDo1lfwDjZ1PRZFE8EOm++n12apMtbTEiWaLcIRYp kQGjGvcIn2tvk6kwaNtX0N26GEjK8yH+IX3/DoVypDwLXSN8bdSFPZylK4SUrIJGQkU6 fdkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=hgn6Q9TQKquN63vz3hIG6bHMQyCA1FvJomhH8MNO4mY=; b=hzvLl84NgIGa12Zl/kymlnZIpTtxdQIul9brbIIN2UbBZ/acj11FjNlcamQVKHeKGb xDz/0hVSOunN3gg2feBPMgPO67jsXwj7kjMrTOR5bRGwI/8UwM3jRWw182yE2BVWwQZg unq89zFN2X8KtLkKrwqdH9OIWO441I0m/LxDwLGw0SEK8s2q1/qxD4lGKKKXNn1joovV R5icLpDBZtZRtk1Z6+kNkq3kuaBDO2FcU3oMWGsYOIwy9741zbccBqltU14rjJcsWiPk PldqtVADhGgCTVfI7I3ZgTeMLWkyekdDfwSTCLIgZrLP93XrPJXJkWlU0yORXDFtF7es TLHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RVsTrvhG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 t3si7393784pjg.163.2021.10.13.07.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 07:41:15 -0700 (PDT) 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=pass header.i=@kernel.org header.s=k20201202 header.b=RVsTrvhG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FAD06E069; Wed, 13 Oct 2021 14:41:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id A2B726E069 for ; Wed, 13 Oct 2021 14:41:13 +0000 (UTC) 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 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(-) -- 2.29.2 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); }