From patchwork Tue Dec 8 15:55:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Ratiu X-Patchwork-Id: 11958871 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7AABC4167B for ; Tue, 8 Dec 2020 15:56:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AB48E23AC1 for ; Tue, 8 Dec 2020 15:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730068AbgLHP4d (ORCPT ); Tue, 8 Dec 2020 10:56:33 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39524 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729985AbgLHP4c (ORCPT ); Tue, 8 Dec 2020 10:56:32 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id 8564B1F44B0A From: Adrian Ratiu To: linux-media@vger.kernel.org Cc: kernel@collabora.com, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Boris Brezillon , Ezequiel Garcia , Mauro Carvalho Chehab , kernel test robot Subject: [PATCH] media: rkvdec: silence ktest bot build warning Date: Tue, 8 Dec 2020 17:55:40 +0200 Message-Id: <20201208155540.340583-1-adrian.ratiu@collabora.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Some configurations built by the ktest bot produce the following warn, so mark the struct as __maybe_unused to avoid unnecessary ML spam. >> drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable 'of_rkvdec_match' [-Wunused-const-variable] static const struct of_device_id of_rkvdec_match[] = { ^ 1 warning generated. vim +/of_rkvdec_match +967 drivers/staging/media/rkvdec/rkvdec.c 966 > 967 static const struct of_device_id of_rkvdec_match[] = { 968 { .compatible = "rockchip,rk3399-vdec" }, 969 { /* sentinel */ } 970 }; 971 MODULE_DEVICE_TABLE(of, of_rkvdec_match); 972 Cc: Boris Brezillon Cc: Ezequiel Garcia Cc: Mauro Carvalho Chehab Reported-by: kernel test robot Signed-off-by: Adrian Ratiu --- drivers/staging/media/rkvdec/rkvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index aa4f8c287618..3af0f02ec59b 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -992,7 +992,7 @@ static void rkvdec_watchdog_func(struct work_struct *work) } } -static const struct of_device_id of_rkvdec_match[] = { +static const struct of_device_id __maybe_unused of_rkvdec_match[] = { { .compatible = "rockchip,rk3399-vdec" }, { /* sentinel */ } };