From nobody Tue Dec 16 16:37:39 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64E2FC28B2B for ; Fri, 19 Aug 2022 16:58:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354529AbiHSQ63 (ORCPT ); Fri, 19 Aug 2022 12:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354551AbiHSQ6E (ORCPT ); Fri, 19 Aug 2022 12:58:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5076D8FD77; Fri, 19 Aug 2022 09:19:02 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 6B30DB82804; Fri, 19 Aug 2022 16:13:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFBADC433C1; Fri, 19 Aug 2022 16:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660925634; bh=TPzgaIJuOizJxR9x4k1d5t0DH36A5tRfqFS8Y68oOhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EFdiOLNx7kVYW4hG9RhfFRdEECUJ2n2OiNQJT9HyEMOwwmonAQVd/G+Y/ChIZ/wXr S33AOR86PLz7sgFbFTxAW6yEgnnzLdeHCM7AbDnQhqEyuUtF7+X3Z8jUiVlIDgCLW4 /j65FgdCGAJPF/qOyFAM3bo3EW+dMiMZzFDnV2kc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tom Rix , Maxime Ripard Subject: [PATCH 5.10 535/545] drm/vc4: change vc4_dma_range_matches from a global to static Date: Fri, 19 Aug 2022 17:45:05 +0200 Message-Id: <20220819153853.527784471@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Tom Rix commit 63569d90863ff26c8b10c8971d1271c17a45224b upstream. sparse reports drivers/gpu/drm/vc4/vc4_drv.c:270:27: warning: symbol 'vc4_dma_range_matche= s' was not declared. Should it be static? vc4_dma_range_matches is only used in vc4_drv.c, so it's storage class spec= ifier should be static. Fixes: da8e393e23ef ("drm/vc4: drv: Adopt the dma configuration from the HV= S or V3D component") Signed-off-by: Tom Rix Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220629200101.498138-1= -trix@redhat.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/vc4/vc4_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -246,7 +246,7 @@ static void vc4_match_add_drivers(struct } } =20 -const struct of_device_id vc4_dma_range_matches[] =3D { +static const struct of_device_id vc4_dma_range_matches[] =3D { { .compatible =3D "brcm,bcm2711-hvs" }, { .compatible =3D "brcm,bcm2835-hvs" }, { .compatible =3D "brcm,bcm2835-v3d" },